summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2015-10-06 14:41:11 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-10-13 11:29:57 -0400
commit4988689b73150d333905329b1ce0277afe4cdf9e (patch)
treeda4176fb89acbda325eea67cd319afc8a2d8fce4
parent7360250a0f3694d1090e009ec344b2f18fc98514 (diff)
downloadmeta-virtualization-4988689b73150d333905329b1ce0277afe4cdf9e.tar.gz
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 <fupan.li@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--recipes-devtools/go-cross/go-cross_1.3.bb3
1 files changed, 3 insertions, 0 deletions
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() {
30 export GOOS="linux" 30 export GOOS="linux"
31 31
32 export GOARCH="${TARGET_ARCH}" 32 export GOARCH="${TARGET_ARCH}"
33 # golang only support 386, amd64 and arm architecture.
33 if [ "${TARGET_ARCH}" = "x86_64" ]; then 34 if [ "${TARGET_ARCH}" = "x86_64" ]; then
34 export GOARCH="amd64" 35 export GOARCH="amd64"
36 elif [ "${TARGET_ARCH}" = "i586" ]; then
37 export GOARCH="386"
35 fi 38 fi
36 if [ "${TARGET_ARCH}" = "arm" ] 39 if [ "${TARGET_ARCH}" = "arm" ]
37 then 40 then