From: Alexander Kanavin Date: Tue, 19 Aug 2025 11:56:50 +0000 (+0200) Subject: goarch.bbclass: do not leak TUNE_FEATURES into crosssdk task signatures X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfff8e968257c44880caa3605e158764ed5c6a2a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git goarch.bbclass: do not leak TUNE_FEATURES into crosssdk task signatures The default assignments look like this: TARGET_GO386 = "${@go_map_386(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}" TUNE_FEATURES is a target-specific variable, and so should be used only for target builds. The change is similar to what is already done for native packages. Signed-off-by: Alexander Kanavin Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/goarch.bbclass b/meta/classes-recipe/goarch.bbclass index 1ebe03864fe..0e9ef3a6ec6 100644 --- a/meta/classes-recipe/goarch.bbclass +++ b/meta/classes-recipe/goarch.bbclass @@ -24,6 +24,9 @@ TARGET_GOMIPS = "${@go_map_mips(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES TARGET_GOARM:class-native = "7" TARGET_GO386:class-native = "sse2" TARGET_GOMIPS:class-native = "hardfloat" +TARGET_GOARM:class-crosssdk = "7" +TARGET_GO386:class-crosssdk = "sse2" +TARGET_GOMIPS:class-crosssdk = "hardfloat" TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}"