mbox series

[RFC,v2,0/5] Kernel Rust out-of-tree module support

Message ID 20251204113058.948115-1-yoann.congal@smile.fr
Headers show
Series Kernel Rust out-of-tree module support | expand

Message

Yoann Congal Dec. 4, 2025, 11:30 a.m. UTC
As followup of Harish Sadineni's RFC v4 series "Enable rust support for
linux kernel" [0] (and to increase its test coverage), this series add
support for out-of-tree kernel module written in Rust as well as
associated test.

[0]: https://lists.openembedded.org/g/openembedded-core/message/226623

v1->v2: Fix tests:
* maintainers.inc is not supposed to cover meta-skeleton => removed the
  patch adding myself as the new recipe maintainer
* enabled meta-skeleton in the test

Yoann Congal (5):
  kernel.bbclass: Copy include/config/auto.conf in
    STAGING_KERNEL_BUILDDIR
  kernel.bbclass: Export artifacts needed for out-of-tree Rust
    compilation
  module.bbclass: Prepare out-of-tree rust module compilation
  meta-skeleton: Add rust-out-of-tree-module recipe
  runtime_test: Add rust-out-of-tree selftest

 .../rust-out-of-tree-module_git.bb            | 18 ++++++++++++++++++
 meta/classes-recipe/kernel.bbclass            | 19 +++++++++++++++++++
 meta/classes-recipe/module.bbclass            |  8 ++++++++
 meta/lib/oeqa/selftest/cases/runtime_test.py  | 12 +++++++++++-
 4 files changed, 56 insertions(+), 1 deletion(-)
 create mode 100644 meta-skeleton/recipes-kernel/rust-out-of-tree-module/rust-out-of-tree-module_git.bb

Comments

Yoann Congal Dec. 6, 2025, 1:27 p.m. UTC | #1
Le jeu. 4 déc. 2025 à 12:31, Yoann Congal <yoann.congal@smile.fr> a écrit :
>
> As followup of Harish Sadineni's RFC v4 series "Enable rust support for
> linux kernel" [0] (and to increase its test coverage), this series add
> support for out-of-tree kernel module written in Rust as well as
> associated test.
>
> [0]: https://lists.openembedded.org/g/openembedded-core/message/226623
>
> v1->v2: Fix tests:
> * maintainers.inc is not supposed to cover meta-skeleton => removed the
>   patch adding myself as the new recipe maintainer
> * enabled meta-skeleton in the test

Thanks to Mathieu, this series has been successfully tested on the autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/2800

>
> Yoann Congal (5):
>   kernel.bbclass: Copy include/config/auto.conf in
>     STAGING_KERNEL_BUILDDIR
>   kernel.bbclass: Export artifacts needed for out-of-tree Rust
>     compilation
>   module.bbclass: Prepare out-of-tree rust module compilation
>   meta-skeleton: Add rust-out-of-tree-module recipe
>   runtime_test: Add rust-out-of-tree selftest
>
>  .../rust-out-of-tree-module_git.bb            | 18 ++++++++++++++++++
>  meta/classes-recipe/kernel.bbclass            | 19 +++++++++++++++++++
>  meta/classes-recipe/module.bbclass            |  8 ++++++++
>  meta/lib/oeqa/selftest/cases/runtime_test.py  | 12 +++++++++++-
>  4 files changed, 56 insertions(+), 1 deletion(-)
>  create mode 100644 meta-skeleton/recipes-kernel/rust-out-of-tree-module/rust-out-of-tree-module_git.bb
>