kbuild: silence CHK/UPD messages according to $(quiet)
PATCH 1/1 kbuild: silence CHK/UPD messages according to $(quiet)
Signed-off-by Mike Frysinger <[email protected]>
--- init/Makefile | 4 +++- scripts/Kbuild.include | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-)
init/Makefile +3 -1
@@ -27,7 +27,9 @@ $(obj)/version.o: include/linux/compile.h # mkcompile_h will make sure to only update the # actual file if its content has changed. + quiet_chk_compile.h = echo ' CHK $@' +silent_chk_compile.h = : include/linux/compile.h: FORCE - @echo ' CHK $@' + @$($(quiet)chk_compile.h) $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(KBUILD_CFLAGS)"
scripts/Kbuild.include +6 -2
@@ -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)) < $< > [email protected]; \ if [ -r $@ ] && cmp -s $@ [email protected]; then \ rm -f [email protected]; \ else \ - echo ' UPD $@'; \ + $($(quiet)upd_filechk); \ mv -f [email protected] $@; \ fi endef
Signature · 1 line
1.5.4
Quoted 1 line · Mike Frysinger
Signed-off-by Mike Frysinger <[email protected]>
Thanks Mike - applied.
Sam