Skip to content

Commit 00d78ab

Browse files
committed
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 <[email protected]>
1 parent 25815cf commit 00d78ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,8 +1721,7 @@ cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR) \
17211721
$(if $(KBUILD_MODULES),; rm -f $(MODVERDIR)/*)
17221722

17231723
# read all saved command lines
1724-
1725-
cmd_files := $(wildcard .*.cmd $(foreach f,$(sort $(targets)),$(dir $(f)).$(notdir $(f)).cmd))
1724+
cmd_files := $(wildcard .*.cmd)
17261725

17271726
ifneq ($(cmd_files),)
17281727
$(cmd_files): ; # Do not try to update included dependency files

0 commit comments

Comments
 (0)