Skip to contentSkip to conversation

kbuild: make -s option take precedence over V=

PATCH New Masahiro Yamada 1 participant 1 message Feb 27, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: make -s option take precedence over V=

'make -s' should be really silent. However, 'make -s V=1' prints noisy log messages from some shell scripts.

Of course, the combination of -s and V=1 is odd, but the build system needs to do the right thing even if a user gives strange input.

If -s is given, KBUILD_VERBOSE should be forced to 0.

---

 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -0
index 6ecd0d22e608..0a655469cafb 100644
@@ -96,6 +96,7 @@ endif
 
 ifneq ($(findstring s,$(filter-out --%,$(MAKEFLAGS))),)
   quiet=silent_
+  KBUILD_VERBOSE = 0
 endif
 
 export quiet Q KBUILD_VERBOSE
Signature · 1 line
2.27.0