]> code.ossystems Code Review - openembedded-core.git/commit
conf/bitbake.conf package.bbclass: fix dbg package not contain sources while -fdebug...
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 21 Mar 2016 08:46:20 +0000 (04:46 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Mar 2016 14:54:52 +0000 (15:54 +0100)
commitecb56a6ae0c870af680da03db9d39703b525fc98
tree93e12659de4b725fad0f36d8de27a72f249cdc60
parenta797abe08bfe4144e120c984d1718c2cc3d87c0a
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]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass
meta/conf/bitbake.conf