[oe-commits] [openembedded-core] 20/25: go: Reset unneeded GOARCH variables for native recipe

git at git.openembedded.org git at git.openembedded.org
Thu Dec 5 20:42:51 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 4825eede606b075d0d529b38d6162999f1dec506
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Wed Dec 4 08:51:25 2019 -0800

    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'}
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/go/go-common.inc | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc
index f18d928..aa2482d 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}"
 export GOMIPS ?= "${TARGET_GOMIPS}"
 export GOROOT_FINAL ?= "${libdir}/go"
 
+GOEXPORTVARS = "1"
+GOEXPORTVARS_class-native = "0"
+
+GOARM[export] = "${GOEXPORTVARS}"
+GO386[export] = "${GOEXPORTVARS}"
+GOMIPS[export] = "${GOEXPORTVARS}"
+HOST_GOARM[export] = "${GOEXPORTVARS}"
+HOST_GO386[export] = "${GOEXPORTVARS}"
+HOST_GOMIPS[export] = "${GOEXPORTVARS}"
+
 do_compile_prepend() {
 	BUILD_CC=${BUILD_CC}
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list