Skip to contentSkip to conversation

Fix HOSTTOOLS class detection

PATCH New Joshua Watt 1 participant 1 message Nov 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix HOSTTOOLS class detection

Adding wine to HOSTTOOLS for the purpose of testing the SDK wasn't working because the it was looking for a non-existent class ("testsdk-mingw") instead of "testsdk"

---
 conf/machine-sdk/include/mingw32-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine-sdk/include/mingw32-common.inc +1 -1
index 71e8d45..9011ded 100644
@@ -44,5 +44,5 @@ DISABLE_STATIC_mingw32 = ""
 GCCPIE_mingw32 = ""
 
 # wine and wineserver are required to test MinGW SDKs
-HOSTTOOLS += "${@'wine wineserver' if (bb.utils.contains_any('IMAGE_CLASSES', 'testsdk-mingw', True, False, d) or any(x in (d.getVar("BBINCLUDED") or "") for x in ["testsdk-mingw.bbclass"])) else ''}"
+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 ''}"
 
Signature · 1 line
2.19.1