diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2025-08-19 13:56:50 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-21 10:29:56 +0100 |
| commit | 5f1aeaf606e4a0103f79b7c548ce91510298457c (patch) | |
| tree | 7b57a9cd5384097b9188f3c32c662fad3d389a17 | |
| parent | 62e64c4a6432305000c6c3425d0c28356893d491 (diff) | |
| download | poky-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.bbclass | 3 |
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 | |||
| 24 | TARGET_GOARM:class-native = "7" | 24 | TARGET_GOARM:class-native = "7" |
| 25 | TARGET_GO386:class-native = "sse2" | 25 | TARGET_GO386:class-native = "sse2" |
| 26 | TARGET_GOMIPS:class-native = "hardfloat" | 26 | TARGET_GOMIPS:class-native = "hardfloat" |
| 27 | TARGET_GOARM:class-crosssdk = "7" | ||
| 28 | TARGET_GO386:class-crosssdk = "sse2" | ||
| 29 | TARGET_GOMIPS:class-crosssdk = "hardfloat" | ||
| 27 | TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" | 30 | TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" |
| 28 | GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}" | 31 | GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}" |
| 29 | 32 | ||
