summaryrefslogtreecommitdiffstats
path: root/meta/classes/go.bbclass
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2017-09-08 18:04:32 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-11 17:30:30 +0100
commit8a43f94d1d5e3a7aed56a55447652618e7f0c4ef (patch)
treed232b32c3d5dda8da435b57df45406092cf8dda0 /meta/classes/go.bbclass
parentb34479ee9fd43c14af81829b446d1bc95c5ced70 (diff)
downloadpoky-8a43f94d1d5e3a7aed56a55447652618e7f0c4ef.tar.gz
go.bbclass: Fix binary installation path detection
Go toolchain changes the installation path when building for the same architecture as the build host. This was already been considered in the GO_BUILD_BINDIR variable but was not being used by the go class. This fixes following error: ,---- | ERROR: go-dep-0.3.0-r0 do_package: QA Issue: go-dep: Files/directories | were installed but not shipped in any package: | /usr/lib/x86_64-oel-linux/go/bin/dep | Please set FILES such that these items are packaged. Alternatively if | they are unneeded, avoid installing them or delete them within | do_install. `---- (From OE-Core rev: 56ce355b3d775e801d2ca89ee812571e794311cd) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/go.bbclass')
-rw-r--r--meta/classes/go.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index cedda68c55..e073cb91b5 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -3,7 +3,7 @@ inherit goarch
3GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go" 3GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go"
4GOROOT = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go" 4GOROOT = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
5GOBIN_FINAL_class-native = "${GOROOT_FINAL}/bin" 5GOBIN_FINAL_class-native = "${GOROOT_FINAL}/bin"
6GOBIN_FINAL = "${GOROOT_FINAL}/bin/${GOOS}_${GOARCH}" 6GOBIN_FINAL = "${GOROOT_FINAL}/${GO_BUILD_BINDIR}"
7 7
8export GOOS = "${TARGET_GOOS}" 8export GOOS = "${TARGET_GOOS}"
9export GOARCH = "${TARGET_GOARCH}" 9export GOARCH = "${TARGET_GOARCH}"