diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2016-03-21 04:46:20 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-28 15:55:51 +0100 |
commit | 55cd35bd1802498240878b24f40f558fb807e881 (patch) | |
tree | cecf9b26cf26491dd9c149a38df3070bbcfb01ca /meta/conf | |
parent | e2b919c1f48ed5eb4816d2fee898fd9fcea6a467 (diff) | |
download | poky-55cd35bd1802498240878b24f40f558fb807e881.tar.gz |
conf/bitbake.conf package.bbclass: fix dbg package not contain sources while -fdebug-prefix-map used
Tweak DEBUG_FLAGS to use "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
as source target path in DWARF. While use gdb to debug binary, it could
work with sources in dbg package.
While -fdebug-prefix-map is used for compiling, we do not need invoking
debugedit to edit DWARF at do_package time, but list where sources files
are.
The copydebugsources uses the list to copy sources to dbg package. It
works whether -fdebug-prefix-map used or not.
[YOCTO #9305]
(From OE-Core rev: ecb56a6ae0c870af680da03db9d39703b525fc98)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/bitbake.conf | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index d4fb5f3571..b873b4150d 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -550,8 +550,7 @@ EXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} " | |||
550 | # Optimization flags. | 550 | # Optimization flags. |
551 | ################################################################## | 551 | ################################################################## |
552 | DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types \ | 552 | DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types \ |
553 | -fdebug-prefix-map=${B}=/usr/src/${BPN} \ | 553 | -fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ |
554 | -fdebug-prefix-map=${S}=/usr/src/${BPN} \ | ||
555 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ | 554 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ |
556 | -fdebug-prefix-map=${STAGING_DIR_HOST}= \ | 555 | -fdebug-prefix-map=${STAGING_DIR_HOST}= \ |
557 | " | 556 | " |