diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-09-12 15:43:30 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-09-14 21:47:04 +0900 |
commit | 00d78ab2ba756af7b9a4dacd437b7a882bd18a4b (patch) | |
tree | f6aeb9a2709246a43b96d4986465ae140941bbab /Makefile | |
parent | 25815cf5ffecfb8b54314ee1b7cf14c78681fbb6 (diff) | |
download | lwn-00d78ab2ba756af7b9a4dacd437b7a882bd18a4b.tar.gz lwn-00d78ab2ba756af7b9a4dacd437b7a882bd18a4b.zip |
kbuild: remove dead code in cmd_files calculation in top Makefile
Nobody sets 'targets' in the top-level Makefile or arch/*/Makefile,
hence $(targets) is empty.
$(wildcard .*.cmd) will do for including the .vmlinux.cmd file.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1721,8 +1721,7 @@ cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR) \ $(if $(KBUILD_MODULES),; rm -f $(MODVERDIR)/*) # read all saved command lines - -cmd_files := $(wildcard .*.cmd $(foreach f,$(sort $(targets)),$(dir $(f)).$(notdir $(f)).cmd)) +cmd_files := $(wildcard .*.cmd) ifneq ($(cmd_files),) $(cmd_files): ; # Do not try to update included dependency files |