diff options
-rw-r--r-- | recipes-devtools/go-cross/go-cross_1.3.bb | 3 |
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 |