summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Kroon <jacob.kroon@gmail.com>2016-07-28 12:56:06 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-23 15:27:04 +0100
commit7639be6851e57fe3d9358bb457d2db1a2d077ae2 (patch)
tree9f1a17ceefce8ab762cc19cb54896b0c9d985269
parenta10c9109e23aae01fe501e028293a77d69f39fd9 (diff)
downloadpoky-7639be6851e57fe3d9358bb457d2db1a2d077ae2.tar.gz
bitbake.conf/toolchain-scripts.bbclass: Remove debug prefix mappings in SDK
CFLAGS/CXXFLAGS in the SDK environment script adds debug-prefix mappings that include staging area/work directories. Remove them since the SDK shouldn't be aware of them. (From OE-Core rev: 7918e73e9c5fe8c8c1c1d341eaa42f2f7d3ddb69) (From OE-Core rev: e52b98077e94e7071e70de28ed95092aad74d3ac) Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/toolchain-scripts.bbclass3
-rw-r--r--meta/conf/bitbake.conf8
2 files changed, 7 insertions, 4 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 02e69c8400..7053a1495f 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -6,6 +6,9 @@ REAL_MULTIMACH_TARGET_SYS ?= "${MULTIMACH_TARGET_SYS}"
6TARGET_CC_ARCH_append_libc-uclibc = " -muclibc" 6TARGET_CC_ARCH_append_libc-uclibc = " -muclibc"
7TARGET_CC_ARCH_append_libc-musl = " -mmusl" 7TARGET_CC_ARCH_append_libc-musl = " -mmusl"
8 8
9# default debug prefix map isn't valid in the SDK
10DEBUG_PREFIX_MAP = ""
11
9# This function creates an environment-setup-script for use in a deployable SDK 12# This function creates an environment-setup-script for use in a deployable SDK
10toolchain_create_sdk_env_script () { 13toolchain_create_sdk_env_script () {
11 # Create environment setup script 14 # Create environment setup script
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index b623276082..e0da14f14c 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -549,11 +549,11 @@ EXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} "
549################################################################## 549##################################################################
550# Optimization flags. 550# Optimization flags.
551################################################################## 551##################################################################
552DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types \ 552DEBUG_PREFIX_MAP ?= "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
553 -fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ 553 -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
554 -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ 554 -fdebug-prefix-map=${STAGING_DIR_HOST}= \
555 -fdebug-prefix-map=${STAGING_DIR_HOST}= \
556" 555"
556DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}"
557 557
558# Disabled until the option works properly -feliminate-dwarf2-dups 558# Disabled until the option works properly -feliminate-dwarf2-dups
559FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" 559FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}"