summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2025-08-19 13:56:50 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-21 10:29:56 +0100
commit5f1aeaf606e4a0103f79b7c548ce91510298457c (patch)
tree7b57a9cd5384097b9188f3c32c662fad3d389a17
parent62e64c4a6432305000c6c3425d0c28356893d491 (diff)
downloadpoky-5f1aeaf606e4a0103f79b7c548ce91510298457c.tar.gz
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. (From OE-Core rev: cfff8e968257c44880caa3605e158764ed5c6a2a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/goarch.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes-recipe/goarch.bbclass b/meta/classes-recipe/goarch.bbclass
index 1ebe03864f..0e9ef3a6ec 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
24TARGET_GOARM:class-native = "7" 24TARGET_GOARM:class-native = "7"
25TARGET_GO386:class-native = "sse2" 25TARGET_GO386:class-native = "sse2"
26TARGET_GOMIPS:class-native = "hardfloat" 26TARGET_GOMIPS:class-native = "hardfloat"
27TARGET_GOARM:class-crosssdk = "7"
28TARGET_GO386:class-crosssdk = "sse2"
29TARGET_GOMIPS:class-crosssdk = "hardfloat"
27TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" 30TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}"
28GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}" 31GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}"
29 32