[OE-core] [PATCH 0/4] base/bbclass: use target path to replace build ones in debugging info

Khem Raj raj.khem at gmail.com
Wed Jan 27 19:34:11 UTC 2016


> On Jan 27, 2016, at 5:16 AM, Richard Purdie <richard.purdie at linuxfoundation.org> wrote:
> 
> I like the idea of this a lot, I think it makes sense however why not
> just:
> 
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index e80ee18..284f7fb 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -546,7 +546,14 @@ EXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} "
> ##################################################################
> # Optimization flags.
> ##################################################################
> -DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types"
> +DEBUG_FLAGS ?= "-g \
> +    -feliminate-unused-debug-types \
> +    -fdebug-prefix-map=${B}=/usr/src/${BPN} \
> +    -fdebug-prefix-map=${S}=/usr/src/${BPN}
> +    -gno-record-gcc-switches \

can we leave the switches in ?

> +    -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
> +    -fdebug-prefix-map=${STAGING_DIR_HOST}= \
> +"
> # Disabled until the option works properly -feliminate-dwarf2-dups
> FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}"
> DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe"
> 
> ?
> 
> Cheers,
> 
> Richard
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160127/8ddb035c/attachment-0002.sig>


More information about the Openembedded-core mailing list