From 4988689b73150d333905329b1ce0277afe4cdf9e Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Tue, 6 Oct 2015 14:41:11 -0400 Subject: [PATCH] Backport go-cross: fix the building failed for quark bsp 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 Signed-off-by: Amy Fong Signed-off-by: Bruce Ashfield --- 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 9ecc295d..d689e61a 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