netns: Use correct go toolchain

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@betafive.co.uk>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Paul Barker 2019-01-08 13:34:24 +00:00 committed by Bruce Ashfield
parent cf352d7493
commit d56c5abfde

View File

@ -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"