summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-cross-canadian.inc
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2018-03-04 13:09:26 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-06 06:43:10 -0800
commitdc2e108efe79e24acd47724af1ef9e672f8b4400 (patch)
treee174dcf5b9aab027376dc859368a200be9fc62f6 /meta/recipes-devtools/go/go-cross-canadian.inc
parent7a4ca89b557648d9aae30b405f6be09b4a383abe (diff)
downloadpoky-dc2e108efe79e24acd47724af1ef9e672f8b4400.tar.gz
go: set GOMIPS envrionment variable
Go 1.10 adds support for selecting hard/soft float object code through the GOMIPS environment variable. (From OE-Core rev: f3cabc92dca3408da18f04e4af4051fba1f63c14) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-cross-canadian.inc')
-rw-r--r--meta/recipes-devtools/go/go-cross-canadian.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc b/meta/recipes-devtools/go/go-cross-canadian.inc
index e22914e7aa..4a43d831fa 100644
--- a/meta/recipes-devtools/go/go-cross-canadian.inc
+++ b/meta/recipes-devtools/go/go-cross-canadian.inc
@@ -41,6 +41,7 @@ export GOARCH="${TARGET_GOARCH}"
41export GOOS="${TARGET_GOOS}" 41export GOOS="${TARGET_GOOS}"
42test -n "\$GOARM" || export GOARM="${TARGET_GOARM}" 42test -n "\$GOARM" || export GOARM="${TARGET_GOARM}"
43test -n "\$GO386" || export GO386="${TARGET_GO386}" 43test -n "\$GO386" || export GO386="${TARGET_GO386}"
44test -n "\$GOMIPS" || export GOMIPS="${TARGET_GOMIPS}"
44export GOTOOLDIR="\$native_goroot/pkg/tool/${HOST_GOTUPLE}" 45export GOTOOLDIR="\$native_goroot/pkg/tool/${HOST_GOTUPLE}"
45test -n "\$GOROOT" || export GOROOT="\$OECORE_TARGET_SYSROOT/${target_libdir}/go" 46test -n "\$GOROOT" || export GOROOT="\$OECORE_TARGET_SYSROOT/${target_libdir}/go"
46\$here/../../lib/${TARGET_SYS}/go/bin/$1 "\$@" 47\$here/../../lib/${TARGET_SYS}/go/bin/$1 "\$@"