Skip to content

Commit

Permalink
init: use $(call cmd,) for generating include/generated/compile.h
Browse files Browse the repository at this point in the history
The 'cmd' macro shows the short log only when $(quiet) is quiet_.
Do not do it manually.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed May 26, 2021
1 parent 2728fcf commit 41eba23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions init/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ $(obj)/version.o: include/generated/compile.h
# mkcompile_h will make sure to only update the
# actual file if its content has changed.

chk_compile.h = :
quiet_chk_compile.h = echo ' CHK $@'
silent_chk_compile.h = :
include/generated/compile.h: FORCE
@$($(quiet)chk_compile.h)
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
quiet_cmd_compile.h = CHK $@
cmd_compile.h = \
$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
"$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" \
"$(CONFIG_PREEMPT_RT)" $(CONFIG_CC_VERSION_TEXT) "$(LD)"

include/generated/compile.h: FORCE
$(call cmd,compile.h)

0 comments on commit 41eba23

Please sign in to comment.