From patchwork Thu Mar 31 18:25:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 64808 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp311344lbc; Thu, 31 Mar 2016 11:27:13 -0700 (PDT) X-Received: by 10.66.249.166 with SMTP id yv6mr21189193pac.91.1459448833473; Thu, 31 Mar 2016 11:27:13 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 86si15645882pfr.63.2016.03.31.11.27.13; Thu, 31 Mar 2016 11:27:13 -0700 (PDT) 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; 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 S1757756AbcCaS1K (ORCPT + 29 others); Thu, 31 Mar 2016 14:27:10 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:59766 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751703AbcCaS1J (ORCPT ); Thu, 31 Mar 2016 14:27:09 -0400 Received: from grover.sesame (FL1-203-136-65-164.osk.mesh.ad.jp [203.136.65.164]) (authenticated) by conuserg-09.nifty.com with ESMTP id u2VIPmbl032434; Fri, 1 Apr 2016 03:25:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u2VIPmbl032434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1459448757; bh=1wMPXzoWfn1f6LyU8OkI3rvTvYP4v9+aXJwsb4z56LY=; h=From:To:Cc:Subject:Date:From; b=mzOkbMzN/84LyLWzGFANTf/tOg1R7YoOd756ICS3ZuVaL6K4ud/E/ngxMBiA8VkSH WGZk5fA6o1A0MlCTEQEAN/FyFlCRQugX2z3cx1dx8LymM7FgeyawpVc1ExtdyPcRjS zCdV9Kfr5M0mOKpXTfXgsr7w6J++i/+uOw0UvNvvuMy6GREm18xOT9hEqpjufrsRH6 9OPgE8jKKnQsyfsyar4CQGgAJPrR+qG/usIYftrmbrV+FkdEAPv8MAQ3D++mZs389q 1JLdinup5xNtvhob/RuGKz9q2Ue3RQs8CPzCQFnDsh0MU9d1Em+7FLFMSYv1Wjpg0p KgZk6bN/JfAaA== X-Nifty-SrcIP: [203.136.65.164] From: Masahiro Yamada To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , Russell King , linux-kernel@vger.kernel.org Subject: [PATCH] ARM: suppress "include/generated/mach-types.h is up to date." Date: Fri, 1 Apr 2016 03:25:46 +0900 Message-Id: <1459448746-16527-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For incremental build, "include/generated/mach-types.h is up to date" is every time displayed like follows: $ make ARCH=arm CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[1]: `include/generated/mach-types.h' is up to date. CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h This commit avoids such a clumsy log and introduces Kbuild standard log style: GEN include/generated/mach-types.h Signed-off-by: Masahiro Yamada --- arch/arm/tools/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) -- 1.9.1 diff --git a/arch/arm/tools/Makefile b/arch/arm/tools/Makefile index 32d05c8..6e4cd18 100644 --- a/arch/arm/tools/Makefile +++ b/arch/arm/tools/Makefile @@ -4,7 +4,10 @@ # Copyright (C) 2001 Russell King # -include/generated/mach-types.h: $(src)/gen-mach-types $(src)/mach-types - @$(kecho) ' Generating $@' - @mkdir -p $(dir $@) - $(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; } +quiet_cmd_gen_mach = GEN $@ + cmd_gen_mach = mkdir -p $(dir $@) && \ + $(AWK) -f $(filter-out $(PHONY),$^) > $@ || \ + { rm -f $@; /bin/false; } + +include/generated/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE + $(call if_changed,gen_mach)