aboutsummaryrefslogtreecommitdiffstats
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:51:38 +0100
commit83ad0bdb8a426b0beb3775cfb109ddb3936b7de1 (patch)
treeb135c0244251675520b5b272c6ec51f63249c62f
parent5dbca2ab4ab9fdd200bbc8eb0572098e6fdbac84 (diff)
downloadopenembedded-core-83ad0bdb8a426b0beb3775cfb109ddb3936b7de1.tar.gz
openembedded-core-83ad0bdb8a426b0beb3775cfb109ddb3936b7de1.tar.bz2
openembedded-core-83ad0bdb8a426b0beb3775cfb109ddb3936b7de1.zip
go.bbclass: enable nativesdk builds for Go packages
Adding the necessary overrides for nativesdk builds. 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):
GO_PARALLEL_BUILD ?= "${@get_go_parallel_make(d)}"
GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go"
+GOROOT_class-nativesdk = "${STAGING_DIR_TARGET}${libdir}/go"
GOROOT = "${STAGING_LIBDIR}/go"
export GOROOT
export GOROOT_FINAL = "${libdir}/go"
DEPENDS_GOLANG_class-target = "virtual/${TARGET_PREFIX}go virtual/${TARGET_PREFIX}go-runtime"
DEPENDS_GOLANG_class-native = "go-native"
+DEPENDS_GOLANG_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk virtual/${TARGET_PREFIX}go-runtime"
DEPENDS_append = " ${DEPENDS_GOLANG}"