X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=scripts%2FKbuild.include;fp=scripts%2FKbuild.include;h=da3559ea92e03759d6a2a6d32c1307a9e1dc5c3b;hb=d75f4c683f817ef61c9ae634886e7ebc3133c002;hp=b96ea8d6a5ed0eb375a4db068cdb2c564407cd42;hpb=a3eadd7cb00f39f6fd4bbaf414dfde547b8c0899;p=karo-tx-linux.git 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) # - 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