LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] kbuild: introduce KECHO convenience echo
@ 2008-11-06  8:31 Mike Frysinger
  2008-11-06  8:31 ` [PATCH] kbuild: use " Mike Frysinger
  2008-11-06 20:50 ` [PATCH] kbuild: introduce " Sam Ravnborg
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Frysinger @ 2008-11-06  8:31 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel, linux-kbuild

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 <vapier@gentoo.org>
---
 scripts/Kbuild.include |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index 982dcae..9dc96cf 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -25,6 +25,13 @@ basetarget = $(basename $(notdir $@))
 escsq = $(subst $(squote),'\$(squote)',$1)
 
 ###
+# Easy method for doing a status message
+       kecho = :
+ quiet_kecho = echo
+silent_kecho = :
+KECHO = $($(quiet)kecho)
+
+###
 # filechk is used to check if the content of a generated file is updated.
 # Sample usage:
 # define filechk_sample
-- 
1.6.0.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-21 22:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-06  8:31 [PATCH] kbuild: introduce KECHO convenience echo Mike Frysinger
2008-11-06  8:31 ` [PATCH] kbuild: use " Mike Frysinger
2008-11-21 22:01   ` Sam Ravnborg
2008-11-06 20:50 ` [PATCH] kbuild: introduce " Sam Ravnborg
2008-11-06 21:17   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).