Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2 1/4] packagegroups: Add packagegroup-core-buildessential-rust
@ 2026-07-17 13:01 Harish.Sadineni
  2026-07-17 13:01 ` [PATCH v2 2/4] packagegroups: add nativesdk-packagegroup-sdk-host-rust Harish.Sadineni
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Harish.Sadineni @ 2026-07-17 13:01 UTC (permalink / raw)
  To: openembedded-core; +Cc: Sundeep.Kokkonda

From: Harish Sadineni <Harish.Sadineni@windriver.com>

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 <Harish.Sadineni@windriver.com>
---
 .../packagegroup-core-buildessential-rust.bb  | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta/recipes-core/packagegroups/packagegroup-core-buildessential-rust.bb

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 \
+"
-- 
2.51.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-05 12:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17 13:01 [PATCH v2 1/4] packagegroups: Add packagegroup-core-buildessential-rust Harish.Sadineni
2026-07-17 13:01 ` [PATCH v2 2/4] packagegroups: add nativesdk-packagegroup-sdk-host-rust Harish.Sadineni
2026-07-24 14:13   ` Paul Barker
2026-08-05 12:49     ` Harish Sadineni
2026-07-17 13:01 ` [PATCH v2 3/4] packagegroups: add nativesdk-packagegroup-sdk-host-clang Harish.Sadineni
2026-07-17 13:01 ` [PATCH v2 4/4] populate_sdk_base: add kernel-devsrc via SDK_TOOLCHAIN_LANGS Harish.Sadineni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox