diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /meta-poky/classes | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-poky/classes')
| -rw-r--r-- | meta-poky/classes/poky-bleeding.bbclass | 23 | ||||
| -rw-r--r-- | meta-poky/classes/poky-sanity.bbclass | 46 |
2 files changed, 0 insertions, 69 deletions
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 @@ | |||
| 1 | # | ||
| 2 | # AUTOREV and PV containing '+git' needs to be set early, before any anonymous python | ||
| 3 | # expands anything containing PV, else the parse process won't trigger the fetcher to | ||
| 4 | # cache the needed version data | ||
| 5 | # | ||
| 6 | python pokybleeding_version_handler () { | ||
| 7 | bpn = d.getVar("BPN") | ||
| 8 | # We're running before the class extension code at PreFinalise so manually fix BPN | ||
| 9 | bpn = bpn.replace("-nativesdk", "").replace("nativesdk-", "") | ||
| 10 | |||
| 11 | if bpn in d.getVar("POKY_AUTOREV_RECIPES").split(): | ||
| 12 | d.setVar("SRCREV", "${AUTOREV}") | ||
| 13 | srcrev_format = d.getVar("SRCREV_FORMAT") | ||
| 14 | if srcrev_format: | ||
| 15 | for multi_scm in d.getVar("SRCREV_FORMAT").split("_"): | ||
| 16 | if multi_scm != "": | ||
| 17 | d.setVar("SRCREV_%s" % multi_scm, "${AUTOREV}") | ||
| 18 | if "+git" not in d.getVar("PV"): | ||
| 19 | d.appendVar("PV", "+git") | ||
| 20 | } | ||
| 21 | |||
| 22 | addhandler pokybleeding_version_handler | ||
| 23 | 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 @@ | |||
| 1 | # Provide some extensions to sanity.bbclass to handle poky-specific conf file upgrades | ||
| 2 | |||
| 3 | python poky_update_bblayersconf() { | ||
| 4 | current_version = int(d.getVar('POKY_BBLAYERS_CONF_VERSION') or -1) | ||
| 5 | latest_version = int(d.getVar('REQUIRED_POKY_BBLAYERS_CONF_VERSION') or -1) | ||
| 6 | if current_version == -1 or latest_version == -1: | ||
| 7 | # one or the other missing => malformed configuration | ||
| 8 | raise NotImplementedError("You need to update bblayers.conf manually for this version transition") | ||
| 9 | |||
| 10 | success = True | ||
| 11 | |||
| 12 | # check for out of date templateconf.cfg file | ||
| 13 | lines = [] | ||
| 14 | fn = os.path.join(d.getVar('TOPDIR'), 'conf/templateconf.cfg') | ||
| 15 | |||
| 16 | lines = sanity_conf_read(fn) | ||
| 17 | index, meta_yocto_line = sanity_conf_find_line(r'^meta-yocto/', lines) | ||
| 18 | if meta_yocto_line: | ||
| 19 | lines[index] = meta_yocto_line.replace('meta-yocto', 'meta-poky') | ||
| 20 | with open(fn, "w") as f: | ||
| 21 | f.write(''.join(lines)) | ||
| 22 | bb.note("Your conf/templateconf.cfg file was updated from meta-yocto to meta-poky") | ||
| 23 | |||
| 24 | # add any additional layer checks/changes here | ||
| 25 | |||
| 26 | if success: | ||
| 27 | current_version = latest_version | ||
| 28 | bblayers_fn = bblayers_conf_file(d) | ||
| 29 | lines = sanity_conf_read(bblayers_fn) | ||
| 30 | # sanity_conf_update() will erroneously find a match when the var name | ||
| 31 | # is used in a comment, so do our own here. The code below can be | ||
| 32 | # removed when sanity_conf_update() is fixed in OE-Core. | ||
| 33 | #sanity_conf_update(bblayers_fn, lines, 'POKY_BBLAYERS_CONF_VERSION', current_version) | ||
| 34 | index, line = sanity_conf_find_line(r'^POKY_BBLAYERS_CONF_VERSION', lines) | ||
| 35 | lines[index] = 'POKY_BBLAYERS_CONF_VERSION = "%d"\n' % current_version | ||
| 36 | with open(bblayers_fn, "w") as f: | ||
| 37 | f.write(''.join(lines)) | ||
| 38 | bb.note("Your conf/bblayers.conf has been automatically updated.") | ||
| 39 | if success: | ||
| 40 | return | ||
| 41 | |||
| 42 | raise NotImplementedError("You need to update bblayers.conf manually for this version transition") | ||
| 43 | } | ||
| 44 | |||
| 45 | # ensure our function runs after the OE-Core one | ||
| 46 | BBLAYERS_CONF_UPDATE_FUNCS += "conf/bblayers.conf:POKY_BBLAYERS_CONF_VERSION:REQUIRED_POKY_BBLAYERS_CONF_VERSION:poky_update_bblayersconf" | ||
