From: Harish Sadineni Date: Fri, 17 Jul 2026 13:01:06 +0000 (-0700) Subject: packagegroups: Add packagegroup-core-buildessential-rust X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=500b45f8382a0f772c8ade37a46307fb671796b2;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git packagegroups: Add packagegroup-core-buildessential-rust Introduce packagegroup-core-buildessential-rust to provide the on-target dependencies required for building Rust-based kernel modules, including the Rust toolchain, bindgen, and libclang. Set PACKAGE_ARCH to TUNE_PKGARCH instead of the packagegroup default of "all", since libclang is dynamically renamed per build (e.g. libclang22.1), which is incompatible with an allarch packagegroup. On riscv64, also pull in clang, lld, and llvm-bin, since rust support in the kernel on riscv64 requires the LLVM/Clang toolchain rather than gcc. Signed-off-by: Harish Sadineni Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/packagegroups/packagegroup-core-buildessential-rust.bb b/meta/recipes-core/packagegroups/packagegroup-core-buildessential-rust.bb new file mode 100644 index 0000000000..c1993af9aa --- /dev/null +++ b/meta/recipes-core/packagegroups/packagegroup-core-buildessential-rust.bb @@ -0,0 +1,23 @@ +# +# SPDX-License-Identifier: MIT +# + +SUMMARY = "Essential build dependencies for building rust kernel modules in image" + +PACKAGE_ARCH = "${TUNE_PKGARCH}" + +inherit packagegroup + +RDEPENDS:${PN} = "\ + bindgen-cli \ + libclang \ + rust \ + rust-src-lib \ + rust-tools-rustfmt \ +" + +RDEPENDS:${PN}:append:riscv64 = "\ + clang \ + lld \ + llvm-bin \ +"