LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] kbuild: silence CHK/UPD messages according to $(quiet)
@ 2008-02-08  5:05 Mike Frysinger
  2008-02-08 19:49 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2008-02-08  5:05 UTC (permalink / raw)
  To: sam, akpm; +Cc: linux-kernel

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 init/Makefile          |    4 +++-
 scripts/Kbuild.include |    8 ++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/init/Makefile b/init/Makefile
index 633392f..c5f157c 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -27,7 +27,9 @@ $(obj)/version.o: include/linux/compile.h
 # mkcompile_h will make sure to only update the
 # actual file if its content has changed.
 
+ quiet_chk_compile.h = echo '  CHK     $@'
+silent_chk_compile.h = :
 include/linux/compile.h: FORCE
-	@echo '  CHK     $@'
+	@$($(quiet)chk_compile.h)
 	$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
 	"$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(KBUILD_CFLAGS)"
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index b96ea8d..da3559e 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -39,15 +39,19 @@ escsq = $(subst $(squote),'\$(squote)',$1)
 # - If they are equal no change, and no timestamp update
 # - stdin is piped in from the first prerequisite ($<) so one has
 #   to specify a valid file as first prerequisite (often the kbuild file)
+ quiet_chk_filechk = echo '  CHK     $@'
+silent_chk_filechk = :
+ quiet_upd_filechk = echo '  UPD     $@'
+silent_upd_filechk = :
 define filechk
 	$(Q)set -e;				\
-	echo '  CHK     $@';			\
+	$($(quiet)chk_filechk);			\
 	mkdir -p $(dir $@);			\
 	$(filechk_$(1)) < $< > $@.tmp;		\
 	if [ -r $@ ] && cmp -s $@ $@.tmp; then	\
 		rm -f $@.tmp;			\
 	else					\
-		echo '  UPD     $@';		\
+		$($(quiet)upd_filechk);		\
 		mv -f $@.tmp $@;		\
 	fi
 endef
-- 
1.5.4


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

* Re: [PATCH] kbuild: silence CHK/UPD messages according to $(quiet)
  2008-02-08  5:05 [PATCH] kbuild: silence CHK/UPD messages according to $(quiet) Mike Frysinger
@ 2008-02-08 19:49 ` Sam Ravnborg
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2008-02-08 19:49 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: akpm, linux-kernel

On Fri, Feb 08, 2008 at 12:05:52AM -0500, Mike Frysinger wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Thanks Mike - applied.

	Sam

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

end of thread, other threads:[~2008-02-08 19:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-08  5:05 [PATCH] kbuild: silence CHK/UPD messages according to $(quiet) Mike Frysinger
2008-02-08 19:49 ` Sam Ravnborg

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).