aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Kbuild.include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-11-06 03:31:35 -0500
committerSam Ravnborg <sam@ravnborg.org>2008-12-03 15:32:01 -0500
commitfd54f502841c1caa7cfd5af564aad1bd017371fa (patch)
treed45bc3583946387722d3aa587a82213961e0befe /scripts/Kbuild.include
parent5410ecc0def8955ab99810c5626cc7e156991896 (diff)
kbuild: use KECHO convenience echo
Convert a few echos in the build system to new $(kecho) so we get correct output according to build verbosity. Signed-off-by: Mike Frysinger <vapier@gentoo.org> [sam: added kecho in a few more places for O=... builds] Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r--scripts/Kbuild.include11
1 files changed, 2 insertions, 9 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index 8cf87e815e51..c29be8f90248 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -46,22 +46,15 @@ kecho := $($(quiet)kecho)
46# - If they are equal no change, and no timestamp update 46# - If they are equal no change, and no timestamp update
47# - stdin is piped in from the first prerequisite ($<) so one has 47# - stdin is piped in from the first prerequisite ($<) so one has
48# to specify a valid file as first prerequisite (often the kbuild file) 48# to specify a valid file as first prerequisite (often the kbuild file)
49 chk_filechk = :
50 quiet_chk_filechk = echo ' CHK $@'
51silent_chk_filechk = :
52 upd_filechk = :
53 quiet_upd_filechk = echo ' UPD $@'
54silent_upd_filechk = :
55
56define filechk 49define filechk
57 $(Q)set -e; \ 50 $(Q)set -e; \
58 $($(quiet)chk_filechk); \ 51 $(kecho) ' CHK $@'; \
59 mkdir -p $(dir $@); \ 52 mkdir -p $(dir $@); \
60 $(filechk_$(1)) < $< > $@.tmp; \ 53 $(filechk_$(1)) < $< > $@.tmp; \
61 if [ -r $@ ] && cmp -s $@ $@.tmp; then \ 54 if [ -r $@ ] && cmp -s $@ $@.tmp; then \
62 rm -f $@.tmp; \ 55 rm -f $@.tmp; \
63 else \ 56 else \
64 $($(quiet)upd_filechk); \ 57 $(kecho) ' UPD $@'; \
65 mv -f $@.tmp $@; \ 58 mv -f $@.tmp $@; \
66 fi 59 fi
67endef 60endef