Re: [PATCH RFC] Fail the build on RUST=y and RUST_IS_AVAILABLE=n
From: Gary Guo
Date: Sun May 10 2026 - 11:53:35 EST
On Sun May 10, 2026 at 2:45 PM BST, Miguel Ojeda wrote:
> On Sun, May 10, 2026 at 3:36 PM Sasha Finkelstein <k@xxxxxxxxxxxxxx> wrote:
>>
>> The current approach of silently disabling all rust drivers if the
>> toolchain is missing results in users that try to compile their own
>> kernels getting a "successful" build and then being confused about where
>> did their drivers go. In comparison, missing openssl results in a build
>> failure, not a disappearance of everything that depends on it.
>
> Yeah, it is quite confusing (though it was done on purpose).
>
> Personally, I think it may be time to finally change it.
I believe the original reason for doing so is that people can use allyesconfig
and it'll disable all Rust modules if they don't have a working Rust compiler.
Do you intend to change it so that allyesconfig needs Rust, or is there a
different mechanism to make allyesconfig ignore Rust modules?
Best,
Gary