From patchwork Mon Nov 13 10:29:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 118721 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1625518qgn; Mon, 13 Nov 2017 02:31:44 -0800 (PST) X-Google-Smtp-Source: AGs4zMYz5AUm0zPZsud3XD51mN0C/15x9QPYsP2sy+8TZcGPqlmdD7NS/g27QV2F8cmRvipYr8Pl X-Received: by 10.84.149.168 with SMTP id m37mr8459458pla.36.1510569103990; Mon, 13 Nov 2017 02:31:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510569103; cv=none; d=google.com; s=arc-20160816; b=dFFsPtuaJ8FKTi7WbJ1cEOfkYEskvfm0T5YvKbXRAcCNKIUBIPAlFPjgLW0ZNx42ji rUMHU5fmSWb5NQRyqZKy953tzV2GmOl4u2fxUnE8v1zX5bjB4wrzcS0ftkdNkViVtzxH PRUzxyiRVhQX9mbDubBUKbdLNzA2qnCe58MWBvEH9UkeZr+/xdLWuBti24YgfMarNubl MxMHNEnAu+F01BVrivvPj6A1Jzp3a1kV8xxis5ww5m8DihL64c3Rv7Jm4J6QOrCeR/ei C6NLUsgbQnMiDmVjnp23gXku9JvDrIng5HYMDJsP23PjyI36GcvbKES/gNkQGYd0h5SL Rrfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=OkwBV8n2DfSgSr5L5Ljlv3Aj+c8N3myUF4hHzA9rtLU=; b=g+YJv+KvEHj6gM9V7i0uaBoaNxBV9d1+QVcpKejYmQNJWSMppxxt8ZXPVFoajaoeN4 McGO+fuCKMsUZaeum1WPZZByX0If9CSo+Q56pZaqvOVTs0T1vivgvAuvpGyE1htcxr5z uPwyY1gUup9HJpJa9GHuQANf0g55nr3r6n1c3xSkrCN3mzgI4vh/hmpLl7rcAILMUOWM /aNjthvMhi0LHzSwZzdir9hf40kIKjRK+5jjgdkrHUDH+s1brng3DS6cDQz07K+KMp/0 msgaVVceokzXJybK3qRdXsACso7qF77ZQMOn6D5hILkoBKTowU2f90ympW2W2pa9HYrT D8JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Oy8IenXQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si14193381plk.389.2017.11.13.02.31.43; Mon, 13 Nov 2017 02:31:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Oy8IenXQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752501AbdKMKbm (ORCPT + 27 others); Mon, 13 Nov 2017 05:31:42 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:40663 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752336AbdKMKbg (ORCPT ); Mon, 13 Nov 2017 05:31:36 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id vADATvx4031253; Mon, 13 Nov 2017 19:30:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com vADATvx4031253 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1510569000; bh=OkwBV8n2DfSgSr5L5Ljlv3Aj+c8N3myUF4hHzA9rtLU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Oy8IenXQeXGX3g20F6wcJkV6vrq5wSpSfrt2Vw5wpNXzJIcO+P1aZLLPo6eiRHX8B Fl3azrBZIcQ5wHHiOzk4ORlVM0f5EGM2ymlNmARO4fx/MknfacUUHUQWSfh0Rww/a9 +J2NxKG4XLSaNG+ne/NX8rv/T3FsZ8fX8dshuyWyatgyPSVHKaQWoZmakXe6erBoNd CU6ik/wduXf295cbBgjO5T7B9SJIM4SaTRjQ47LeCcurpeaUoY/2waeRsp1iAxOYOo IaM5qOTrq1+x6OOfDoN0cbMZeg2TlIZkJD3tywlJohrM5KD8zQjmWDctqNKNOkT2wz hx+TLpZio0PbA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Douglas Anderson , Sam Ravnborg , Michal Marek , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/6] kbuild: filter-out PHONY targets from "targets" Date: Mon, 13 Nov 2017 19:29:36 +0900 Message-Id: <1510568979-24440-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510568979-24440-1-git-send-email-yamada.masahiro@socionext.com> References: <1510568979-24440-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Changes in v2: - Newly added scripts/Makefile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 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 # ---------------------------------------------------------------------------