From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from acsinet12.oracle.com ([141.146.126.234]:24888 "EHLO acsinet12.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752130AbYLVStr (ORCPT ); Mon, 22 Dec 2008 13:49:47 -0500 Date: Mon, 22 Dec 2008 10:49:12 -0800 From: Randy Dunlap Subject: Re: [PATCH 04/26] kbuild: introduce $(kecho) convenience echo Message-Id: <20081222104912.fca1d371.randy.dunlap@oracle.com> In-Reply-To: <1229783497-19550-4-git-send-email-sam@ravnborg.org> References: <20081220142518.GA19390@uranus.ravnborg.org> <1229783497-19550-4-git-send-email-sam@ravnborg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Sam Ravnborg Cc: kbuild , lkml , Mike Frysinger On Sat, 20 Dec 2008 15:31:15 +0100 Sam Ravnborg wrote: > From: Mike Frysinger > > There is a bunch of places in the build system where we do 'echo' to show > some nice status lines. This means we still get output when running in > silent mode. So declare a new KECHO variable that only does 'echo' when we > are in a suitable verbose build mode. > > Signed-off-by: Mike Frysinger > [sam: added Documentation] > Signed-off-by: Sam Ravnborg Hi, Just nits/clarifications (below). > --- > Documentation/kbuild/makefiles.txt | 14 ++++++++++++++ > scripts/Kbuild.include | 7 +++++++ > 2 files changed, 21 insertions(+), 0 deletions(-) > > diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt > index 7a77533..51104f9 100644 > --- a/Documentation/kbuild/makefiles.txt > +++ b/Documentation/kbuild/makefiles.txt > @@ -383,6 +383,20 @@ more details, with real examples. > to prerequisites are referenced with $(src) (because they are not > generated files). > > + $(kecho) > + echoing information to user in a rule is often a good practice to users > + but when execution "make -s" one does not expect to see any output executing > + except for warnings/errors. > + To support this kbuild define $(kecho) which will echo out the defines > + text following $(kecho) to stdout except if "make -s" is used. s/except if/unless/ > + > + Example: > + #arch/blackfin/boot/Makefile > + $(obj)/vmImage: $(obj)/vmlinux.gz > + $(call if_changed,uimage) > + @$(kecho) 'Kernel: $@ is ready' > + > + > --- 3.11 $(CC) support functions > > The kernel may be built with several different versions of --- ~Randy