poky-bleeding: Update and rework
PATCH v2 1/1 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.
Signed-off-by Richard Purdie <[email protected]>
--- meta-poky/classes/poky-bleeding.bbclass | 20 ++++++ .../include/poky-floating-revisions.inc | 66 +++++-------------- meta-poky/conf/distro/poky-bleeding.conf | 6 +- 3 files changed, 39 insertions(+), 53 deletions(-) create mode 100644 meta-poky/classes/poky-bleeding.bbclass
meta-poky/classes/poky-bleeding.bbclass new file +20 -0
@@ -0,0 +1,20 @@ +# +# AUTOREV and PV containing SRCPV 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(): + if "pseudo" in bpn: + bb.warn("Here 5 %s %s" % (d.getVar("PN"), bpn)) + d.setVar("SRCREV", "${AUTOREV}") + if "+git" not in d.getVar("PV"): + d.appendVar("PV", "+git${SRCPV}") +} + +addhandler pokybleeding_version_handler +pokybleeding_version_handler[eventmask] = "bb.event.RecipePreFinalise"
meta-poky/conf/distro/include/poky-floating-revisions.inc +18 -48
70 lines not on this page · raw message
meta-poky/conf/distro/poky-bleeding.conf +1 -5
@@ -1,8 +1,4 @@ -PREFERRED_VERSION_glib-2.0 ?= "2.17.4" -PREFERRED_VERSION_glib-2.0-native ?= "2.17.4" -PREFERRED_VERSION_atk ?= "1.22.0" -PREFERRED_VERSION_pango ?= "1.21.2" -PREFERRED_VERSION_gtk+ ?= "2.13.3" +PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev" require conf/distro/include/poky-floating-revisions.inc require conf/distro/poky.conf
Signature · 1 line
2.38.1