[meta-virtualization] [PATCH 1/1] netns: Use correct go toolchain

Paul Barker paul at betafive.co.uk
Tue Jan 8 05:34:24 PST 2019


If we don't explicitly set the GO variable as an argument to make then
the native go toolchain is invoked instead of the cross-toolchain we
actually want. This can result in a netns binary which is built for the
wrong architecture.

Signed-off-by: Paul Barker <paul at betafive.co.uk>
---
 recipes-networking/netns/netns_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-networking/netns/netns_git.bb b/recipes-networking/netns/netns_git.bb
index 82a961b..b6d3594 100644
--- a/recipes-networking/netns/netns_git.bb
+++ b/recipes-networking/netns/netns_git.bb
@@ -15,6 +15,8 @@ S = "${WORKDIR}/git"
 inherit goarch
 inherit go
 
+EXTRA_OEMAKE = "GO='${GO}'"
+
 do_compile() {
 	export GOARCH="${TARGET_GOARCH}"
 	export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
-- 
2.17.1



More information about the meta-virtualization mailing list