On 5/29/2026 3:48 AM, Richard Purdie wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know 
the content is safe.

On Thu, 2026-05-28 at 10:22 -0700, Sadineni, Harish via lists.openembedded.org 
wrote:
From: Harish Sadineni <[email protected]>

Add Rust-in-kernel depedency packages to the target image when Rust kernel
support is enabled (KERNEL_FEATURES includes 'rust'). These packages are
needed for self-hosted development of Rust kernel modules.

The following packages are conditionally added when Rust-in-kernel
support is enabled:
   - bindgen-cli
   - libclang
   - rust
   - rust-src-lib
   - rust-tools-rustfmt

Signed-off-by: Harish Sadineni <[email protected]>
---
  .../packagegroups/packagegroup-core-buildessential.bb            | 1 +
  1 file changed, 1 insertion(+)

diff --git 
a/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb 
b/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb
index 2cd67ad05f..cdfe07a584 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb
@@ -27,5 +27,6 @@ RDEPENDS:packagegroup-core-buildessential = "\
      libstdc++-dev \
      libtool \
      pkgconfig \
+    ${@bb.utils.contains('KERNEL_FEATURES', 'rust', 'bindgen-cli libclang rust 
rust-src-lib rust-tools-rustfmt', '', d)} \
      "
I think we should define a new packagegroup-core-buildessetial-rust to
put these in?
Hi Richard,

The reason we added rust in kernel dependencies to packagegroup-core-buildessential with KERNEL_FEATURES rust condition
rather than creating a separate packagegroup is :

packagegroup-core-buildessential is already used in core-image-kernel-dev, which is exactly the image used for kernel development. So we thought it might be right place to add rust in kernel development dependencies.

These aren't really specific to kernel development so KERNEL_FEATURES
doesn't seem quite the right way to enable this?
KERNEL_FEATURES rust condition is intentional, these packages (bindgen-cli, libclang, rust, rust-src-lib, rust-tools-rustfmt) are only needed when building kernel with Rust support enabled. These are specifically required for Rust kernel module development. So tying them to KERNEL_FEATURES containing 'rust' might be the correct condition.

Perhaps targets could just pull in packagegroup-core-buildessetial-rust
when wanted instead?
So, we think separate packagegroup is not required.

Cheers,

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

Reply via email to