mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
7a4ca89b55
commit
dc2e108efe
@@ -41,6 +41,7 @@ export GOARCH="${TARGET_GOARCH}"
|
||||
export GOOS="${TARGET_GOOS}"
|
||||
test -n "\$GOARM" || export GOARM="${TARGET_GOARM}"
|
||||
test -n "\$GO386" || export GO386="${TARGET_GO386}"
|
||||
test -n "\$GOMIPS" || export GOMIPS="${TARGET_GOMIPS}"
|
||||
export GOTOOLDIR="\$native_goroot/pkg/tool/${HOST_GOTUPLE}"
|
||||
test -n "\$GOROOT" || export GOROOT="\$OECORE_TARGET_SYSROOT/${target_libdir}/go"
|
||||
\$here/../../lib/${TARGET_SYS}/go/bin/$1 "\$@"
|
||||
|
||||
@@ -11,6 +11,7 @@ export GOOS = "${TARGET_GOOS}"
|
||||
export GOARCH = "${TARGET_GOARCH}"
|
||||
export GOARM = "${TARGET_GOARM}"
|
||||
export GO386 = "${TARGET_GO386}"
|
||||
export GOMIPS = "${TARGET_GOMIPS}"
|
||||
export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
|
||||
export GOROOT_FINAL = "${libdir}/go"
|
||||
export GOCACHE = "off"
|
||||
@@ -40,6 +41,7 @@ export GOARCH="${TARGET_GOARCH}"
|
||||
export GOOS="${TARGET_GOOS}"
|
||||
export GOARM="\${GOARM:-${TARGET_GOARM}}"
|
||||
export GO386="\${GO386:-${TARGET_GO386}}"
|
||||
export GOMIPS="\${GOMIPS:-${TARGET_GOMIPS}}"
|
||||
\$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@"
|
||||
END
|
||||
chmod +x ${D}${bindir}/$2
|
||||
|
||||
@@ -8,6 +8,7 @@ export GOOS = "${TARGET_GOOS}"
|
||||
export GOARCH = "${TARGET_GOARCH}"
|
||||
export GOARM = "${TARGET_GOARM}"
|
||||
export GO386 = "${TARGET_GO386}"
|
||||
export GOMIPS = "${TARGET_GOMIPS}"
|
||||
export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
|
||||
export GOROOT_FINAL = "${libdir}/go"
|
||||
export CGO_ENABLED = "1"
|
||||
|
||||
@@ -8,6 +8,7 @@ export GOOS = "${TARGET_GOOS}"
|
||||
export GOARCH = "${TARGET_GOARCH}"
|
||||
export GOARM = "${TARGET_GOARM}"
|
||||
export GO386 = "${TARGET_GO386}"
|
||||
export GOMIPS = "${TARGET_GOMIPS}"
|
||||
export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
|
||||
export GOROOT_FINAL = "${libdir}/go"
|
||||
export CGO_ENABLED = "1"
|
||||
|
||||
Reference in New Issue
Block a user