summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2018-04-05 10:52:08 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-04-05 10:52:08 -0400
commite9d74162a9bfdbf0a51f230ad9bedeab920552f4 (patch)
tree2521fe6981b93d346a8a2d0e1bc57279b397f763
parentd7d310ae41133072428c69621ac7146d9f6d22f1 (diff)
downloadmeta-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.inc6
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"
11PV = "${RUNC_VERSION}+git${SRCPV}" 11PV = "${RUNC_VERSION}+git${SRCPV}"
12 12
13inherit go 13inherit go
14inherit goarch
15
14RRECOMMENDS_${PN} = "lxc docker" 16RRECOMMENDS_${PN} = "lxc docker"
15PROVIDES += "virtual/runc" 17PROVIDES += "virtual/runc"
16RPROVIDES_${PN} = "virtual/runc" 18RPROVIDES_${PN} = "virtual/runc"
@@ -20,7 +22,7 @@ GO_IMPORT = "import"
20LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer" 22LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer"
21 23
22do_configure[noexec] = "1" 24do_configure[noexec] = "1"
23EXTRA_OEMAKE="BUILDTAGS=''" 25EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}"
24 26
25do_compile() { 27do_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