aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-02-08 00:05:52 -0500
committerSam Ravnborg <sam@ravnborg.org>2008-02-09 04:43:58 -0500
commitd75f4c683f817ef61c9ae634886e7ebc3133c002 (patch)
tree568d266eddbadcd91c7e5358ba7b91f8561da631 /scripts
parenta3eadd7cb00f39f6fd4bbaf414dfde547b8c0899 (diff)
kbuild: silence CHK/UPD messages according to $(quiet)
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Kbuild.include8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index b96ea8d6a5ed..da3559ea92e0 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -39,15 +39,19 @@ escsq = $(subst $(squote),'\$(squote)',$1)
39# - If they are equal no change, and no timestamp update 39# - If they are equal no change, and no timestamp update
40# - stdin is piped in from the first prerequisite ($<) so one has 40# - stdin is piped in from the first prerequisite ($<) so one has
41# to specify a valid file as first prerequisite (often the kbuild file) 41# to specify a valid file as first prerequisite (often the kbuild file)
42 quiet_chk_filechk = echo ' CHK $@'
43silent_chk_filechk = :
44 quiet_upd_filechk = echo ' UPD $@'
45silent_upd_filechk = :
42define filechk 46define filechk
43 $(Q)set -e; \ 47 $(Q)set -e; \
44 echo ' CHK $@'; \ 48 $($(quiet)chk_filechk); \
45 mkdir -p $(dir $@); \ 49 mkdir -p $(dir $@); \
46 $(filechk_$(1)) < $< > $@.tmp; \ 50 $(filechk_$(1)) < $< > $@.tmp; \
47 if [ -r $@ ] && cmp -s $@ $@.tmp; then \ 51 if [ -r $@ ] && cmp -s $@ $@.tmp; then \
48 rm -f $@.tmp; \ 52 rm -f $@.tmp; \
49 else \ 53 else \
50 echo ' UPD $@'; \ 54 $($(quiet)upd_filechk); \
51 mv -f $@.tmp $@; \ 55 mv -f $@.tmp $@; \
52 fi 56 fi
53endef 57endef