summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/go.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 6df73bf377..82b5f83aa0 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -24,6 +24,11 @@ GOROOT = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
24GOBIN_FINAL_class-native = "${GOROOT_FINAL}/bin" 24GOBIN_FINAL_class-native = "${GOROOT_FINAL}/bin"
25GOBIN_FINAL = "${GOROOT_FINAL}/${GO_BUILD_BINDIR}" 25GOBIN_FINAL = "${GOROOT_FINAL}/${GO_BUILD_BINDIR}"
26 26
27DEPENDS_GOLANG_class-target = "go-cross-${TARGET_ARCH}"
28DEPENDS_GOLANG_class-native = "go-native"
29
30DEPENDS_append = " ${DEPENDS_GOLANG}"
31
27export GOBUILDFLAGS ?= "-v" 32export GOBUILDFLAGS ?= "-v"
28GOBUILDFLAGS_prepend_task-compile = "${GO_PARALLEL_BUILD} " 33GOBUILDFLAGS_prepend_task-compile = "${GO_PARALLEL_BUILD} "
29 34
@@ -43,9 +48,6 @@ export CGO_CPPFLAGS = "${TARGET_CPPFLAGS}"
43export CGO_CXXFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} ${TARGET_CXXFLAGS}" 48export CGO_CXXFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} ${TARGET_CXXFLAGS}"
44export CGO_LDFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} ${TARGET_LDFLAGS}" 49export CGO_LDFLAGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS} ${TARGET_LDFLAGS}"
45 50
46DEPENDS += "go-cross-${TARGET_ARCH}"
47DEPENDS_class-native += "go-native"
48
49FILES_${PN}-staticdev += "${GOSRC_FINAL}/${GO_IMPORT}" 51FILES_${PN}-staticdev += "${GOSRC_FINAL}/${GO_IMPORT}"
50FILES_${PN}-staticdev += "${GOPKG_FINAL}/${GO_IMPORT}*" 52FILES_${PN}-staticdev += "${GOPKG_FINAL}/${GO_IMPORT}*"
51 53