mirror of
https://git.yoctoproject.org/poky-contrib
synced 2025-05-08 15:42:17 +08:00

Drop some debug code which shouldn't have been merged. (From meta-yocto rev: 18926b88f44e870e64efa7b3cd7e1dc56ce6cbb0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
24 lines
966 B
Plaintext
24 lines
966 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():
|
|
d.setVar("SRCREV", "${AUTOREV}")
|
|
srcrev_format = d.getVar("SRCREV_FORMAT")
|
|
if srcrev_format:
|
|
for multi_scm in d.getVar("SRCREV_FORMAT").split("_"):
|
|
if multi_scm != "":
|
|
d.setVar("SRCREV_%s" % multi_scm, "${AUTOREV}")
|
|
if "+git" not in d.getVar("PV"):
|
|
d.appendVar("PV", "+git")
|
|
}
|
|
|
|
addhandler pokybleeding_version_handler
|
|
pokybleeding_version_handler[eventmask] = "bb.event.RecipePreFinalise"
|