summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2025-09-05 08:20:45 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:15:34 +0000
commitbf99008b061e560b7cb56991bac2865ac7f80d52 (patch)
treeb206708d75c17181dbc3672a15bc1d25fca8c904 /bitbake/lib
parent745babbaa4cf65e032fe2671b53fc2c5a1dfb95c (diff)
downloadpoky-bf99008b061e560b7cb56991bac2865ac7f80d52.tar.gz
bitbake: fetch2: support URL rev paramter for named URLs together with default
Support the rev parameter for named SRC_URIs together with SRCREV or SRCREV:pn-<PN>. Only raise conflicting revisions fetch error for rev parameter and SRCREV_<NAME> or SRCREV_<NAME>:pn-<PN> (Bitbake rev: b0776be3de56f6e78d0bb046d6238bdb8dcf8091) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index d26c912df4..05ab2a5b75 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1226,9 +1226,10 @@ def srcrev_internal_helper(ud, d, name):
1226 attempts.append("SRCREV_%s:pn-%s" % (name, pn)) 1226 attempts.append("SRCREV_%s:pn-%s" % (name, pn))
1227 if name != '': 1227 if name != '':
1228 attempts.append("SRCREV_%s" % name) 1228 attempts.append("SRCREV_%s" % name)
1229 if pn: 1229 if name == 'default' or 'rev' not in ud.parm:
1230 attempts.append("SRCREV:pn-%s" % pn) 1230 if pn:
1231 attempts.append("SRCREV") 1231 attempts.append("SRCREV:pn-%s" % pn)
1232 attempts.append("SRCREV")
1232 1233
1233 for a in attempts: 1234 for a in attempts:
1234 srcrev = d.getVar(a) 1235 srcrev = d.getVar(a)