diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-04 08:51:25 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-06 14:41:28 +0000 |
commit | 067476fc55a94956db27ec2a8d9bd1fd6ce74280 (patch) | |
tree | ce00c3171e13db557ed25c3b482a6998b04c366c /meta/recipes-devtools | |
parent | 820c10e689d73a1581183bb1518d6220e222bec6 (diff) | |
download | poky-067476fc55a94956db27ec2a8d9bd1fd6ce74280.tar.gz |
go: Reset unneeded GOARCH variables for native recipe
These variables depend on TUNE_FEATURES variable and that creeps into
dependencies for native as well as a result, which means go-native gets
recompiled everytime machine/arch is changed.
Fixes sstate differences found e.g.
basehash changed from 600fb6be571fa4853232a7fed78945ee19b324e54b1b94cff93ef472b6290103 to 994de861190a56064d3e186d9c411152127e230bf2f77b17e59b2c5932a41249
List of dependencies for variable TUNE_FEATURES changed from '{'TUNE_FEATURES_tune-core2-32', 'DEFAULTTUNE'}' to '{'TUNE_FEATURES_tune-armv7vethf-neon', 'DEFAULTTUNE'}'
changed items: {'TUNE_FEATURES_tune-core2-32', 'TUNE_FEATURES_tune-armv7vethf-neon'}
(From OE-Core rev: 4825eede606b075d0d529b38d6162999f1dec506)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/go/go-common.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc index f18d928c70..aa2482d356 100644 --- a/meta/recipes-devtools/go/go-common.inc +++ b/meta/recipes-devtools/go/go-common.inc | |||
@@ -37,6 +37,16 @@ export GO386 ?= "${TARGET_GO386}" | |||
37 | export GOMIPS ?= "${TARGET_GOMIPS}" | 37 | export GOMIPS ?= "${TARGET_GOMIPS}" |
38 | export GOROOT_FINAL ?= "${libdir}/go" | 38 | export GOROOT_FINAL ?= "${libdir}/go" |
39 | 39 | ||
40 | GOEXPORTVARS = "1" | ||
41 | GOEXPORTVARS_class-native = "0" | ||
42 | |||
43 | GOARM[export] = "${GOEXPORTVARS}" | ||
44 | GO386[export] = "${GOEXPORTVARS}" | ||
45 | GOMIPS[export] = "${GOEXPORTVARS}" | ||
46 | HOST_GOARM[export] = "${GOEXPORTVARS}" | ||
47 | HOST_GO386[export] = "${GOEXPORTVARS}" | ||
48 | HOST_GOMIPS[export] = "${GOEXPORTVARS}" | ||
49 | |||
40 | do_compile_prepend() { | 50 | do_compile_prepend() { |
41 | BUILD_CC=${BUILD_CC} | 51 | BUILD_CC=${BUILD_CC} |
42 | } | 52 | } |