[bitbake-devel] [PATCH] cooker: Ensure mcdeps are processed even if only one multiconfig

Richard Purdie richard.purdie at linuxfoundation.org
Tue Jun 11 08:42:43 UTC 2019


If you have no BBMULTICONFIG set but set mcdepends, they're currently
ignored. We can handle them correctly with this small tweak.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/cooker.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index e0cbed5378..0008c2fde1 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -638,9 +638,13 @@ class BBCooker:
             runlist.append([mc, k, ktask, fn])
             bb.event.fire(bb.event.TreeDataPreparationProgress(current, len(fulltargetlist)), self.data)
 
+        havemc = False
+        for mc in self.multiconfigs:
+            if taskdata[mc].get_mcdepends():
+                havemc = True
 
         # No need to do check providers if there are no mcdeps or not an mc build
-        if len(self.multiconfigs) > 1:
+        if havemc or len(self.multiconfigs) > 1:
             seen = set()
             new = True
             # Make sure we can provide the multiconfig dependency
-- 
2.20.1



More information about the bitbake-devel mailing list