diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-01-03 02:16:54 +0100 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-01-06 02:22:35 +0100 |
commit | ba97df45581f09a987ffa38444c33ed6a0a9479e (patch) | |
tree | 82ac6f321415ebfad378c249abb1779aeeb95c59 /Makefile | |
parent | arch: remove redundant UAPI generic-y defines (diff) | |
download | linux-ba97df45581f09a987ffa38444c33ed6a0a9479e.tar.xz linux-ba97df45581f09a987ffa38444c33ed6a0a9479e.zip |
kbuild: use assignment instead of define ... endef for filechk_* rules
You do not have to use define ... endef for filechk_* rules.
For simple cases, the use of assignment looks cleaner, IMHO.
I updated the usage for scripts/Kbuild.include in case somebody
misunderstands the 'define ... endif' is the requirement.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1041,9 +1041,8 @@ PHONY += $(vmlinux-dirs) $(vmlinux-dirs): prepare $(Q)$(MAKE) $(build)=$@ need-builtin=1 -define filechk_kernel.release +filechk_kernel.release = \ echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))" -endef # Store (new) KERNELRELEASE string in include/config/kernel.release include/config/kernel.release: $(srctree)/Makefile FORCE |