summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-01-03 04:16:54 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-01-06 04:22:35 +0300
commitba97df45581f09a987ffa38444c33ed6a0a9479e (patch)
tree82ac6f321415ebfad378c249abb1779aeeb95c59 /Kbuild
parentd6e4b3e326d8b44675b9e19534347d97073826aa (diff)
downloadlinux-ba97df45581f09a987ffa38444c33ed6a0a9479e.tar.xz
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 'Kbuild')
-rw-r--r--Kbuild4
1 files changed, 1 insertions, 3 deletions
diff --git a/Kbuild b/Kbuild
index 06b801e12fb4..65db5bef2e36 100644
--- a/Kbuild
+++ b/Kbuild
@@ -26,9 +26,7 @@ timeconst-file := include/generated/timeconst.h
targets += $(timeconst-file)
-define filechk_gentimeconst
- echo $(CONFIG_HZ) | bc -q $<
-endef
+filechk_gentimeconst = echo $(CONFIG_HZ) | bc -q $<
$(timeconst-file): kernel/time/timeconst.bc FORCE
$(call filechk,gentimeconst)