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