summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAnatol Belski <anbelski@linux.microsoft.com>2021-04-07 11:22:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-18 11:37:25 +0100
commit036a8d4330f27777ce14185c66967ee0b678c0b9 (patch)
treef8fb22b3f90e90e9fdeae9706b3499fd9d379c1a /meta
parent0ae3f1edd6c35fe03e810de9eab3a227492084d7 (diff)
downloadpoky-036a8d4330f27777ce14185c66967ee0b678c0b9.tar.gz
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. (From OE-Core rev: d9306e8f9dbdbd30382f0bc0f0a1af75e702a2aa) Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/cross-canadian.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass
index f5c9f61595..1e54035084 100644
--- a/meta/classes/cross-canadian.bbclass
+++ b/meta/classes/cross-canadian.bbclass
@@ -36,7 +36,7 @@ python () {
36 return 36 return
37 37
38 tos = d.getVar("TARGET_OS") 38 tos = d.getVar("TARGET_OS")
39 whitelist = [] 39 whitelist = ["mingw32"]
40 extralibcs = [""] 40 extralibcs = [""]
41 if "musl" in d.getVar("BASECANADIANEXTRAOS"): 41 if "musl" in d.getVar("BASECANADIANEXTRAOS"):
42 extralibcs.append("musl") 42 extralibcs.append("musl")