diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild.include | 8 |
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 $@' | ||
43 | silent_chk_filechk = : | ||
44 | quiet_upd_filechk = echo ' UPD $@' | ||
45 | silent_upd_filechk = : | ||
42 | define filechk | 46 | define 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 |
53 | endef | 57 | endef |