Skip to contentSkip to conversation

cooker: Ensure mcdeps are processed even if only one multiconfig

PATCH New Richard Purdie 1 participant 1 message Jun 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cooker: Ensure mcdeps are processed even if only one multiconfig

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

---
 lib/bb/cooker.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
lib/bb/cooker.py +5 -1
index e0cbed5378..0008c2fde1 100644
@@ -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
Signature · 1 line
2.20.1