mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Acked-by: Heiko Carstens <[email protected]>
This commit is contained in:
parent
d6e4b3e326
commit
ba97df4558
6 changed files with 12 additions and 26 deletions
3
Makefile
3
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue