mirror of
https://git.yoctoproject.org/poky
synced 2026-04-10 05:02:22 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
4ccb075cdd
commit
d7f07283de
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user