Skip to contentSkip to conversation

cross-canadian: Whitelist "mingw32" as TARGET_OS

PATCH New Anatol Belski 1 participant 1 message Apr 7, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cross-canadian: Whitelist "mingw32" as TARGET_OS

If a recipe inherits cross-canadian and contains "nativesdk" in BBCLASSEXTEND and meta-mingw is included and multiconfig is enabled, bitbake will generate the correspending recipe. As meta-mingw sets SDK_OS to "mingw32", that's what TARGET_OS will be set to as well. Thus, currently such a recipe won't pass the check and fail with a message:

Building cross-candian for an unknown TARGET_SYS (x86_64-mysdk-mingw32), please update cross-canadian.bbclass

Even when building an SDK targeting Linux, but the mentioned conditions are met, bitbake will try to generate the corresponding recipe and fail.

As the described combination seems valid, including "mingw32" into the whitelist unconditionally as a fix is suggested.

---
 meta/classes/cross-canadian.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/cross-canadian.bbclass +1 -1
index f5c9f61595..1e54035084 100644
@@ -36,7 +36,7 @@ python () {
         return
 
     tos = d.getVar("TARGET_OS")
-    whitelist = []
+    whitelist = ["mingw32"]
     extralibcs = [""]
     if "musl" in d.getVar("BASECANADIANEXTRAOS"):
         extralibcs.append("musl")
Signature · 1 line
2.17.1