Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: drop V=0 support

The top Makefile sets KBUILD_VERBOSE to 0 by default, it looks weird
now because V=1 and V=2 can be OR'ed as V=12. The default should be
empty.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>

+4 -7
+2 -2
Documentation/kbuild/makefiles.rst
··· 523 523 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ 524 524 @$(kecho) ' Kernel: $(boot)/$@ is ready' 525 525 526 - When kbuild is executing with KBUILD_VERBOSE=0, then only a shorthand 526 + When kbuild is executing with KBUILD_VERBOSE unset, then only a shorthand 527 527 of a command is normally displayed. 528 528 To enable this behaviour for custom commands kbuild requires 529 529 two variables to be set:: ··· 544 544 545 545 GEN lib/crc32table.h 546 546 547 - will be displayed with "make KBUILD_VERBOSE=0". 547 + will be displayed with "make KBUILD_VERBOSE=". 548 548 549 549 3.12 Command change detection 550 550 -----------------------------
+2 -5
Makefile
··· 78 78 ifeq ("$(origin V)", "command line") 79 79 KBUILD_VERBOSE = $(V) 80 80 endif 81 - ifndef KBUILD_VERBOSE 82 - KBUILD_VERBOSE = 0 83 - endif 84 81 85 82 quiet = quiet_ 86 83 Q = @ ··· 99 102 100 103 ifneq ($(findstring s,$(short-opts)),) 101 104 quiet=silent_ 102 - KBUILD_VERBOSE = 0 105 + override KBUILD_VERBOSE := 103 106 endif 104 107 105 108 export quiet Q KBUILD_VERBOSE ··· 1771 1774 printf " %-16s - Show all of the above\\n" help-boards; \ 1772 1775 echo '') 1773 1776 1774 - @echo ' make V=n [targets] 0: quiet build (default), 1: verbose build' 1777 + @echo ' make V=n [targets] 1: verbose build' 1775 1778 @echo ' 2: give reason for rebuild of target' 1776 1779 @echo ' V=1 and V=2 can be combined with V=12' 1777 1780 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'