summaryrefslogtreecommitdiffstats
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-20 13:28:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-17 19:57:32 +0100
commit12bdb5df1ebb4e43900f297e0e94b35553a30999 (patch)
treef10f0672a20621a555996dd6bd59d147c800592c /meta/conf/bitbake.conf
parent794371ad2da471321bfde494523ee73a10380e0a (diff)
downloadpoky-12bdb5df1ebb4e43900f297e0e94b35553a30999.tar.gz
bitbake.conf: Handle S and B separately for debug mapping
We don't really need to keep S and B separate for debug source purposes and there shouldn't be source references in WORKDIR that isn't S and B either. Separating these out simplifies the shared-work directory handling for gcc and should also help fix external source usage. Therefore handle S and B in DEBUG_PREFIX_MAP separately and clean up other code. Indentation is reduced here as it is introduced on every compiler commandline so minimising it is helpful. (From OE-Core rev: c39b5020b8705d17e3745c41e38d0f99a1ac94cf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index bdfb678437..dd2df8a552 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -645,10 +645,13 @@ EXTRA_OEMAKE:prepend:task-install = "${PARALLEL_MAKEINST} "
645# Optimization flags. 645# Optimization flags.
646################################################################## 646##################################################################
647# Beware: applied last to first 647# Beware: applied last to first
648DEBUG_PREFIX_MAP ?= "-fmacro-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ 648DEBUG_PREFIX_MAP ?= "-fmacro-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
649 -fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ 649 -fdebug-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
650 -fdebug-prefix-map=${STAGING_DIR_HOST}= \ 650 -fmacro-prefix-map=${B}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
651 -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ 651 -fdebug-prefix-map=${B}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
652 -fdebug-prefix-map=${STAGING_DIR_HOST}= \
653 -fmacro-prefix-map=${STAGING_DIR_HOST}= \
654 -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
652" 655"
653DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}" 656DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}"
654 657