]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
make-mod-scripts: fix for buildpath issues with rust-out-of-tree compilation
authorHarish Sadineni <Harish.Sadineni@windriver.com>
Mon, 9 Feb 2026 15:46:59 +0000 (07:46 -0800)
committerDeepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Mon, 2 Mar 2026 08:48:59 +0000 (00:48 -0800)
Fixes buildpath issues when compiling rust-out-of-tree recipe.

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb

index 622638200109e5ac116be5b5078cf04ded8f742f..2de7d4976ba1f0675aa4995db50d69677ad8bffb 100644 (file)
@@ -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_RUST_SUPPORT', 'True', '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}"'