[PATCH RFC next 13/18] kbuild: rust: move `-Dwarnings` handling to `Makefile.extrawarn`
Quentin Schulz
foss+uboot at 0leil.net
Mon May 4 15:20:40 CEST 2026
From: Quentin Schulz <quentin.schulz at cherry.de>
[ 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(+)
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index b5b1a762cdc..2af90af594e 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -104,5 +104,6 @@ endif
ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WERROR),)
KBUILD_CPPFLAGS += -Werror
+KBUILD_RUSTFLAGS += -Dwarnings
endif
--
2.54.0
More information about the U-Boot
mailing list