Explorar o código

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>
Mikko Rapeli hai 1 mes
pai
achega
1cd8d4e892
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      meta-poky/classes/poky-bleeding.bbclass

+ 5 - 0
meta-poky/classes/poky-bleeding.bbclass

@@ -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")
 }