Le mer. 19 nov. 2025 à 11:20, Gyorgy Sarvari via lists.openembedded.org
<[email protected]> a écrit :
> When the debug-prefix-map and macro-prefix-map compiler flags
> were change to file-prefix-map[1] the -fcanon-prefix-map
> flag was removed, most likely accidentally.
>
> Due to this the file paths were not canonicalized before
> substituting them, so they did not always match the corresponding keys.
>
> E.g. relative pathes were not converted to absolute ones:
> ../../sources/foo.cpp doesn't match ${S}/foo.cpp, and due to
> this some debug sources were missed.
>
> This patch adds back the -fcanon-prefix-map flag.
>
> [1]:
> https://git.openembedded.org/openembedded-core/commit/?id=ff73fa7ef7666a6dbe34f15515bc3ab6e574c5b0
This patch does fix a bug I filed yesterday :
https://bugzilla.yoctoproject.org/show_bug.cgi?id=16069
Awesome, thanks!
For the out-of-tree kernel module case:
Tested-by: Yoann Congal <[email protected]>
> Cc: Khem Raj <[email protected]>
> Signed-off-by: Gyorgy Sarvari <[email protected]>
> ---
> meta/conf/bitbake.conf | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 52ceb76bbb..f789b8e326 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -650,7 +650,7 @@ EXTRA_OEMAKE:prepend:task-install =
> "${PARALLEL_MAKEINST} "
> ##################################################################
> TARGET_DBGSRC_DIR ?= "/usr/src/debug/${PN}/${PV}"
> # Beware: applied last to first
> -DEBUG_PREFIX_MAP ?= "\
> +DEBUG_PREFIX_MAP ?= "-fcanon-prefix-map \
> -ffile-prefix-map=${S}=${TARGET_DBGSRC_DIR} \
> -ffile-prefix-map=${B}=${TARGET_DBGSRC_DIR} \
> -ffile-prefix-map=${STAGING_DIR_HOST}= \
>
>
>
>
--
Yoann Congal
Smile ECS
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#226551):
https://lists.openembedded.org/g/openembedded-core/message/226551
Mute This Topic: https://lists.openembedded.org/mt/116371356/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-