History

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.

Masahiro Yamada committed 3 years ago

Commit 83d98d71 parent 6ae4b982 files · +4 −7Browse files

Unified · Split

2 files
  1. Documentation/kbuild/makefiles.rst +2 −2
  2. Makefile +2 −5
Documentation/kbuild/makefiles.rst+2−2
@@ -523,7 +523,7 @@ more details, with real examples. · 522 unmodified lines
523 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@523 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
524 @$(kecho) ' Kernel: $(boot)/$@ is ready'524 @$(kecho) ' Kernel: $(boot)/$@ is ready'
525 525
526 When kbuild is executing with KBUILD_VERBOSE=0, then only a shorthand526 When kbuild is executing with KBUILD_VERBOSE unset, then only a shorthand
527 of a command is normally displayed.527 of a command is normally displayed.
528 To enable this behaviour for custom commands kbuild requires528 To enable this behaviour for custom commands kbuild requires
529 two variables to be set::529 two variables to be set::
@@ -544,7 +544,7 @@ more details, with real examples. · 14 unmodified lines
544 544
545 GEN lib/crc32table.h545 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
5493.12 Command change detection5493.12 Command change detection
550-----------------------------550-----------------------------
Makefile+2−5
@@ -78,9 +78,6 @@ unexport GREP_OPTIONS · 77 unmodified lines
78ifeq ("$(origin V)", "command line")78ifeq ("$(origin V)", "command line")
79 KBUILD_VERBOSE = $(V)79 KBUILD_VERBOSE = $(V)
80endif80endif
81ifndef KBUILD_VERBOSE
82 KBUILD_VERBOSE = 0
83endif
84 81
85quiet = quiet_82quiet = quiet_
86Q = @83Q = @
@@ -102,7 +99,7 @@ endif · 15 unmodified lines
102 99
103ifneq ($(findstring s,$(short-opts)),)100ifneq ($(findstring s,$(short-opts)),)
104quiet=silent_101quiet=silent_
105KBUILD_VERBOSE = 0102override KBUILD_VERBOSE :=
106endif103endif
107 104
108export quiet Q KBUILD_VERBOSE105export quiet Q KBUILD_VERBOSE
@@ -1774,7 +1771,7 @@ help: · 1665 unmodified lines
1774 printf " %-16s - Show all of the above\\n" help-boards; \1771 printf " %-16s - Show all of the above\\n" help-boards; \
1775 echo '')1772 echo '')
1776 1773
1777 @echo ' make V=n [targets] 0: quiet build (default), 1: verbose build'1774 @echo ' make V=n [targets] 1: verbose build'
1778 @echo ' 2: give reason for rebuild of target'1775 @echo ' 2: give reason for rebuild of target'
1779 @echo ' V=1 and V=2 can be combined with V=12'1776 @echo ' V=1 and V=2 can be combined with V=12'
1780 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'1777 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t