diff options
-rw-r--r-- | recipes-containers/runc/runc_git.bb | 11 |
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" | |||
28 | do_configure[noexec] = "1" | 28 | do_configure[noexec] = "1" |
29 | EXTRA_OEMAKE="BUILDTAGS=''" | 29 | EXTRA_OEMAKE="BUILDTAGS=''" |
30 | 30 | ||
31 | inherit go-osarchmap | ||
32 | |||
31 | do_compile() { | 33 | do_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 |