[PATCH RFC next 10/18] kbuild: align W=e with CONFIG_WERROR
Quentin Schulz
foss+uboot at 0leil.net
Mon May 4 15:20:37 CEST 2026
From: Quentin Schulz <quentin.schulz at cherry.de>
[ Upstream commit f852ce052a8b78d6fade371bd1fad583541e78fa ]
Original commit log:
CONFIG_WERROR sets KBUILD_CPPFLAGS while W=e would only set KBUILD_CFLAGS.
As a preparation to unify the two mechanism, align their effects.
While at it, add some alignment whitespace to prepare for later additions
to the list of changed variables.
Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
scripts/Makefile.extrawarn | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index b1881d83e06..65954320e0f 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -103,6 +103,6 @@ endif
#
ifneq ($(findstring e, $(KBUILD_EXTRA_WARN)),)
-KBUILD_CFLAGS += -Werror
+KBUILD_CPPFLAGS += -Werror
endif
--
2.54.0
More information about the U-Boot
mailing list