summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2017-09-12 09:50:30 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-12 23:55:29 +0100
commitd7f07283dec4a77c293318cdfee4566fe21cd3c2 (patch)
tree0a8f22caff48af16dd65490f0a3f8f7674fea4e9
parent4ccb075cdd39fedfe66f046e34b96c1d40edfcfc (diff)
downloadpoky-d7f07283dec4a77c293318cdfee4566fe21cd3c2.tar.gz
go.bbclass: enable nativesdk builds for Go packages
Adding the necessary overrides for nativesdk builds. (From OE-Core rev: 83ad0bdb8a426b0beb3775cfb109ddb3936b7de1) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/go.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 8fb41e5c09..8d363e86a2 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -20,12 +20,14 @@ def get_go_parallel_make(d):
20GO_PARALLEL_BUILD ?= "${@get_go_parallel_make(d)}" 20GO_PARALLEL_BUILD ?= "${@get_go_parallel_make(d)}"
21 21
22GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go" 22GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go"
23GOROOT_class-nativesdk = "${STAGING_DIR_TARGET}${libdir}/go"
23GOROOT = "${STAGING_LIBDIR}/go" 24GOROOT = "${STAGING_LIBDIR}/go"
24export GOROOT 25export GOROOT
25export GOROOT_FINAL = "${libdir}/go" 26export GOROOT_FINAL = "${libdir}/go"
26 27
27DEPENDS_GOLANG_class-target = "virtual/${TARGET_PREFIX}go virtual/${TARGET_PREFIX}go-runtime" 28DEPENDS_GOLANG_class-target = "virtual/${TARGET_PREFIX}go virtual/${TARGET_PREFIX}go-runtime"
28DEPENDS_GOLANG_class-native = "go-native" 29DEPENDS_GOLANG_class-native = "go-native"
30DEPENDS_GOLANG_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk virtual/${TARGET_PREFIX}go-runtime"
29 31
30DEPENDS_append = " ${DEPENDS_GOLANG}" 32DEPENDS_append = " ${DEPENDS_GOLANG}"
31 33