[OE-core] [PATCH] bitbake.conf: reset default value of DEBUG_PREFIX_MAP

Kang Kai Kai.Kang at windriver.com
Fri Jan 18 01:29:06 UTC 2019


On 2019/1/17 下午11:19, Christopher Larson wrote:
> The commit message doesn’t match what you’re actually doing. 
> "Specifying -fdebug-prefix-map is equivalent to specifying all 
> the individual -f*-prefix-map options which means 
> including -fmacro-prefix-map and -fdebug-prefix-map currently” I 
> assume you mean "Specifying -ffile-prefix-map” there.


Sorry typo here.

Regards,
Kai


>
> On Thu, Jan 17, 2019 at 12:13 AM <kai.kang at windriver.com 
> <mailto:kai.kang at windriver.com>> wrote:
>
>     From: Kai Kang <kai.kang at windriver.com
>     <mailto:kai.kang at windriver.com>>
>
>     Reset default value of DEBUG_PREFIX_MAP with '-fdebug-prefix-map'.
>     Specifying -fdebug-prefix-map is equivalent to specifying all the
>     individual -f*-prefix-map options which means including
>     -fmacro-prefix-map and -fdebug-prefix-map currently. Option
>     -fmacro-prefix-map helps to avoid buildpaths qa warnings which caused
>     by __FILE__ macro expansion for packages such as llvm and librepo.
>
>     Signed-off-by: Kai Kang <kai.kang at windriver.com
>     <mailto:kai.kang at windriver.com>>
>     ---
>      meta/conf/bitbake.conf | 6 +++---
>      1 file changed, 3 insertions(+), 3 deletions(-)
>
>     diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
>     index 0bdcd04d74..d20460e845 100644
>     --- a/meta/conf/bitbake.conf
>     +++ b/meta/conf/bitbake.conf
>     @@ -599,9 +599,9 @@ EXTRA_OEMAKE_prepend_task-install =
>     "${PARALLEL_MAKEINST} "
>      # Optimization flags.
>      ##################################################################
>      # Beware: applied last to first
>     -DEBUG_PREFIX_MAP ?=
>     "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}
>     \
>     -                     -fdebug-prefix-map=${STAGING_DIR_HOST}= \
>     -  -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
>     +DEBUG_PREFIX_MAP ?=
>     "-ffile-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}
>     \
>     +                     -ffile-prefix-map=${STAGING_DIR_HOST}= \
>     +                     -ffile-prefix-map=${STAGING_DIR_NATIVE}= \
>      "
>      DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types
>     ${DEBUG_PREFIX_MAP}"
>
>     -- 
>     2.20.0
>
>     -- 
>     _______________________________________________
>     Openembedded-core mailing list
>     Openembedded-core at lists.openembedded.org
>     <mailto:Openembedded-core at lists.openembedded.org>
>     http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
>
> -- 
> Christopher Larson
> kergoth at gmail dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Senior Software Engineer, Mentor Graphics


-- 
Kai Kang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190118/2ba792b2/attachment.html>


More information about the Openembedded-core mailing list