mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
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>
This commit is contained in:
parent
6b656b8678
commit
0ce0b5cc74
|
@ -28,15 +28,10 @@ LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer"
|
||||||
do_configure[noexec] = "1"
|
do_configure[noexec] = "1"
|
||||||
EXTRA_OEMAKE="BUILDTAGS=''"
|
EXTRA_OEMAKE="BUILDTAGS=''"
|
||||||
|
|
||||||
|
inherit go-osarchmap
|
||||||
|
|
||||||
do_compile() {
|
do_compile() {
|
||||||
export GOARCH="${TARGET_ARCH}"
|
export GOARCH="${TARGET_GOARCH}"
|
||||||
# supported amd64, 386, arm arm64
|
|
||||||
if [ "${TARGET_ARCH}" = "x86_64" ]; then
|
|
||||||
export GOARCH="amd64"
|
|
||||||
fi
|
|
||||||
if [ "${TARGET_ARCH}" = "aarch64" ]; then
|
|
||||||
export GOARCH="arm64"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set GOPATH. See 'PACKAGERS.md'. Don't rely on
|
# Set GOPATH. See 'PACKAGERS.md'. Don't rely on
|
||||||
# docker to download its dependencies but rather
|
# docker to download its dependencies but rather
|
||||||
|
|
Loading…
Reference in New Issue
Block a user