diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-04-05 10:52:08 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-04-05 10:52:08 -0400 |
commit | e9d74162a9bfdbf0a51f230ad9bedeab920552f4 (patch) | |
tree | 2521fe6981b93d346a8a2d0e1bc57279b397f763 | |
parent | d7d310ae41133072428c69621ac7146d9f6d22f1 (diff) | |
download | meta-virtualization-e9d74162a9bfdbf0a51f230ad9bedeab920552f4.tar.gz |
runc: ensure that ${GO} is exported build/make
The runc makefile now uses $(GO) universally, but sets the variable
as GO := go by default. This means that the host go will be used
instead of our recipe sysroot variant.
A simple export of the variable is not enough in all cases (due
to Make assignments), so both export it AND pass it directly to the
oe_make call.
This fixes docker-runc builds on ARM64.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-containers/runc/runc.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc index 01791030..ec017225 100644 --- a/recipes-containers/runc/runc.inc +++ b/recipes-containers/runc/runc.inc | |||
@@ -11,6 +11,8 @@ S = "${WORKDIR}/git" | |||
11 | PV = "${RUNC_VERSION}+git${SRCPV}" | 11 | PV = "${RUNC_VERSION}+git${SRCPV}" |
12 | 12 | ||
13 | inherit go | 13 | inherit go |
14 | inherit goarch | ||
15 | |||
14 | RRECOMMENDS_${PN} = "lxc docker" | 16 | RRECOMMENDS_${PN} = "lxc docker" |
15 | PROVIDES += "virtual/runc" | 17 | PROVIDES += "virtual/runc" |
16 | RPROVIDES_${PN} = "virtual/runc" | 18 | RPROVIDES_${PN} = "virtual/runc" |
@@ -20,7 +22,7 @@ GO_IMPORT = "import" | |||
20 | LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer" | 22 | LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer" |
21 | 23 | ||
22 | do_configure[noexec] = "1" | 24 | do_configure[noexec] = "1" |
23 | EXTRA_OEMAKE="BUILDTAGS=''" | 25 | EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}" |
24 | 26 | ||
25 | do_compile() { | 27 | do_compile() { |
26 | # Set GOPATH. See 'PACKAGERS.md'. Don't rely on | 28 | # Set GOPATH. See 'PACKAGERS.md'. Don't rely on |
@@ -44,6 +46,8 @@ do_compile() { | |||
44 | export CGO_ENABLED="1" | 46 | export CGO_ENABLED="1" |
45 | export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" | 47 | export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" |
46 | export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" | 48 | export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" |
49 | export GO=${GO} | ||
50 | |||
47 | export CFLAGS="" | 51 | export CFLAGS="" |
48 | export LDFLAGS="" | 52 | export LDFLAGS="" |
49 | 53 | ||