kbuild: silence generated makefile message
authorPeter Foley <pefoley2@verizon.net>
Mon, 4 Jul 2011 22:55:23 +0000 (18:55 -0400)
committerMichal Marek <mmarek@suse.cz>
Wed, 20 Jul 2011 15:08:08 +0000 (17:08 +0200)
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>
scripts/mkmakefile

index 5325423..0cc0442 100644 (file)
@@ -30,6 +30,13 @@ PATCHLEVEL = $4
 lastword = \$(word \$(words \$(1)),\$(1))
 makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST)))
 
+ifeq ("\$(origin V)", "command line")
+VERBOSE := \$(V)
+endif
+ifneq (\$(VERBOSE),1)
+Q := @
+endif
+
 MAKEARGS := -C $1
 MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$(makedir))
 
@@ -40,7 +47,7 @@ MAKEFLAGS += --no-print-directory
 all    := \$(filter-out all Makefile,\$(MAKECMDGOALS))
 
 all:
-       \$(MAKE) \$(MAKEARGS) \$(all)
+       \$(Q)\$(MAKE) \$(MAKEARGS) \$(all)
 
 Makefile:;