Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755576Ab1F0XhA (ORCPT ); Mon, 27 Jun 2011 19:37:00 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:63900 "EHLO vms173013pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755414Ab1F0Xfe (ORCPT ); Mon, 27 Jun 2011 19:35:34 -0400 Date: Mon, 27 Jun 2011 19:33:54 -0400 (EDT) From: Peter Foley To: Peter Foley Cc: Arnaud Lacombe , Linux Kernel Mailing List , Linux Kbuild Mailing List , mmarek@suse.cz Subject: [PATCH V2] kbuild: silence generated makefile message In-reply-to: Message-id: References: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1180 Lines: 46 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 scripts/mkmakefile | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/scripts/mkmakefile b/scripts/mkmakefile index 5325423..ea26f37 100644 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile @@ -30,6 +30,10 @@ PATCHLEVEL = $4 lastword = \$(word \$(words \$(1)),\$(1)) makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST))) +ifneq (\$(V),1) +Q := @ +endif + MAKEARGS := -C $1 MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst %/,%,\$(makedir)) @@ -40,7 +44,7 @@ MAKEFLAGS += --no-print-directory all := \$(filter-out all Makefile,\$(MAKECMDGOALS)) all: - \$(MAKE) \$(MAKEARGS) \$(all) + \$(Q)\$(MAKE) \$(MAKEARGS) \$(all) Makefile:; -- 1.7.5.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/