From: Harish Sadineni <[email protected]> Allow enabling Rust support in the kernel by simply adding "rust" to KERNEL_FEATURES in local.conf or a global configuration file. This maps the feature name to the appropriate kernel configuration fragment located at features/kernel-rust/kernel-rust.scc
Signed-off-by: Harish Sadineni <[email protected]> --- meta/classes-recipe/kernel-yocto.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass index e53bf15194..a77f2214c2 100644 --- a/meta/classes-recipe/kernel-yocto.bbclass +++ b/meta/classes-recipe/kernel-yocto.bbclass @@ -269,6 +269,9 @@ do_kernel_metadata() { KERNEL_FEATURES_FINAL="" if [ -n "${KERNEL_FEATURES}" ]; then for feature in ${KERNEL_FEATURES}; do + if [ "$feature" = "rust" ]; then + feature="features/kernel-rust/kernel-rust.scc" + fi feature_as_specified="$feature" feature="$(echo $feature_as_specified | cut -d: -f1)" feature_specifier="$(echo $feature_as_specified | cut -d: -f2)" -- 2.49.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#233047): https://lists.openembedded.org/g/openembedded-core/message/233047 Mute This Topic: https://lists.openembedded.org/mt/118299596/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
