summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-13 19:29:36 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-16 09:07:35 +0900
commit591f66899784ae0afa13ff9a3eb5ce0a4358e48b (patch)
tree847829a13d9542043ce1cf7eaee8a643afd5059d /scripts
parent2982c953570b2bced858613d70443c2c6a90587b (diff)
downloadop-kernel-dev-591f66899784ae0afa13ff9a3eb5ce0a4358e48b.zip
op-kernel-dev-591f66899784ae0afa13ff9a3eb5ce0a4358e48b.tar.gz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 62d5314..6f60377 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -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
# ---------------------------------------------------------------------------
OpenPOWER on IntegriCloud