Skip to content

Commit 41eba23

Browse files
committed
init: use $(call cmd,) for generating include/generated/compile.h
The 'cmd' macro shows the short log only when $(quiet) is quiet_. Do not do it manually. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 2728fcf commit 41eba23

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

init/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ $(obj)/version.o: include/generated/compile.h
2727
# mkcompile_h will make sure to only update the
2828
# actual file if its content has changed.
2929

30-
chk_compile.h = :
31-
quiet_chk_compile.h = echo ' CHK $@'
32-
silent_chk_compile.h = :
33-
include/generated/compile.h: FORCE
34-
@$($(quiet)chk_compile.h)
35-
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
30+
quiet_cmd_compile.h = CHK $@
31+
cmd_compile.h = \
32+
$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
3633
"$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" \
3734
"$(CONFIG_PREEMPT_RT)" $(CONFIG_CC_VERSION_TEXT) "$(LD)"
35+
36+
include/generated/compile.h: FORCE
37+
$(call cmd,compile.h)

0 commit comments

Comments
 (0)