diff options
-rw-r--r-- | meta/recipes-devtools/go/go-common.inc | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-cross-canadian.inc | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-cross.inc | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-crosssdk.inc | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-native.inc | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-runtime.inc | 5 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-target.inc | 5 |
7 files changed, 5 insertions, 23 deletions
diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc index 611775b2cc..11d55c4d36 100644 --- a/meta/recipes-devtools/go/go-common.inc +++ b/meta/recipes-devtools/go/go-common.inc | |||
@@ -23,6 +23,10 @@ INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | |||
23 | SSTATE_SCAN_CMD = "true" | 23 | SSTATE_SCAN_CMD = "true" |
24 | 24 | ||
25 | export GOROOT_OVERRIDE = "1" | 25 | export GOROOT_OVERRIDE = "1" |
26 | export GOTMPDIR ?= "${WORKDIR}/go-tmp" | ||
27 | GOTMPDIR[vardepvalue] = "" | ||
28 | export GOCACHE = "off" | ||
29 | export CGO_ENABLED = "1" | ||
26 | 30 | ||
27 | do_compile_prepend() { | 31 | do_compile_prepend() { |
28 | BUILD_CC=${BUILD_CC} | 32 | BUILD_CC=${BUILD_CC} |
diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc b/meta/recipes-devtools/go/go-cross-canadian.inc index 4a43d831fa..e630b83df8 100644 --- a/meta/recipes-devtools/go/go-cross-canadian.inc +++ b/meta/recipes-devtools/go/go-cross-canadian.inc | |||
@@ -10,10 +10,6 @@ export GOHOSTARCH = "${BUILD_GOARCH}" | |||
10 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" | 10 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" |
11 | export GOTOOLDIR_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/${HOST_SYS}/go/pkg/tool/${BUILD_GOTUPLE}" | 11 | export GOTOOLDIR_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/${HOST_SYS}/go/pkg/tool/${BUILD_GOTUPLE}" |
12 | export GOROOT_FINAL = "${libdir}/go" | 12 | export GOROOT_FINAL = "${libdir}/go" |
13 | export CGO_ENABLED = "1" | ||
14 | export GOCACHE = "off" | ||
15 | export GOTMPDIR ?= "${WORKDIR}/go-tmp" | ||
16 | GOTMPDIR[vardepvalue] = "" | ||
17 | export CGO_CFLAGS = "${CFLAGS}" | 13 | export CGO_CFLAGS = "${CFLAGS}" |
18 | export CGO_LDFLAGS = "${LDFLAGS}" | 14 | export CGO_LDFLAGS = "${LDFLAGS}" |
19 | export GO_LDFLAGS = '-linkmode external -extld ${HOST_PREFIX}gcc -extldflags "--sysroot=${STAGING_DIR_HOST} ${HOST_CC_ARCH} ${LDFLAGS}"' | 15 | export GO_LDFLAGS = '-linkmode external -extld ${HOST_PREFIX}gcc -extldflags "--sysroot=${STAGING_DIR_HOST} ${HOST_CC_ARCH} ${LDFLAGS}"' |
diff --git a/meta/recipes-devtools/go/go-cross.inc b/meta/recipes-devtools/go/go-cross.inc index 289ae77104..44f230b8bc 100644 --- a/meta/recipes-devtools/go/go-cross.inc +++ b/meta/recipes-devtools/go/go-cross.inc | |||
@@ -15,9 +15,6 @@ export GOMIPS = "${TARGET_GOMIPS}" | |||
15 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" | 15 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" |
16 | export GOROOT_FINAL = "${libdir}/go" | 16 | export GOROOT_FINAL = "${libdir}/go" |
17 | export GOCACHE = "off" | 17 | export GOCACHE = "off" |
18 | export GOTMPDIR ?= "${WORKDIR}/go-tmp" | ||
19 | GOTMPDIR[vardepvalue] = "" | ||
20 | export CGO_ENABLED = "1" | ||
21 | CC = "${@d.getVar('BUILD_CC').strip()}" | 18 | CC = "${@d.getVar('BUILD_CC').strip()}" |
22 | 19 | ||
23 | do_configure[noexec] = "1" | 20 | do_configure[noexec] = "1" |
diff --git a/meta/recipes-devtools/go/go-crosssdk.inc b/meta/recipes-devtools/go/go-crosssdk.inc index 05ca62eba8..4391b32424 100644 --- a/meta/recipes-devtools/go/go-crosssdk.inc +++ b/meta/recipes-devtools/go/go-crosssdk.inc | |||
@@ -10,10 +10,6 @@ export GOOS = "${TARGET_GOOS}" | |||
10 | export GOARCH = "${TARGET_GOARCH}" | 10 | 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" | ||
14 | export GOCACHE = "off" | ||
15 | export GOTMPDIR ?= "${WORKDIR}/go-tmp" | ||
16 | GOTMPDIR[vardepvalue] = "" | ||
17 | 13 | ||
18 | do_configure[noexec] = "1" | 14 | do_configure[noexec] = "1" |
19 | 15 | ||
diff --git a/meta/recipes-devtools/go/go-native.inc b/meta/recipes-devtools/go/go-native.inc index 35561768df..b76fb0825e 100644 --- a/meta/recipes-devtools/go/go-native.inc +++ b/meta/recipes-devtools/go/go-native.inc | |||
@@ -10,11 +10,8 @@ SRC_URI[bootstrap.sha256sum] = "f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96 | |||
10 | 10 | ||
11 | export GOOS = "${BUILD_GOOS}" | 11 | export GOOS = "${BUILD_GOOS}" |
12 | export GOARCH = "${BUILD_GOARCH}" | 12 | export GOARCH = "${BUILD_GOARCH}" |
13 | export GOTMPDIR ?= "${WORKDIR}/go-tmp" | ||
14 | GOTMPDIR[vardepvalue] = "" | ||
15 | CC = "${@d.getVar('BUILD_CC').strip()}" | 13 | CC = "${@d.getVar('BUILD_CC').strip()}" |
16 | 14 | ||
17 | export CGO_ENABLED = "1" | ||
18 | GOMAKEARGS ?= "--no-banner" | 15 | GOMAKEARGS ?= "--no-banner" |
19 | 16 | ||
20 | do_configure() { | 17 | do_configure() { |
diff --git a/meta/recipes-devtools/go/go-runtime.inc b/meta/recipes-devtools/go/go-runtime.inc index 0fe4566360..a79295df47 100644 --- a/meta/recipes-devtools/go/go-runtime.inc +++ b/meta/recipes-devtools/go/go-runtime.inc | |||
@@ -11,14 +11,11 @@ export GO386 = "${TARGET_GO386}" | |||
11 | export GOMIPS = "${TARGET_GOMIPS}" | 11 | export GOMIPS = "${TARGET_GOMIPS}" |
12 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" | 12 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" |
13 | export GOROOT_FINAL = "${libdir}/go" | 13 | export GOROOT_FINAL = "${libdir}/go" |
14 | export CGO_ENABLED = "1" | ||
15 | export CGO_CFLAGS = "${CFLAGS}" | 14 | export CGO_CFLAGS = "${CFLAGS}" |
16 | export CGO_CPPFLAGS = "${CPPFLAGS}" | 15 | export CGO_CPPFLAGS = "${CPPFLAGS}" |
17 | export CGO_CXXFLAGS = "${CXXFLAGS}" | 16 | export CGO_CXXFLAGS = "${CXXFLAGS}" |
18 | export CGO_LDFLAGS = "${LDFLAGS}" | 17 | export CGO_LDFLAGS = "${LDFLAGS}" |
19 | export GOCACHE = "off" | 18 | |
20 | export GOTMPDIR ?= "${WORKDIR}/go-tmp" | ||
21 | GOTMPDIR[vardepvalue] = "" | ||
22 | GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}" | 19 | GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}" |
23 | GO_LINKMODE ?= "" | 20 | GO_LINKMODE ?= "" |
24 | GO_LINKMODE_class-nativesdk = "--linkmode=external" | 21 | GO_LINKMODE_class-nativesdk = "--linkmode=external" |
diff --git a/meta/recipes-devtools/go/go-target.inc b/meta/recipes-devtools/go/go-target.inc index 141a456cca..3bc32f3bec 100644 --- a/meta/recipes-devtools/go/go-target.inc +++ b/meta/recipes-devtools/go/go-target.inc | |||
@@ -1,4 +1,3 @@ | |||
1 | inherit goarch | ||
2 | DEPENDS = "virtual/${TARGET_PREFIX}go go-native" | 1 | DEPENDS = "virtual/${TARGET_PREFIX}go go-native" |
3 | DEPENDS_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk go-native" | 2 | DEPENDS_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk go-native" |
4 | 3 | ||
@@ -11,10 +10,6 @@ export GO386 = "${TARGET_GO386}" | |||
11 | export GOMIPS = "${TARGET_GOMIPS}" | 10 | export GOMIPS = "${TARGET_GOMIPS}" |
12 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" | 11 | export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" |
13 | export GOROOT_FINAL = "${libdir}/go" | 12 | export GOROOT_FINAL = "${libdir}/go" |
14 | export CGO_ENABLED = "1" | ||
15 | export GOCACHE = "off" | ||
16 | export GOTMPDIR ?= "${WORKDIR}/go-tmp" | ||
17 | GOTMPDIR[vardepvalue] = "" | ||
18 | GO_LDFLAGS = "" | 13 | GO_LDFLAGS = "" |
19 | GO_LDFLAGS_class-nativesdk = "-linkmode external" | 14 | GO_LDFLAGS_class-nativesdk = "-linkmode external" |
20 | export GO_LDFLAGS | 15 | export GO_LDFLAGS |