summaryrefslogtreecommitdiffstats
path: root/meta-poky/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta-poky/classes')
-rw-r--r--meta-poky/classes/poky-bleeding.bbclass20
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..3bfdcf1454
--- /dev/null
+++ b/meta-poky/classes/poky-bleeding.bbclass
@@ -0,0 +1,20 @@
+#
+# 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():
+ 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")
+}
+
+addhandler pokybleeding_version_handler
+pokybleeding_version_handler[eventmask] = "bb.event.RecipePreFinalise"