Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4B1D2E00AA5; Tue, 6 Oct 2015 11:34:26 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 151A5E00AAA for ; Tue, 6 Oct 2015 11:34:22 -0700 (PDT) Received: from yow-dellw-af.wrs.com (yow-dellw-af.wrs.com [128.224.56.22]) by mail.windriver.com (8.15.2/8.15.1) with ESMTP id t96IYJLY016263; Tue, 6 Oct 2015 11:34:21 -0700 (PDT) From: Amy Fong To: meta-virtualization@yoctoproject.org Date: Tue, 6 Oct 2015 14:34:05 -0400 Message-Id: <1444156449-19847-4-git-send-email-amy.fong@windriver.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1444156449-19847-1-git-send-email-amy.fong@windriver.com> References: <1444156449-19847-1-git-send-email-amy.fong@windriver.com> Subject: [PATCH 3/7] Backport go-cross: fix the building failed for quark bsp X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2015 18:34:26 -0000 submitted to upstream https://github.com/errordeveloper/oe-meta-go Signed-off-by: Amy Fong --- 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