mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
poky-bleeding.bbclass: support recipes with multiple scm SRCREVs
Recipes with multiple repositories in SRC_URI use SRCREV with repo postfix. Set them to AUTOREV too. (From meta-yocto rev: e495ebd7039ff7b0dd9452343f8153698b5f6575) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e7f14cfbac
commit
1cd8d4e892
|
@ -12,6 +12,11 @@ python pokybleeding_version_handler () {
|
|||
if "pseudo" in bpn:
|
||||
bb.warn("Here 5 %s %s" % (d.getVar("PN"), bpn))
|
||||
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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user