diff options
| author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2025-09-05 08:20:50 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:15:34 +0000 |
| commit | 92710dcd0ee32a6025bba78d017a5edcff6ef9b9 (patch) | |
| tree | 603d479190e2918a2b356ffd97aa59e7770d97cb | |
| parent | a68430b009d0e4bbd59a5a62ea03c068d37ca088 (diff) | |
| download | poky-92710dcd0ee32a6025bba78d017a5edcff6ef9b9.tar.gz | |
bitbake: fetch2: gitsm: use rev URL parameter instead of SRCREV variable
(Bitbake rev: 985e3637723eae030fc3442cd0be9b076087b0c9)
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>
| -rw-r--r-- | bitbake/lib/bb/fetch2/gitsm.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py index bda9864ee7..497661bd6e 100644 --- a/bitbake/lib/bb/fetch2/gitsm.py +++ b/bitbake/lib/bb/fetch2/gitsm.py | |||
| @@ -123,6 +123,7 @@ class GitSM(Git): | |||
| 123 | url += ";subpath=%s" % module | 123 | url += ";subpath=%s" % module |
| 124 | url += ";nobranch=1" | 124 | url += ";nobranch=1" |
| 125 | url += ";lfs=%s" % ("1" if self._need_lfs(ud) else "0") | 125 | url += ";lfs=%s" % ("1" if self._need_lfs(ud) else "0") |
| 126 | url += ";rev=%s" % subrevision[module] | ||
| 126 | # Note that adding "user=" here to give credentials to the | 127 | # Note that adding "user=" here to give credentials to the |
| 127 | # submodule is not supported. Since using SRC_URI to give git:// | 128 | # submodule is not supported. Since using SRC_URI to give git:// |
| 128 | # URL a password is not supported, one have to use one of the | 129 | # URL a password is not supported, one have to use one of the |
| @@ -130,13 +131,7 @@ class GitSM(Git): | |||
| 130 | # the user (See comment in git.py). | 131 | # the user (See comment in git.py). |
| 131 | # So, we will not take patches adding "user=" support here. | 132 | # So, we will not take patches adding "user=" support here. |
| 132 | 133 | ||
| 133 | ld = d.createCopy() | 134 | function(ud, url, module, paths[module], workdir, d) |
| 134 | # Not necessary to set SRC_URI, since we're passing the URI to | ||
| 135 | # Fetch. | ||
| 136 | #ld.setVar('SRC_URI', url) | ||
| 137 | ld.setVar('SRCREV_%s' % module, subrevision[module]) | ||
| 138 | |||
| 139 | function(ud, url, module, paths[module], workdir, ld) | ||
| 140 | 135 | ||
| 141 | return submodules != [] | 136 | return submodules != [] |
| 142 | 137 | ||
