summaryrefslogtreecommitdiffstats
path: root/scripts
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 21:32:01 +0100
commitfd54f502841c1caa7cfd5af564aad1bd017371fa (patch)
treed45bc3583946387722d3aa587a82213961e0befe /scripts
parent5410ecc0def8955ab99810c5626cc7e156991896 (diff)
downloadlinux-fd54f502841c1caa7cfd5af564aad1bd017371fa.tar.gz
linux-fd54f502841c1caa7cfd5af564aad1bd017371fa.tar.bz2
linux-fd54f502841c1caa7cfd5af564aad1bd017371fa.zip
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')
-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)
# - 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)
- chk_filechk = :
- quiet_chk_filechk = echo ' CHK $@'
-silent_chk_filechk = :
- upd_filechk = :
- quiet_upd_filechk = echo ' UPD $@'
-silent_upd_filechk = :
-
define filechk
$(Q)set -e; \
- $($(quiet)chk_filechk); \
+ $(kecho) ' CHK $@'; \
mkdir -p $(dir $@); \
$(filechk_$(1)) < $< > $@.tmp; \
if [ -r $@ ] && cmp -s $@ $@.tmp; then \
rm -f $@.tmp; \
else \
- $($(quiet)upd_filechk); \
+ $(kecho) ' UPD $@'; \
mv -f $@.tmp $@; \
fi
endef