summaryrefslogtreecommitdiffstats
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2019-02-14 21:06:35 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-15 16:05:37 +0000
commit1bd04681e191dcd2f8e0bc0a70207cab7a61bfeb (patch)
tree5d7a7faefaf034b8c1e780558ccf3b25fd190adc /meta/conf/bitbake.conf
parentcc283a9028f69dc29f3e28a21be96107be52827b (diff)
downloadpoky-1bd04681e191dcd2f8e0bc0a70207cab7a61bfeb.tar.gz
bitbake.conf: update DEBUG_PREFIX_MAP with -fmacro-prefix-map
Add option '-fmacro-prefix-map' to DEBUG_PREFIX_MAP. It could resolve buildpaths qa warnings which caused by macros '__FILE__' and '__BASE_FILE__'. Though option '-ffile-prefix-map' could cover '-fdebug-prefix-map' and '-fdebug-prefix-map' both, it is not supported by 'as' and causes buildpaths qa warnings of glibc: | QA Issue: File | /work/i586-poky-linux/glibc/2.29-r0/packages-split/glibc-dev/usr/lib/crti.o | in package contained reference to tmpdir So only add '-fmacro-prefix-map' to DEBUG_PREFIX_MAP rather than replace '-fdebug-prefix-map' with '-ffile-prefix-map'. (From OE-Core rev: c62ac539e58b028b7508385c2c9be3561261f2e8) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 6e063dc14d..435646a946 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -601,7 +601,8 @@ EXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} "
601# Optimization flags. 601# Optimization flags.
602################################################################## 602##################################################################
603# Beware: applied last to first 603# Beware: applied last to first
604DEBUG_PREFIX_MAP ?= "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ 604DEBUG_PREFIX_MAP ?= "-fmacro-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
605 -fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
605 -fdebug-prefix-map=${STAGING_DIR_HOST}= \ 606 -fdebug-prefix-map=${STAGING_DIR_HOST}= \
606 -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ 607 -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
607" 608"