Integrating the following commit(s) to linux-yocto/.:
1/3 [
Author: Harish Sadineni
Email: Harish.Sadineni@windriver.com
Subject: features/kernel-rust: Add feature to enable Rust kernel support
Date: Thu, 11 Dec 2025 04:42:31 -0800
Add a new kernel feature that enables Rust support in the kernel. This
introduces kernel-rust.cfg to set Rust-related Kconfig options and
kernel-rust.scc to define the feature metadata.
The feature enables:
- CONFIG_RUST
- CONFIG_RUST_OVERFLOW_CHECKS
- CONFIG_RUST_BUILD_ASSERT_ALLOW
Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
Extend the existing kernel-sample feature by adding support for the Rust
sample modules provided by the kernel. This adds a new kernel-rust-sample.cfg
and corresponding .scc entry alongside the existing kernel-samples.cfg.
The new configuration enables:
- CONFIG_SAMPLES_RUST
- CONFIG_SAMPLE_RUST_MINIMAL
- CONFIG_SAMPLE_RUST_PRINT
- CONFIG_SAMPLE_RUST_HOSTPROGS
Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
Add a new debug feature to enable Rust-related kernel debugging support.
This introduces debug-kernel-rust.scc along with its associated Kconfig
file debug-kernel-rust.cfg.
Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>