diff options
author | Matt Madison <matt@madison.systems> | 2017-09-12 09:50:27 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-12 23:55:29 +0100 |
commit | 34fa93002742ed06d5c9170315b8430328c57dfd (patch) | |
tree | 78ddbd19e51fd08f68c4dd234176603d56ceb6bf /meta/recipes-devtools/go/go-cross.inc | |
parent | 242318fa2879c11d7b727eeada2e84087a0cecbc (diff) | |
download | poky-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.inc | 2 |
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() { | |||
36 | here=\`dirname \$0\` | 36 | here=\`dirname \$0\` |
37 | export GOARCH="${TARGET_GOARCH}" | 37 | export GOARCH="${TARGET_GOARCH}" |
38 | export GOOS="${TARGET_GOOS}" | 38 | export GOOS="${TARGET_GOOS}" |
39 | export GOARM="${TARGET_GOARM}" | 39 | export GOARM="\${GOARM:-${TARGET_GOARM}}" |
40 | \$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@" | 40 | \$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@" |
41 | END | 41 | END |
42 | chmod +x ${D}${bindir}/$2 | 42 | chmod +x ${D}${bindir}/$2 |