Message ID | alpine.LNX.2.00.1107041852390.20463@linux (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, 4 Jul 2011, Peter Foley wrote: > 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> > --- > V2: Show message when V=1 > V3: Check if V=1 comes from the commandline > > scripts/mkmakefile | 9 ++++++++- > 1 files changed, 8 insertions(+), 1 deletions(-) > > diff --git a/scripts/mkmakefile b/scripts/mkmakefile > index 5325423..0cc0442 100644 > --- a/scripts/mkmakefile > +++ b/scripts/mkmakefile > @@ -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:; > > -- > 1.7.6 > > > Ping? -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Mon, Jul 04, 2011 at 06:55:23PM -0400, Peter Foley wrote: > 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> > --- > V2: Show message when V=1 > V3: Check if V=1 comes from the commandline Applied to kbuild-2.6.git#kbuild, thanks. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/scripts/mkmakefile b/scripts/mkmakefile index 5325423..0cc0442 100644 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile @@ -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:;
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> --- V2: Show message when V=1 V3: Check if V=1 comes from the commandline scripts/mkmakefile | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)