diff options
author | Matt Madison <matt@madison.systems> | 2017-09-12 09:50:30 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-12 23:55:29 +0100 |
commit | d7f07283dec4a77c293318cdfee4566fe21cd3c2 (patch) | |
tree | 0a8f22caff48af16dd65490f0a3f8f7674fea4e9 /meta | |
parent | 4ccb075cdd39fedfe66f046e34b96c1d40edfcfc (diff) | |
download | poky-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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/go.bbclass | 2 |
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): | |||
20 | GO_PARALLEL_BUILD ?= "${@get_go_parallel_make(d)}" | 20 | GO_PARALLEL_BUILD ?= "${@get_go_parallel_make(d)}" |
21 | 21 | ||
22 | GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go" | 22 | GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go" |
23 | GOROOT_class-nativesdk = "${STAGING_DIR_TARGET}${libdir}/go" | ||
23 | GOROOT = "${STAGING_LIBDIR}/go" | 24 | GOROOT = "${STAGING_LIBDIR}/go" |
24 | export GOROOT | 25 | export GOROOT |
25 | export GOROOT_FINAL = "${libdir}/go" | 26 | export GOROOT_FINAL = "${libdir}/go" |
26 | 27 | ||
27 | DEPENDS_GOLANG_class-target = "virtual/${TARGET_PREFIX}go virtual/${TARGET_PREFIX}go-runtime" | 28 | DEPENDS_GOLANG_class-target = "virtual/${TARGET_PREFIX}go virtual/${TARGET_PREFIX}go-runtime" |
28 | DEPENDS_GOLANG_class-native = "go-native" | 29 | DEPENDS_GOLANG_class-native = "go-native" |
30 | DEPENDS_GOLANG_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk virtual/${TARGET_PREFIX}go-runtime" | ||
29 | 31 | ||
30 | DEPENDS_append = " ${DEPENDS_GOLANG}" | 32 | DEPENDS_append = " ${DEPENDS_GOLANG}" |
31 | 33 | ||