summaryrefslogtreecommitdiff
path: root/scripts/Kbuild.include
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-07-25 08:16:11 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-07-28 04:34:10 +0300
commit43fee2b238959a7b46e2e8c0cd3305c7c044ded8 (patch)
tree930bb1b64865e593bc8bcfc6aedfbe1b675d44aa /scripts/Kbuild.include
parent6b0709f5a50a98df5919ade32fd131dde10bdcb0 (diff)
downloadlinux-43fee2b238959a7b46e2e8c0cd3305c7c044ded8.tar.xz
kbuild: do not redirect the first prerequisite for filechk
Currently, filechk unconditionally opens the first prerequisite and redirects it as the stdin of a filechk_* rule. Hence, every target using $(call filechk,...) must list something as the first prerequisite even if it is unneeded. '< $<' is actually unneeded in most cases. Each rule can explicitly adds it if necessary. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r--scripts/Kbuild.include2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index 02bb3163cd8d..7eabe80cb9fb 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -56,7 +56,7 @@ kecho := $($(quiet)kecho)
define filechk
$(Q)set -e; \
mkdir -p $(dir $@); \
- $(filechk_$(1)) < $< > $@.tmp; \
+ $(filechk_$(1)) > $@.tmp; \
if [ -r $@ ] && cmp -s $@ $@.tmp; then \
rm -f $@.tmp; \
else \