Re: [PATCH 6.14 000/731] 6.14.2-rc1 review

From: Miguel Ojeda
Date: Tue Apr 08 2025 - 12:22:07 EST


On Tue, Apr 8, 2025 at 4:53 PM Christian Heusel <christian@xxxxxxxxx> wrote:
>
> Thanks for pointing this out, I was also missing the relevant
> dependencies in my build system for the rust parts in the kernel to
> actually be built .. IMO it could also hard-error when you specify
> "CONFIG_HAVE_RUST=y" and the tools are missing 🤔

I assume you mean `CONFIG_RUST=y`, i.e. to remove
`CONFIG_RUST_IS_AVAILABLE` and simply request to build with Rust.

And, yeah, it would be simpler and it would prevent the issue of
Kconfig deciding to automatically disable it due to unmet
dependencies. We were asked to do it this way back then, but perhaps
the sentiment has changed now.

What you can do meanwhile is e.g. explicitly check that `CONFIG_RUST`
is `y` after the kernel configuration is saved.

Cheers,
Miguel