diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-07-22 21:23:46 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-07-23 16:49:39 +0100 |
commit | 23deb29c1b61ca9ef04b47dd27b9a8a126ad3d8d (patch) | |
tree | 630e7046738bdc78d6336fc3fe0adeaa2d819768 /bitbake/lib/bb/cooker.py | |
parent | c28d643c7bb997eab04e31b47dbcaa0a1ed0296d (diff) | |
download | poky-23deb29c1b61ca9ef04b47dd27b9a8a126ad3d8d.tar.gz |
bitbake: cooker: Handle multiconfig name mappings correctly
"bitbake mc:arm:bash mc:arm:busybox"
works but
"bitbake multiconfig:arm:bash multiconfig:arm:busybox"
does not. The reason is the list is modified whilst iterating.
Don't do that.
[YOCTO #13607]
(Bitbake rev: cd041a78d96e656438d93fb1e288080b8a6fe8bd)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 19ddc1d3ba..f6abc63487 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1614,7 +1614,7 @@ class BBCooker: | |||
1614 | raise NothingToBuild | 1614 | raise NothingToBuild |
1615 | 1615 | ||
1616 | ignore = (self.data.getVar("ASSUME_PROVIDED") or "").split() | 1616 | ignore = (self.data.getVar("ASSUME_PROVIDED") or "").split() |
1617 | for pkg in pkgs_to_build: | 1617 | for pkg in pkgs_to_build.copy(): |
1618 | if pkg in ignore: | 1618 | if pkg in ignore: |
1619 | parselog.warning("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg) | 1619 | parselog.warning("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg) |
1620 | if pkg.startswith("multiconfig:"): | 1620 | if pkg.startswith("multiconfig:"): |