summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-cross.inc
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2017-09-12 09:50:27 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-12 23:55:29 +0100
commit34fa93002742ed06d5c9170315b8430328c57dfd (patch)
tree78ddbd19e51fd08f68c4dd234176603d56ceb6bf /meta/recipes-devtools/go/go-cross.inc
parent242318fa2879c11d7b727eeada2e84087a0cecbc (diff)
downloadpoky-34fa93002742ed06d5c9170315b8430328c57dfd.tar.gz
go-cross: take GOARM environment setting
Instead of hard-coding GOARM to ${TARGET_GOARM} in the wrapper script, take it from an existing environment setting if present. This allows the same cross-compiler to be used for different ARM targets. (From OE-Core rev: 1d319f102cd1f37ce5629c73948efae01478f866) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-cross.inc')
-rw-r--r--meta/recipes-devtools/go/go-cross.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/go/go-cross.inc b/meta/recipes-devtools/go/go-cross.inc
index df3e4ea914..d18d9613ff 100644
--- a/meta/recipes-devtools/go/go-cross.inc
+++ b/meta/recipes-devtools/go/go-cross.inc
@@ -36,7 +36,7 @@ make_wrapper() {
36here=\`dirname \$0\` 36here=\`dirname \$0\`
37export GOARCH="${TARGET_GOARCH}" 37export GOARCH="${TARGET_GOARCH}"
38export GOOS="${TARGET_GOOS}" 38export GOOS="${TARGET_GOOS}"
39export GOARM="${TARGET_GOARM}" 39export GOARM="\${GOARM:-${TARGET_GOARM}}"
40\$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@" 40\$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@"
41END 41END
42 chmod +x ${D}${bindir}/$2 42 chmod +x ${D}${bindir}/$2