From 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 7 Nov 2025 13:31:53 +0000 Subject: The poky repository master branch is no longer being updated. You can either: a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs b) use the new bitbake-setup You can find information about either approach in our documentation: https://docs.yoctoproject.org/ Note that "poky" the distro setting is still available in meta-yocto as before and we continue to use and maintain that. Long live Poky! Some further information on the background of this change can be found in: https://lists.openembedded.org/g/openembedded-architecture/message/2179 Signed-off-by: Richard Purdie --- meta-poky/classes/poky-bleeding.bbclass | 23 ----------------- meta-poky/classes/poky-sanity.bbclass | 46 --------------------------------- 2 files changed, 69 deletions(-) delete mode 100644 meta-poky/classes/poky-bleeding.bbclass delete mode 100644 meta-poky/classes/poky-sanity.bbclass (limited to 'meta-poky/classes') diff --git a/meta-poky/classes/poky-bleeding.bbclass b/meta-poky/classes/poky-bleeding.bbclass deleted file mode 100644 index fe558f25a8..0000000000 --- a/meta-poky/classes/poky-bleeding.bbclass +++ /dev/null @@ -1,23 +0,0 @@ -# -# AUTOREV and PV containing '+git' needs to be set early, before any anonymous python -# expands anything containing PV, else the parse process won't trigger the fetcher to -# cache the needed version data -# -python pokybleeding_version_handler () { - bpn = d.getVar("BPN") - # We're running before the class extension code at PreFinalise so manually fix BPN - bpn = bpn.replace("-nativesdk", "").replace("nativesdk-", "") - - if bpn in d.getVar("POKY_AUTOREV_RECIPES").split(): - d.setVar("SRCREV", "${AUTOREV}") - srcrev_format = d.getVar("SRCREV_FORMAT") - if srcrev_format: - for multi_scm in d.getVar("SRCREV_FORMAT").split("_"): - if multi_scm != "": - d.setVar("SRCREV_%s" % multi_scm, "${AUTOREV}") - if "+git" not in d.getVar("PV"): - d.appendVar("PV", "+git") -} - -addhandler pokybleeding_version_handler -pokybleeding_version_handler[eventmask] = "bb.event.RecipePreFinalise" diff --git a/meta-poky/classes/poky-sanity.bbclass b/meta-poky/classes/poky-sanity.bbclass deleted file mode 100644 index a068c7368c..0000000000 --- a/meta-poky/classes/poky-sanity.bbclass +++ /dev/null @@ -1,46 +0,0 @@ -# Provide some extensions to sanity.bbclass to handle poky-specific conf file upgrades - -python poky_update_bblayersconf() { - current_version = int(d.getVar('POKY_BBLAYERS_CONF_VERSION') or -1) - latest_version = int(d.getVar('REQUIRED_POKY_BBLAYERS_CONF_VERSION') or -1) - if current_version == -1 or latest_version == -1: - # one or the other missing => malformed configuration - raise NotImplementedError("You need to update bblayers.conf manually for this version transition") - - success = True - - # check for out of date templateconf.cfg file - lines = [] - fn = os.path.join(d.getVar('TOPDIR'), 'conf/templateconf.cfg') - - lines = sanity_conf_read(fn) - index, meta_yocto_line = sanity_conf_find_line(r'^meta-yocto/', lines) - if meta_yocto_line: - lines[index] = meta_yocto_line.replace('meta-yocto', 'meta-poky') - with open(fn, "w") as f: - f.write(''.join(lines)) - bb.note("Your conf/templateconf.cfg file was updated from meta-yocto to meta-poky") - - # add any additional layer checks/changes here - - if success: - current_version = latest_version - bblayers_fn = bblayers_conf_file(d) - lines = sanity_conf_read(bblayers_fn) - # sanity_conf_update() will erroneously find a match when the var name - # is used in a comment, so do our own here. The code below can be - # removed when sanity_conf_update() is fixed in OE-Core. - #sanity_conf_update(bblayers_fn, lines, 'POKY_BBLAYERS_CONF_VERSION', current_version) - index, line = sanity_conf_find_line(r'^POKY_BBLAYERS_CONF_VERSION', lines) - lines[index] = 'POKY_BBLAYERS_CONF_VERSION = "%d"\n' % current_version - with open(bblayers_fn, "w") as f: - f.write(''.join(lines)) - bb.note("Your conf/bblayers.conf has been automatically updated.") - if success: - return - - raise NotImplementedError("You need to update bblayers.conf manually for this version transition") -} - -# ensure our function runs after the OE-Core one -BBLAYERS_CONF_UPDATE_FUNCS += "conf/bblayers.conf:POKY_BBLAYERS_CONF_VERSION:REQUIRED_POKY_BBLAYERS_CONF_VERSION:poky_update_bblayersconf" -- cgit v1.2.3-54-g00ecf