From: Masahiro Yamada Date: Mon, 13 Nov 2017 10:29:36 +0000 (+0900) Subject: kbuild: filter-out PHONY targets from "targets" X-Git-Tag: v4.15-rc1~50^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=591f66899784ae0afa13ff9a3eb5ce0a4358e48b;p=thirdparty%2Flinux.git 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 --- diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 62d5314c3b719..6f603770b08ee 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 # ---------------------------------------------------------------------------