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?

These aren't really specific to kernel development so KERNEL_FEATURES
doesn't seem quite the right way to enable this?

Perhaps targets could just pull in packagegroup-core-buildessetial-rust
when wanted instead?

Cheers,

Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#237736): 
https://lists.openembedded.org/g/openembedded-core/message/237736
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