[PATCH RFC next 15/18] kbuild: enable -Werror for hostprogs

Quentin Schulz quentin.schulz at cherry.de
Tue May 5 13:09:57 CEST 2026


Hi Ilias,

On 5/5/26 7:51 AM, Ilias Apalodimas wrote:
> On Mon, 4 May 2026 at 16:20, Quentin Schulz <foss+uboot at 0leil.net> wrote:
>>
>> From: Quentin Schulz <quentin.schulz at cherry.de>
>>
>> [ Upstream commit 27758d8c2583d10472b745a43ff86fef96c11ef7 ]
>>
>> Original commit log:
>>
>>    The hostprog compilers and linkers do not share the regular compiler flags,
>>    so they are not affected by CONFIG_WERROR or W=e. As hostprogs are used
>>    during the bootstrap of the build, they can't depend on kconfig options.
>>
>>    Enable -Werror unconditionally.
>>
>> Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
>> ---
> 
> Doesn't the next patch reverts this? I think you can squash them in a
> single patch
> 

No, the next patch will guard the code but before this patch it was 
simply never applied so it's not a no-op.

I decided to backport them separately even if this patch here isn't 
great and modified right after, so that we preserve a similar history to 
the Linux kernel's.

I can squash them if really desired, but I like not messing too much 
when backporting patches.

Cheers,
Quentin


More information about the U-Boot mailing list