From: Harish Sadineni <[email protected]> Fixes buildpath issues when compiling rust-out-of-tree recipe.
Signed-off-by: Harish Sadineni <[email protected]> --- .../make-mod-scripts/make-mod-scripts_1.0.bb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb index 5fbc5c2154..656d6e8f5f 100644 --- a/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb +++ b/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb @@ -43,3 +43,10 @@ do_configure() { # More details in: https://lists.openembedded.org/g/openembedded-core/message/229336 # Disable ccache for kernel build if kernel rust support is enabled to workaround this CCACHE_DISABLE ?= "{@bb.utils.contains('KERNEL_FEATURES', 'rust', "1", "0", d)}" + +#Fixes buildpath issues when compiling rust-out-of-tree module +RUST_DEBUG_REMAP ?= "--remap-path-prefix=${TMPDIR}/work-shared=${TARGET_DBGSRC_DIR} \ + --remap-path-prefix=${TMPDIR}/work=${TARGET_DBGSRC_DIR} \ +" +KRUSTFLAGS = " ${RUST_DEBUG_REMAP}" +EXTRA_OEMAKE:append = ' KRUSTFLAGS="${KRUSTFLAGS}"' -- 2.49.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#233060): https://lists.openembedded.org/g/openembedded-core/message/233060 Mute This Topic: https://lists.openembedded.org/mt/118299633/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
