summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-31 03:24:09 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-01-05 19:46:51 -0500
commitad774086356da92a477a87916613d96f4b36005c (patch)
tree74ef11898c40507c5705d6980e856a250a4b089a /Makefile
parent172caf1993b7a6503a9f7faf589e2cf26eb1f219 (diff)
kbuild: change filechk to surround the given command with { }
filechk_* rules often consist of multiple 'echo' lines. They must be surrounded with { } or ( ) to work correctly. Otherwise, only the string from the last 'echo' would be written into the target. Let's take care of that in the 'filechk' in scripts/Kbuild.include to clean up filechk_* rules. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 04a857817f77..437d6033598c 100644
--- a/Makefile
+++ b/Makefile
@@ -1127,13 +1127,13 @@ define filechk_utsrelease.h
1127 echo '"$(KERNELRELEASE)" exceeds $(uts_len) characters' >&2; \ 1127 echo '"$(KERNELRELEASE)" exceeds $(uts_len) characters' >&2; \
1128 exit 1; \ 1128 exit 1; \
1129 fi; \ 1129 fi; \
1130 (echo \#define UTS_RELEASE \"$(KERNELRELEASE)\";) 1130 echo \#define UTS_RELEASE \"$(KERNELRELEASE)\"
1131endef 1131endef
1132 1132
1133define filechk_version.h 1133define filechk_version.h
1134 (echo \#define LINUX_VERSION_CODE $(shell \ 1134 echo \#define LINUX_VERSION_CODE $(shell \
1135 expr $(VERSION) \* 65536 + 0$(PATCHLEVEL) \* 256 + 0$(SUBLEVEL)); \ 1135 expr $(VERSION) \* 65536 + 0$(PATCHLEVEL) \* 256 + 0$(SUBLEVEL)); \
1136 echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) 1136 echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'
1137endef 1137endef
1138 1138
1139$(version_h): FORCE 1139$(version_h): FORCE