All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] go: Reset unneeded GOARCH variables for native recipe
@ 2019-12-02 18:26 Khem Raj
  2019-12-04 12:45 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2019-12-02 18:26 UTC (permalink / raw)
  To: openembedded-core

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@gmail.com>
---
 meta/recipes-devtools/go/go-common.inc | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc
index f18d928c70..8e4dd137a0 100644
--- a/meta/recipes-devtools/go/go-common.inc
+++ b/meta/recipes-devtools/go/go-common.inc
@@ -37,6 +37,30 @@ export GO386 ?= "${TARGET_GO386}"
 export GOMIPS ?= "${TARGET_GOMIPS}"
 export GOROOT_FINAL ?= "${libdir}/go"
 
+GOARM[export] = "1"
+GOARM_class-native = ""
+GOARM_class-native[export] = "0"
+
+GO386[export] = "1"
+GO386_class-native = ""
+GO386_class-native[export] = "0"
+
+GOMIPS[export] = "1"
+GOMIPS_class-native = ""
+GOMIPS_class-native[export] = "0"
+
+HOST_GOARM[export] = "1"
+HOST_GOARM_class-native = ""
+HOST_GOARM_class-native[export] = "0"
+
+HOST_GO386[export] = "1"
+HOST_GO386_class-native = ""
+HOST_GO386_class-native[export] = "0"
+
+HOST_GOMIPS[export] = "1"
+HOST_GOMIPS_class-native = ""
+HOST_GOMIPS_class-native[export] = "0"
+
 do_compile_prepend() {
 	BUILD_CC=${BUILD_CC}
 }
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] go: Reset unneeded GOARCH variables for native recipe
  2019-12-02 18:26 [PATCH] go: Reset unneeded GOARCH variables for native recipe Khem Raj
@ 2019-12-04 12:45 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2019-12-04 12:45 UTC (permalink / raw)
  To: Khem Raj, openembedded-core

On Mon, 2019-12-02 at 10:26 -0800, Khem Raj wrote:
> 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@gmail.com>
> ---
>  meta/recipes-devtools/go/go-common.inc | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-
> devtools/go/go-common.inc
> index f18d928c70..8e4dd137a0 100644
> --- a/meta/recipes-devtools/go/go-common.inc
> +++ b/meta/recipes-devtools/go/go-common.inc
> @@ -37,6 +37,30 @@ export GO386 ?= "${TARGET_GO386}"
>  export GOMIPS ?= "${TARGET_GOMIPS}"
>  export GOROOT_FINAL ?= "${libdir}/go"
> 
> +GOARM[export] = "1"
> +GOARM_class-native = ""
> +GOARM_class-native[export] = "0"

Can we at least do:

GOEXPORTVARS = "1"
GOEXPORTVARS_class-native = "0"

GO386[export] = "${GOEXPORTVARS}"

to clean this up a bit please? :)

Cheers,

Richard



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-04 12:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-02 18:26 [PATCH] go: Reset unneeded GOARCH variables for native recipe Khem Raj
2019-12-04 12:45 ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.