diff options
author | Peter Foley <pefoley2@verizon.net> | 2011-07-04 18:55:23 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-07-20 11:08:08 -0400 |
commit | 0ff35771fc7a96a2244f38573b6d56199ec75056 (patch) | |
tree | b25be0330d55c7882578091e21f762ecf32a0c9c /scripts/mkmakefile | |
parent | e78e8f2d8318851d0911039999c903a6082bef2e (diff) |
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>
Diffstat (limited to 'scripts/mkmakefile')
-rw-r--r-- | scripts/mkmakefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile index 5325423ceab4..0cc044260744 100644 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile | |||
@@ -30,6 +30,13 @@ PATCHLEVEL = $4 | |||
30 | lastword = \$(word \$(words \$(1)),\$(1)) | 30 | lastword = \$(word \$(words \$(1)),\$(1)) |
31 | makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST))) | 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 | MAKEARGS := -C $1 | 40 | MAKEARGS := -C $1 |
34 | MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$(makedir)) | 41 | MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$(makedir)) |
35 | 42 | ||
@@ -40,7 +47,7 @@ MAKEFLAGS += --no-print-directory | |||
40 | all := \$(filter-out all Makefile,\$(MAKECMDGOALS)) | 47 | all := \$(filter-out all Makefile,\$(MAKECMDGOALS)) |
41 | 48 | ||
42 | all: | 49 | all: |
43 | \$(MAKE) \$(MAKEARGS) \$(all) | 50 | \$(Q)\$(MAKE) \$(MAKEARGS) \$(all) |
44 | 51 | ||
45 | Makefile:; | 52 | Makefile:; |
46 | 53 | ||