diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-11-13 05:29:35 -0500 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-11-15 19:07:34 -0500 |
| commit | 2982c953570b2bced858613d70443c2c6a90587b (patch) | |
| tree | 95ec17379f0339fff06259c978c287997e0ed890 /scripts/Makefile.headersinst | |
| parent | 9a234a2e384349f21afac8d718aa294a668ad4fa (diff) | |
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 'scripts/Makefile.headersinst')
| -rw-r--r-- | scripts/Makefile.headersinst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index 5692d7a66163..c6fb2b75d813 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst | |||
| @@ -114,9 +114,8 @@ $(check-file): scripts/headers_check.pl $(output-files) FORCE | |||
| 114 | 114 | ||
| 115 | endif | 115 | endif |
| 116 | 116 | ||
| 117 | targets := $(wildcard $(sort $(targets))) | ||
| 118 | cmd_files := $(wildcard \ | 117 | cmd_files := $(wildcard \ |
| 119 | $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd)) | 118 | $(foreach f,$(sort $(targets)),$(dir $(f)).$(notdir $(f)).cmd)) |
| 120 | 119 | ||
| 121 | ifneq ($(cmd_files),) | 120 | ifneq ($(cmd_files),) |
| 122 | include $(cmd_files) | 121 | include $(cmd_files) |
