From: Harish Sadineni <[email protected]> Fixes for buildpaths errors after enabling rust for linux-kernel
-Introduced KRUSTFLAGS to pass `--remap-path-prefix` to rustc while building kernel with rust support. Co-authored-by: El Mehdi YOUNES <[email protected]> Signed-off-by: Harish Sadineni <[email protected]> --- meta/classes-recipe/kernel-yocto-rust.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/classes-recipe/kernel-yocto-rust.bbclass b/meta/classes-recipe/kernel-yocto-rust.bbclass index 7acc81764f..fd9ee91c79 100644 --- a/meta/classes-recipe/kernel-yocto-rust.bbclass +++ b/meta/classes-recipe/kernel-yocto-rust.bbclass @@ -4,6 +4,12 @@ # SPDX-License-Identifier: MIT # +RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=${TARGET_DBGSRC_DIR} \ + --remap-path-prefix=${TMPDIR}/work-shared=${TARGET_DBGSRC_DIR} \ +" +KRUSTFLAGS = " ${RUST_DEBUG_REMAP}" +EXTRA_OEMAKE:append = " KRUSTFLAGS='${KRUSTFLAGS}'" + RUST_KERNEL_TASK_DEPENDS ?= "rust-native:do_populate_sysroot clang-native:do_populate_sysroot bindgen-cli-native:do_populate_sysroot" do_kernel_configme[depends] += "${RUST_KERNEL_TASK_DEPENDS}" -- 2.49.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#231061): https://lists.openembedded.org/g/openembedded-core/message/231061 Mute This Topic: https://lists.openembedded.org/mt/117779188/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
