diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-04-27 20:20:30 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-26 07:54:17 +0100 |
commit | ac176badb21c907bf050e90c67bacb6bd5fe111f (patch) | |
tree | fd2b8a2fd8064abaed991512aed4c717bee2fdda /meta/conf/bitbake.conf | |
parent | 17085d769f40537937bf4ec20b4651fc8fc74e2f (diff) | |
download | poky-ac176badb21c907bf050e90c67bacb6bd5fe111f.tar.gz |
bitbake.conf: Add -fcanon-prefix-map to DEBUG_PREFIX_MAP
This should help canonicalize the relative paths and symlinks
during cross compile, -fcanon-prefix-map is newly added in gcc-13+ [1]
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108464#c8
(From OE-Core rev: ba778e43576aaab212751ccc13270fd4c504ba1f)
(From OE-Core rev: abe97fa74b10c2c71d79bc3573d4edb509b111f5)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r-- | meta/conf/bitbake.conf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index ebfc930a7c..b527dc564e 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -648,7 +648,8 @@ EXTRA_OEMAKE:prepend:task-install = "${PARALLEL_MAKEINST} " | |||
648 | # Optimization flags. | 648 | # Optimization flags. |
649 | ################################################################## | 649 | ################################################################## |
650 | # Beware: applied last to first | 650 | # Beware: applied last to first |
651 | DEBUG_PREFIX_MAP ?= "-fmacro-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ | 651 | DEBUG_PREFIX_MAP ?= "-fcanon-prefix-map \ |
652 | -fmacro-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ | ||
652 | -fdebug-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ | 653 | -fdebug-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ |
653 | -fmacro-prefix-map=${B}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ | 654 | -fmacro-prefix-map=${B}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ |
654 | -fdebug-prefix-map=${B}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ | 655 | -fdebug-prefix-map=${B}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ |