[PATCH RFC next 13/18] kbuild: rust: move `-Dwarnings` handling to `Makefile.extrawarn`

Simon Glass sjg at chromium.org
Mon May 4 22:30:45 CEST 2026


On 2026-05-04T13:20:27, Quentin Schulz <foss+uboot at 0leil.net> wrote:
> kbuild: rust: move -Dwarnings handling to Makefile.extrawarn
>
> [ Upstream commit 592b571f20c5b905c47a1370210456f9f90ce04f ]
>
> Original commit log:
>
>   Following commit e88ca24319e4 ("kbuild: consolidate warning flags
>   in scripts/Makefile.extrawarn"), move -Dwarnings handling into
>   Makefile.extrawarn like C's -Werror.
>
>   No functional change intended.
>
> [git conflict trying to remove KBUILD_RUSTFLAGS from Makefile, which we
>  don't have in U-Boot]
> [U-Boot doesn't build anything Rust so this is useless except for the
>  fact it allows to backport patches from Linux kernel easier]
> Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
>
> scripts/Makefile.extrawarn | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list