summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-13 11:29:35 +0100
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-16 01:07:34 +0100
commit2982c953570b2bced858613d70443c2c6a90587b (patch)
tree95ec17379f0339fff06259c978c287997e0ed890 /Makefile
parentkbuild: create directory for make cache only when necessary (diff)
downloadlinux-2982c953570b2bced858613d70443c2c6a90587b.tar.xz
linux-2982c953570b2bced858613d70443c2c6a90587b.zip
kbuild: remove redundant $(wildcard ...) for cmd_files calculation
I do not see any reason why $(wildcard ...) needs to be called twice for computing cmd_files. Remove the first one. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a7476e6934f1..58dd24520c9e 100644
--- a/Makefile
+++ b/Makefile
@@ -1693,8 +1693,7 @@ cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR) \
# read all saved command lines
-targets := $(wildcard $(sort $(targets)))
-cmd_files := $(wildcard .*.cmd $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd))
+cmd_files := $(wildcard .*.cmd $(foreach f,$(sort $(targets)),$(dir $(f)).$(notdir $(f)).cmd))
ifneq ($(cmd_files),)
$(cmd_files): ; # Do not try to update included dependency files