Skip to content

Commit

Permalink
kbuild: silence generated makefile message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pefoley2 authored and michal42 committed Jul 20, 2011
1 parent e78e8f2 commit 0ff3577
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/mkmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -40,7 +47,7 @@ MAKEFLAGS += --no-print-directory
all := \$(filter-out all Makefile,\$(MAKECMDGOALS))
all:
\$(MAKE) \$(MAKEARGS) \$(all)
\$(Q)\$(MAKE) \$(MAKEARGS) \$(all)
Makefile:;
Expand Down

0 comments on commit 0ff3577

Please sign in to comment.