poky/meta-poky/classes/poky-bleeding.bbclass
Khem Raj 9a197e4f92 poky-bleeding.bbclass: Remove use of SRCPV
(From meta-yocto rev: a287fabcc55cbe46bc660ad45e03f94428824386)

(From meta-yocto rev: 705258d7ad70b4b69f4c5b5397101853ae7ba4d3)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-14 06:29:00 +01:00

21 lines
807 B
Plaintext

#
# 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"