diff options
Diffstat (limited to 'meta/recipes-devtools/go/go-crosssdk.inc')
-rw-r--r-- | meta/recipes-devtools/go/go-crosssdk.inc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/recipes-devtools/go/go-crosssdk.inc b/meta/recipes-devtools/go/go-crosssdk.inc index f67e4b92a0..05ca62eba8 100644 --- a/meta/recipes-devtools/go/go-crosssdk.inc +++ b/meta/recipes-devtools/go/go-crosssdk.inc | |||
@@ -11,21 +11,21 @@ export GOARCH = "${TARGET_GOARCH}" | |||
11 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" | 11 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" |
12 | export GOROOT_FINAL = "${libdir}/go" | 12 | export GOROOT_FINAL = "${libdir}/go" |
13 | export CGO_ENABLED = "1" | 13 | export CGO_ENABLED = "1" |
14 | export CC_FOR_TARGET="${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}${SDKPATHNATIVE}" | 14 | export GOCACHE = "off" |
15 | export CXX_FOR_TARGET="${TARGET_PREFIX}g++ ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}${SDKPATHNATIVE}" | 15 | export GOTMPDIR ?= "${WORKDIR}/go-tmp" |
16 | export GO_INSTALL = "cmd" | 16 | GOTMPDIR[vardepvalue] = "" |
17 | CC = "${@d.getVar('BUILD_CC').strip()}" | ||
18 | 17 | ||
19 | do_configure[noexec] = "1" | 18 | do_configure[noexec] = "1" |
20 | 19 | ||
21 | do_compile() { | 20 | do_compile() { |
22 | export GOBIN="${B}/bin" | 21 | export CC_FOR_${TARGET_GOOS}_${TARGET_GOARCH}="${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}${SDKPATHNATIVE}" |
23 | rm -rf ${GOBIN} ${B}/pkg | 22 | export CXX_FOR_${TARGET_GOOS}_${TARGET_GOARCH}="${TARGET_PREFIX}g++ ${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}${SDKPATHNATIVE}" |
24 | mkdir ${GOBIN} | ||
25 | cd src | 23 | cd src |
26 | ./make.bash --host-only | 24 | ./make.bash --host-only --no-banner |
27 | cd ${B} | 25 | cd ${B} |
28 | } | 26 | } |
27 | do_compile[dirs] =+ "${GOTMPDIR} ${B}/bin ${B}/pkg" | ||
28 | do_compile[cleandirs] += "${GOTMPDIR} ${B}/bin ${B}/pkg" | ||
29 | 29 | ||
30 | make_wrapper() { | 30 | make_wrapper() { |
31 | rm -f ${D}${bindir}/$2 | 31 | rm -f ${D}${bindir}/$2 |