From patchwork Mon Jul 4 22:55:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Foley X-Patchwork-Id: 943072 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p64MvTCK026579 for ; Mon, 4 Jul 2011 22:57:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752504Ab1GDW5V (ORCPT ); Mon, 4 Jul 2011 18:57:21 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:36275 "EHLO vms173017pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752501Ab1GDW5U (ORCPT ); Mon, 4 Jul 2011 18:57:20 -0400 Received: from [192.168.1.14] ([unknown] [173.66.22.130]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LNT007P1ZR4WSD0@vms173017.mailsrvcs.net>; Mon, 04 Jul 2011 17:57:09 -0500 (CDT) Date: Mon, 04 Jul 2011 18:55:23 -0400 (EDT) From: Peter Foley To: Michal Marek Cc: Peter Foley , Arnaud Lacombe , Linux Kernel Mailing List , Linux Kbuild Mailing List Subject: Re: [PATCH V3] kbuild: silence generated makefile message In-reply-to: <20110701134733.GB25895@sepie.suse.cz> Message-id: References: <20110701134733.GB25895@sepie.suse.cz> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 04 Jul 2011 22:57:50 +0000 (UTC) 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 --- 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:;