Commit 0ff35771fc7a96a2244f38573b6d56199ec75056
Committed by
Michal Marek
1 parent
e78e8f2d83
Exists in
master
and in
20 other branches
kbuild: silence generated makefile message
This patch silences the "make -C /usr/src/git O=/usr/src/git/build/." message shown when using the generated makefile in KBUILD_OUTDIR. Signed-off-by: Peter Foley <pefoley2@verizon.net> Signed-off-by: Michal Marek <mmarek@suse.cz>
Showing 1 changed file with 8 additions and 1 deletions Side-by-side Diff
scripts/mkmakefile
... | ... | @@ -30,6 +30,13 @@ |
30 | 30 | lastword = \$(word \$(words \$(1)),\$(1)) |
31 | 31 | makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST))) |
32 | 32 | |
33 | +ifeq ("\$(origin V)", "command line") | |
34 | +VERBOSE := \$(V) | |
35 | +endif | |
36 | +ifneq (\$(VERBOSE),1) | |
37 | +Q := @ | |
38 | +endif | |
39 | + | |
33 | 40 | MAKEARGS := -C $1 |
34 | 41 | MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$(makedir)) |
35 | 42 | |
... | ... | @@ -40,7 +47,7 @@ |
40 | 47 | all := \$(filter-out all Makefile,\$(MAKECMDGOALS)) |
41 | 48 | |
42 | 49 | all: |
43 | - \$(MAKE) \$(MAKEARGS) \$(all) | |
50 | + \$(Q)\$(MAKE) \$(MAKEARGS) \$(all) | |
44 | 51 | |
45 | 52 | Makefile:; |
46 | 53 |