diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2022-08-11 11:40:55 -0500 |
---|---|---|
committer | Joshua Watt <JPEWhacker@gmail.com> | 2022-08-11 11:46:22 -0500 |
commit | 55eeca269bd7b6859a75d993de9d7491a8a74488 (patch) | |
tree | 2938fcba29b1ab2c3c0916507e8bea17c478095e | |
parent | 205e9d942bc8ea1643a8d27b79e773625d173c00 (diff) | |
download | meta-mingw-55eeca269bd7b6859a75d993de9d7491a8a74488.tar.gz |
Switch to HOSTTOOLS_NONFATAL
The changes to split classes into global vs. image specific contexts
has broken the inclusion of `wine` and `wineserver` host tools for
testing MinGW SDKs. This is because testsdk is an image specific class
and therefore it's inclusion is not detected globally and the wine host
tools are not present so the SDK tests fail.
Resolve this by using HOSTTOOLS_NONFATAL which will include the tools if
they exist, but won't fail if they are not present. This does mean that
users will now not know they need wine "up front" when doing a build,
but it will instead fail later when they actually try to test the SDK,
but there isn't really a better way to fix this.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
-rw-r--r-- | conf/machine-sdk/include/mingw32-common.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/conf/machine-sdk/include/mingw32-common.inc b/conf/machine-sdk/include/mingw32-common.inc index 966c63b..07b5b8f 100644 --- a/conf/machine-sdk/include/mingw32-common.inc +++ b/conf/machine-sdk/include/mingw32-common.inc | |||
@@ -50,5 +50,4 @@ DISABLE_STATIC:mingw32 = "" | |||
50 | GCCPIE:mingw32 = "" | 50 | GCCPIE:mingw32 = "" |
51 | 51 | ||
52 | # wine and wineserver are required to test MinGW SDKs | 52 | # wine and wineserver are required to test MinGW SDKs |
53 | HOSTTOOLS += "${@'wine wineserver' if (bb.utils.contains_any('IMAGE_CLASSES', 'testsdk', True, False, d) or any(x in (d.getVar("BBINCLUDED") or "") for x in ["testsdk.bbclass"])) else ''}" | 53 | HOSTTOOLS_NONFATAL += "wine wineserver" |
54 | |||