diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-15 17:59:41 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-21 22:47:01 +0000 |
| commit | c7ee2d0236184045d46cfffa9f8822d3118baaf6 (patch) | |
| tree | f038e0fb474e92b360920fc6e7227d0b6cf6cd5b /meta-poky/classes | |
| parent | 614b2a8379ef073af8be135d8aab89cbe797e347 (diff) | |
| download | poky-c7ee2d0236184045d46cfffa9f8822d3118baaf6.tar.gz | |
poky-bleeding: Update and rework
This distro setting has bitrotted quite badly but the idea remains
a good one. Try and improve things by:
* using a class and a list of recipes to make things more readable
* drop settings for recipes which no longer use git
* drop obsolete PREFERRED_VERSION settings
* add a provider switch to use linux-yocto-dev
* reword to avoid "package" confusion with recipe
The distro then builds and highlighted a number of matchbox
issues which other patches address and improve.
(From meta-yocto rev: 00e974484d771dd015af1f2c0c547135555d24d0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-poky/classes')
| -rw-r--r-- | meta-poky/classes/poky-bleeding.bbclass | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-poky/classes/poky-bleeding.bbclass b/meta-poky/classes/poky-bleeding.bbclass new file mode 100644 index 0000000000..e5f30687e4 --- /dev/null +++ b/meta-poky/classes/poky-bleeding.bbclass | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # | ||
| 2 | # AUTOREV and PV containing SRCPV 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 | if "pseudo" in bpn: | ||
| 13 | bb.warn("Here 5 %s %s" % (d.getVar("PN"), bpn)) | ||
| 14 | d.setVar("SRCREV", "${AUTOREV}") | ||
| 15 | if "+git" not in d.getVar("PV"): | ||
| 16 | d.appendVar("PV", "+git${SRCPV}") | ||
| 17 | } | ||
| 18 | |||
| 19 | addhandler pokybleeding_version_handler | ||
| 20 | pokybleeding_version_handler[eventmask] = "bb.event.RecipePreFinalise" | ||
