]> code.ossystems Code Review - openembedded-core.git/commit
cross-canadian: Whitelist "mingw32" as TARGET_OS
authorAnatol Belski <anbelski@linux.microsoft.com>
Wed, 7 Apr 2021 11:22:06 +0000 (11:22 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 18 Apr 2021 10:29:05 +0000 (11:29 +0100)
commitd9306e8f9dbdbd30382f0bc0f0a1af75e702a2aa
tree298d781526be7d1109149e55523120ca10609eba
parentf1e7da7737b3d6df27cc5af002fd1eb0c202d0b4
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.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cross-canadian.bbclass