]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: silence CHK/UPD messages according to $(quiet)
authorMike Frysinger <vapier@gentoo.org>
Fri, 8 Feb 2008 05:05:52 +0000 (00:05 -0500)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 9 Feb 2008 09:43:58 +0000 (10:43 +0100)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
init/Makefile
scripts/Kbuild.include

index 633392f5cdeeb92e142db1f312e1e32d2a3a9176..c5f157ce293e7625c428b8e853732d1977add6bc 100644 (file)
@@ -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)"
index b96ea8d6a5ed0eb375a4db068cdb2c564407cd42..da3559ea92e03759d6a2a6d32c1307a9e1dc5c3b 100644 (file)
@@ -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