[PATCH RFC next 18/18] buildman: set W flag to e to be consistent with CONFIG_WERROR
Quentin Schulz
foss+uboot at 0leil.net
Mon May 4 15:20:45 CEST 2026
From: Quentin Schulz <quentin.schulz at cherry.de>
Buildman currently only enables Werror for KBUILD_CFLAGS (via KCFLAGS)
and KBUILD_HOSTCFLAGS (via HOSTCFLAGS) but nothing else.
scripts/Makefile.extrawarn now supports --fatal-warnings for the linker
and assembler, which are enabled whenever CONFIG_WERROR is set.
Let's make buildman set this variable to enable even more checks.
KBUILD_CFLAGS and KBUILD_HOSTCFLAGS are kept in case buildman is run on
a git-range where W=e is not available, it's better than nothing.
Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
tools/buildman/builderthread.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py
index 371708c8a98..19db265c47a 100644
--- a/tools/buildman/builderthread.py
+++ b/tools/buildman/builderthread.py
@@ -233,6 +233,7 @@ class BuilderThread(threading.Thread):
if self.builder.warnings_as_errors:
args.append('KCFLAGS=-Werror')
args.append('HOSTCFLAGS=-Werror')
+ args.append('W=e')
if self.builder.allow_missing:
args.append('BINMAN_ALLOW_MISSING=1')
if self.builder.no_lto:
--
2.54.0
More information about the U-Boot
mailing list