Skip to content
Snippets Groups Projects
Commit 591f6689 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 2982c953
No related branches found
No related tags found
No related merge requests found
......@@ -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
# ---------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment