diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-11-13 05:29:36 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-11-15 19:07:35 -0500 |
commit | 591f66899784ae0afa13ff9a3eb5ce0a4358e48b (patch) | |
tree | 847829a13d9542043ce1cf7eaee8a643afd5059d | |
parent | 2982c953570b2bced858613d70443c2c6a90587b (diff) |
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>
-rw-r--r-- | scripts/Makefile.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 62d5314c3b71..6f603770b08e 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -562,7 +562,7 @@ $(multi-used-m): FORCE | |||
562 | $(call multi_depend, $(multi-used-m), .o, -objs -y -m) | 562 | $(call multi_depend, $(multi-used-m), .o, -objs -y -m) |
563 | 563 | ||
564 | targets += $(multi-used-y) $(multi-used-m) | 564 | targets += $(multi-used-y) $(multi-used-m) |
565 | 565 | targets := $(filter-out $(PHONY), $(targets)) | |
566 | 566 | ||
567 | # Descending | 567 | # Descending |
568 | # --------------------------------------------------------------------------- | 568 | # --------------------------------------------------------------------------- |