On Tue, Apr 8, 2025 at 4:53 PM Christian Heusel christian@heusel.eu 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