summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Barker <paul@paulbarker.me.uk>2016-06-16 20:06:29 +0100
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-06-17 08:34:55 -0400
commit0ce0b5cc747c56ea9e4737ecd0b98633b29b17d2 (patch)
tree1b8693ae04ac443b86876c5d325d2eebe6c6b657
parent6b656b8678abbda77f950ba6fd638196166333b7 (diff)
downloadmeta-virtualization-0ce0b5cc747c56ea9e4737ecd0b98633b29b17d2.tar.gz
runc: Use go-osarchmap to set GOARCH
When building for qemux86 the following error was encountered due to GOARCH being set incorrectly: compile: unknown architecture "i586" This can be fixed by using the go-osarchmap class. Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--recipes-containers/runc/runc_git.bb11
1 files changed, 3 insertions, 8 deletions
diff --git a/recipes-containers/runc/runc_git.bb b/recipes-containers/runc/runc_git.bb
index b47914eb..955ea93c 100644
--- a/recipes-containers/runc/runc_git.bb
+++ b/recipes-containers/runc/runc_git.bb
@@ -28,15 +28,10 @@ LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer"
28do_configure[noexec] = "1" 28do_configure[noexec] = "1"
29EXTRA_OEMAKE="BUILDTAGS=''" 29EXTRA_OEMAKE="BUILDTAGS=''"
30 30
31inherit go-osarchmap
32
31do_compile() { 33do_compile() {
32 export GOARCH="${TARGET_ARCH}" 34 export GOARCH="${TARGET_GOARCH}"
33 # supported amd64, 386, arm arm64
34 if [ "${TARGET_ARCH}" = "x86_64" ]; then
35 export GOARCH="amd64"
36 fi
37 if [ "${TARGET_ARCH}" = "aarch64" ]; then
38 export GOARCH="arm64"
39 fi
40 35
41 # Set GOPATH. See 'PACKAGERS.md'. Don't rely on 36 # Set GOPATH. See 'PACKAGERS.md'. Don't rely on
42 # docker to download its dependencies but rather 37 # docker to download its dependencies but rather