From patchwork Tue Apr 19 05:05:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 66073 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1649602qge; Mon, 18 Apr 2016 22:05:47 -0700 (PDT) X-Received: by 10.66.255.65 with SMTP id ao1mr1391782pad.38.1461042347756; Mon, 18 Apr 2016 22:05:47 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si12186958paw.34.2016.04.18.22.05.47; Mon, 18 Apr 2016 22:05:47 -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 S1752626AbcDSFFp (ORCPT + 29 others); Tue, 19 Apr 2016 01:05:45 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:41212 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751901AbcDSFFn (ORCPT ); Tue, 19 Apr 2016 01:05:43 -0400 Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id u3J54Gs1016285; Tue, 19 Apr 2016 14:04:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com u3J54Gs1016285 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1461042257; bh=+R6bfHC3/1E5EE7n7lYUiMrEyHUw3OI/r1UqUMk4hjU=; h=From:To:Cc:Subject:Date:From; b=CioNfYUu9wq+g6i6R80fa+Hi2VZr0WDoxnDnNdeb7ytQuOaylcfGNiM9WLl/TW99c O4cZoCm9j8tg/EMXNL9D3p27+gReQbFO60RiPK+NkWRu2ofQaJ+xfJeAO0epsbovRC 3htoNS9vJxQP4RZ01vRMPdlzSYjIximwfpsee+5YCZ+lely1fHP29YES+gmmfz9gr9 rLSf6RrM5+Vo6kwQzFl6fw/U77DpfKAcNIauvNExP+iDWjHbc0S6WE6tiJrg1KNuiN L2Td+cf3s5nDLUbiGEEb21lKFERQ+CqkTZsuXVnRLbBh0Ube2FsHve3WPf5RRHrwqI J61GfvyTyxt5w== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: patches@arm.linux.org.uk Cc: Masahiro Yamada , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: suppress "include/generated/mach-types.h is up to date." Date: Tue, 19 Apr 2016 14:05:09 +0900 Message-Id: <1461042309-17898-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 --- KernelVersion: 4.6-rc4 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)