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
523523 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
524524 @$(kecho) ' Kernel: $(boot)/$@ is ready'
525525
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
527527 of a command is normally displayed.
528528 To enable this behaviour for custom commands kbuild requires
529529 two variables to be set::
@@ -544,7 +544,7 @@ more details, with real examples. · 14 unmodified lines
544544
545545 GEN lib/crc32table.h
546546
547− will be displayed with "make KBUILD_VERBOSE=0".
547+ will be displayed with "make KBUILD_VERBOSE=".
548548
549549 3.12 Command change detection
550550 -----------------------------
Makefile+2−5
@@ -78,9 +78,6 @@ unexport GREP_OPTIONS · 77 unmodified lines
7878 ifeq ("$(origin V)", "command line")
7979 KBUILD_VERBOSE = $(V)
8080 endif
81−ifndef KBUILD_VERBOSE
82− KBUILD_VERBOSE = 0
83−endif
8481
8582 quiet = quiet_
8683 Q = @
@@ -102,7 +99,7 @@ endif · 15 unmodified lines
10299
103100 ifneq ($(findstring s,$(short-opts)),)
104101 quiet=silent_
105−KBUILD_VERBOSE = 0
102+override KBUILD_VERBOSE :=
106103 endif
107104
108105 export quiet Q KBUILD_VERBOSE
@@ -1774,7 +1771,7 @@ help: · 1665 unmodified lines
17741771 printf " %-16s - Show all of the above\\n" help-boards; \
17751772 echo '')
17761773
1777− @echo ' make V=n [targets] 0: quiet build (default), 1: verbose build'
1774+ @echo ' make V=n [targets] 1: verbose build'
17781775 @echo ' 2: give reason for rebuild of target'
17791776 @echo ' V=1 and V=2 can be combined with V=12'
17801777 @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