summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-22 21:23:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-23 16:51:07 +0100
commitd2bbfc42b7728debae89eb84bb53e1a95714ccb5 (patch)
tree9917269cdbad2fdad3832d7922c321ef6f136e57
parentc9ecbbc87a1f401ab040fde735a20ff05cb7bcd4 (diff)
downloadpoky-d2bbfc42b7728debae89eb84bb53e1a95714ccb5.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: cc11dfa4eb3616547a8a3909f89da0cc4f35dc57) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index e527e23114..d90bd3945f 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1592,7 +1592,7 @@ class BBCooker:
1592 raise NothingToBuild 1592 raise NothingToBuild
1593 1593
1594 ignore = (self.data.getVar("ASSUME_PROVIDED") or "").split() 1594 ignore = (self.data.getVar("ASSUME_PROVIDED") or "").split()
1595 for pkg in pkgs_to_build: 1595 for pkg in pkgs_to_build.copy():
1596 if pkg in ignore: 1596 if pkg in ignore:
1597 parselog.warning("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg) 1597 parselog.warning("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg)
1598 if pkg.startswith("multiconfig:"): 1598 if pkg.startswith("multiconfig:"):