Skip to contentSkip to conversation

cooker: Add compability handling for multiconfig: prefix migration

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cooker: Add compability handling for multiconfig: prefix migration

This allows "multiconfig:" targets to continue to work by internally mapping them to the new "mc:" naming, allowing older builds to work as before.

---
 lib/bb/cooker.py | 3 +++
 1 file changed, 3 insertions(+)
lib/bb/cooker.py +3 -0
index 855a180523..e0cbed5378 100644
@@ -1600,6 +1600,9 @@ class BBCooker:
         for pkg in pkgs_to_build:
             if pkg in ignore:
                 parselog.warning("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg)
+            if pkg.startswith("multiconfig:"):
+                pkgs_to_build.remove(pkg)
+                pkgs_to_build.append(pkg.replace("multiconfig:", "mc:"))
 
         if 'world' in pkgs_to_build:
             pkgs_to_build.remove('world')
Signature · 1 line
2.20.1