diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-31 03:24:09 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-01-05 19:46:51 -0500 |
commit | ad774086356da92a477a87916613d96f4b36005c (patch) | |
tree | 74ef11898c40507c5705d6980e856a250a4b089a /Makefile | |
parent | 172caf1993b7a6503a9f7faf589e2cf26eb1f219 (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-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)\" |
1131 | endef | 1131 | endef |
1132 | 1132 | ||
1133 | define filechk_version.h | 1133 | define 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))' |
1137 | endef | 1137 | endef |
1138 | 1138 | ||
1139 | $(version_h): FORCE | 1139 | $(version_h): FORCE |