Hi Harish,

> On 16 Jul 2026, at 13:15, Sadineni, Harish via lists.openembedded.org 
> <[email protected]> wrote:
> 
> +# Rust support in the kernel on riscv64 only works with the LLVM/Clang
> +# toolchain, not gcc:
> +# https://docs.kernel.org/rust/arch-support.html
> +do_check_riscv64_toolchain() {
> +    if [ "${TARGET_ARCH}" = "riscv64" ] && [ "${TOOLCHAIN}" != "clang" ]; 
> then
> +        bbfatal "Rust support in the kernel on riscv64 requires the clang" \
> +                "toolchain, but TOOLCHAIN is set to '${TOOLCHAIN}'. Set" \
> +                "TOOLCHAIN:riscv64 = \"clang\" in kernel recipe (or) set" \
> +                "TOOLCHAIN:pn-linux-yocto = \"clang\" in local.conf to build 
> a" \
> +                "riscv64 kernel with rust enabled. See" \
> +                "https://docs.kernel.org/rust/arch-support.html for details."
> +    fi
> +}
> +
> +addtask do_check_riscv64_toolchain before do_fetch

Adding a whole new task for this seems overkill.  Can it be refactored into 
anon python that raises SkipRecipe() if the condition fails?

Cheers,
Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#241952): 
https://lists.openembedded.org/g/openembedded-core/message/241952
Mute This Topic: https://lists.openembedded.org/mt/120297398/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to