summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-runtime.inc
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2018-03-04 13:09:32 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-06 06:43:10 -0800
commit020915eb9b2dd4632b44ba7c18bd09f944a03042 (patch)
tree4f9bcea06dd11b12d7a838dbb6ba84c330adebbf /meta/recipes-devtools/go/go-runtime.inc
parent58472bc7d07df7c713baffea16a1e3f48295cb5f (diff)
downloadpoky-020915eb9b2dd4632b44ba7c18bd09f944a03042.tar.gz
go: move common settings to go-common.inc
Eliminate some redundancy in the recipes by moving some commonly-used variable settings to the common include file. Also removed a duplicate inherit from go-target.inc that was already in go-common.inc. (From OE-Core rev: e72d2a7b7ee7913095a35ae92c3ca364de00c8a7) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-runtime.inc')
-rw-r--r--meta/recipes-devtools/go/go-runtime.inc5
1 files changed, 1 insertions, 4 deletions
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}"
11export GOMIPS = "${TARGET_GOMIPS}" 11export GOMIPS = "${TARGET_GOMIPS}"
12export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" 12export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
13export GOROOT_FINAL = "${libdir}/go" 13export GOROOT_FINAL = "${libdir}/go"
14export CGO_ENABLED = "1"
15export CGO_CFLAGS = "${CFLAGS}" 14export CGO_CFLAGS = "${CFLAGS}"
16export CGO_CPPFLAGS = "${CPPFLAGS}" 15export CGO_CPPFLAGS = "${CPPFLAGS}"
17export CGO_CXXFLAGS = "${CXXFLAGS}" 16export CGO_CXXFLAGS = "${CXXFLAGS}"
18export CGO_LDFLAGS = "${LDFLAGS}" 17export CGO_LDFLAGS = "${LDFLAGS}"
19export GOCACHE = "off" 18
20export GOTMPDIR ?= "${WORKDIR}/go-tmp"
21GOTMPDIR[vardepvalue] = ""
22GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}" 19GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}"
23GO_LINKMODE ?= "" 20GO_LINKMODE ?= ""
24GO_LINKMODE_class-nativesdk = "--linkmode=external" 21GO_LINKMODE_class-nativesdk = "--linkmode=external"