summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2016-02-16 04:14:55 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-18 07:39:29 +0000
commit7a11650ebcb14f8a7cb810e2e6a05294fbccc57a (patch)
treebcc44d7e2e37a31bac1495f54c43fa43a0d8785d /meta
parentef301191858db811dc9ca6e30cfd487895b4c021 (diff)
downloadpoky-7a11650ebcb14f8a7cb810e2e6a05294fbccc57a.tar.gz
bitbake.conf: use target path as compile dir in debugging info
In debugging information, it uses target paths rather than build ones as compile dir. ... -fdebug-prefix-map=old=new When compiling files in directory old, record debugging information describing them as in new instead. ... Compile without this fix: objdump -g git/test.o ... The Directory Table (offset 0x1b): | 1 /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/x86_64-linux/usr/lib/ i686-pokymllib32-linux.lib32-gcc-cross-initial-i686/gcc/i686-pokymllib32-linux/5.3.0/include | 2 /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/lib32-qemux86-64/usr/include/bits | 3 /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/lib32-qemux86-64/usr/include ... Compile with this fix: objdump -g git/test.o ... The Directory Table (offset 0x1b): | 1 /usr/lib/i686-pokymllib32-linux.lib32-gcc-cross-initial-i686/gcc/i686-pokymllib32-linux/ 5.3.0/include | 2 /usr/include/bits | 3 /usr/include ... [YOCTO #7058] (From OE-Core rev: 0fe42caad8f7c142741a28b09458f4e2fdf289ff) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/conf/bitbake.conf8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index a75bb8b7d4..631b759349 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -544,7 +544,13 @@ EXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} "
544################################################################## 544##################################################################
545# Optimization flags. 545# Optimization flags.
546################################################################## 546##################################################################
547DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types" 547DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types \
548 -fdebug-prefix-map=${B}=/usr/src/${BPN} \
549 -fdebug-prefix-map=${S}=/usr/src/${BPN} \
550 -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
551 -fdebug-prefix-map=${STAGING_DIR_HOST}= \
552"
553
548# Disabled until the option works properly -feliminate-dwarf2-dups 554# Disabled until the option works properly -feliminate-dwarf2-dups
549FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" 555FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}"
550DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" 556DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe"