Skip to content

Commit 591f668

Browse files
committed
kbuild: filter-out PHONY targets from "targets"
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>
1 parent 2982c95 commit 591f668

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/Makefile.build‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ $(multi-used-m): FORCE
562562
$(call multi_depend, $(multi-used-m), .o, -objs -y -m)
563563

564564
targets += $(multi-used-y) $(multi-used-m)
565-
565+
targets := $(filter-out $(PHONY), $(targets))
566566

567567
# Descending
568568
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)