Skip to content

Commit

Permalink
kbuild: filter-out PHONY targets from "targets"
Browse files Browse the repository at this point in the history
The variable "targets" contains object paths for which existing .*.cmd
files should be included.

scripts/Makefile.build automatically adds $(MAKECMDGOALS) to "targets"
as follows:

  targets += $(extra-y) $(MAKECMDGOALS) $(always)

The $(MAKECMDGOALS) is a PHONY target in several places.  PHONY targets
never create .*.cmd files.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
  • Loading branch information
Masahiro Yamada committed Nov 16, 2017
1 parent 2982c95 commit 591f668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ $(multi-used-m): FORCE
$(call multi_depend, $(multi-used-m), .o, -objs -y -m)

targets += $(multi-used-y) $(multi-used-m)

targets := $(filter-out $(PHONY), $(targets))

# Descending
# ---------------------------------------------------------------------------
Expand Down

0 comments on commit 591f668

Please sign in to comment.