summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2019-02-14 21:06:36 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-15 16:05:37 +0000
commit936eab2dab929544483d5ec3530de6c91f50484c (patch)
tree8d6b88d125d119ab5672980862400ec542bbd8b7 /meta/recipes-devtools
parent1bd04681e191dcd2f8e0bc0a70207cab7a61bfeb (diff)
downloadpoky-936eab2dab929544483d5ec3530de6c91f50484c.tar.gz
go-cross-canadian: set default value of DEBUG_PREFIX_MAP
It uses gcc on build machine during go-cross-canadian bootstrap, but the gcc version may be old and not support option '-fmacro-prefix-map' which is one of default values of DEBUG_PREFIX_MAP. So set default value of DEBUG_PREFIX_MAP for go-cross-canadian. (From OE-Core rev: bd19d2b138e1a7fbfdf0b7a7dec0bc04a3aaa219) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/go/go-cross-canadian.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc b/meta/recipes-devtools/go/go-cross-canadian.inc
index 0bc5dce8a1..945d0f9d10 100644
--- a/meta/recipes-devtools/go/go-cross-canadian.inc
+++ b/meta/recipes-devtools/go/go-cross-canadian.inc
@@ -5,6 +5,14 @@ DEPENDS = "go-native virtual/${HOST_PREFIX}go-crosssdk virtual/nativesdk-${HOST_
5 virtual/nativesdk-${HOST_PREFIX}compilerlibs" 5 virtual/nativesdk-${HOST_PREFIX}compilerlibs"
6PN = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}" 6PN = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}"
7 7
8# it uses gcc on build machine during go-cross-canadian bootstrap, but
9# the gcc version may be old and not support option '-fmacro-prefix-map'
10# which is one of default values of DEBUG_PREFIX_MAP
11DEBUG_PREFIX_MAP = "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
12 -fdebug-prefix-map=${STAGING_DIR_HOST}= \
13 -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
14 "
15
8export GOHOSTOS = "${BUILD_GOOS}" 16export GOHOSTOS = "${BUILD_GOOS}"
9export GOHOSTARCH = "${BUILD_GOARCH}" 17export GOHOSTARCH = "${BUILD_GOARCH}"
10export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go" 18export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"