[meta-virtualization] [PATCH 3/7] Backport go-cross: fix the building failed for quark bsp
Amy Fong
amy.fong at windriver.com
Tue Oct 6 11:41:11 PDT 2015
submitted to upstream https://github.com/errordeveloper/oe-meta-go
go-cross: fix the building failed for quark bsp
Quark used i586 architecture, and golang dealt intel 32bit
architecture as 386, so export GOARCH = "386" when the TARGET_ARCH
is i586 to support quark bsp.
Signed-off-by: fupan li <fupan.li at windriver.com>
Signed-off-by: Amy Fong <amy.fong at windriver.com>
---
recipes-devtools/go-cross/go-cross_1.3.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/recipes-devtools/go-cross/go-cross_1.3.bb b/recipes-devtools/go-cross/go-cross_1.3.bb
index 9ecc295..d689e61 100644
--- a/recipes-devtools/go-cross/go-cross_1.3.bb
+++ b/recipes-devtools/go-cross/go-cross_1.3.bb
@@ -30,8 +30,11 @@ do_compile() {
export GOOS="linux"
export GOARCH="${TARGET_ARCH}"
+ # golang only support 386, amd64 and arm architecture.
if [ "${TARGET_ARCH}" = "x86_64" ]; then
export GOARCH="amd64"
+ elif [ "${TARGET_ARCH}" = "i586" ]; then
+ export GOARCH="386"
fi
if [ "${TARGET_ARCH}" = "arm" ]
then
--
2.5.3
More information about the meta-virtualization
mailing list