diff options
author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2025-04-04 18:47:01 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-10 11:05:59 +0100 |
commit | 1cd8d4e8922d327d826ee1dc98cf7185bb98ef3e (patch) | |
tree | c81c55b1deed6b1c4385ba3efde2e8d3f8cfbb9b /meta-poky | |
parent | e7f14cfbac56c1e545e4e28111831a57b126276c (diff) | |
download | poky-1cd8d4e8922d327d826ee1dc98cf7185bb98ef3e.tar.gz |
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>
Diffstat (limited to 'meta-poky')
-rw-r--r-- | meta-poky/classes/poky-bleeding.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-poky/classes/poky-bleeding.bbclass b/meta-poky/classes/poky-bleeding.bbclass index 3bfdcf1454..b12aea61b0 100644 --- a/meta-poky/classes/poky-bleeding.bbclass +++ b/meta-poky/classes/poky-bleeding.bbclass | |||
@@ -12,6 +12,11 @@ python pokybleeding_version_handler () { | |||
12 | if "pseudo" in bpn: | 12 | if "pseudo" in bpn: |
13 | bb.warn("Here 5 %s %s" % (d.getVar("PN"), bpn)) | 13 | bb.warn("Here 5 %s %s" % (d.getVar("PN"), bpn)) |
14 | d.setVar("SRCREV", "${AUTOREV}") | 14 | d.setVar("SRCREV", "${AUTOREV}") |
15 | srcrev_format = d.getVar("SRCREV_FORMAT") | ||
16 | if srcrev_format: | ||
17 | for multi_scm in d.getVar("SRCREV_FORMAT").split("_"): | ||
18 | if multi_scm != "": | ||
19 | d.setVar("SRCREV_%s" % multi_scm, "${AUTOREV}") | ||
15 | if "+git" not in d.getVar("PV"): | 20 | if "+git" not in d.getVar("PV"): |
16 | d.appendVar("PV", "+git") | 21 | d.appendVar("PV", "+git") |
17 | } | 22 | } |