From patchwork Wed Apr 3 07:12:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 2385161 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 8AA45DFB79 for ; Wed, 3 Apr 2013 07:13:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762698Ab3DCHNQ (ORCPT ); Wed, 3 Apr 2013 03:13:16 -0400 Received: from vaxjo.synopsys.com ([198.182.60.75]:46161 "EHLO vaxjo.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762662Ab3DCHNQ (ORCPT ); Wed, 3 Apr 2013 03:13:16 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by vaxjo.synopsys.com (Postfix) with ESMTP id A66BADEFF; Wed, 3 Apr 2013 00:13:15 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 91E6A819; Wed, 3 Apr 2013 00:13:15 -0700 (PDT) Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2-vip.internal.synopsys.com [10.12.239.238]) by mailhost.synopsys.com (Postfix) with ESMTP id 396AE818; Wed, 3 Apr 2013 00:13:15 -0700 (PDT) Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.104) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.2.298.4; Wed, 3 Apr 2013 00:12:42 -0700 Received: from vineetg-E6520.internal.synopsys.com (10.12.197.41) by IN01WEHTCA.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.2.298.4; Wed, 3 Apr 2013 12:42:38 +0530 From: Vineet Gupta To: CC: Vineet Gupta , Michal Marek , Stephen Warren , Grant Likely , Subject: [PATCH] Kbuild: Avoid DTB rebuilds if source files are untouched Date: Wed, 3 Apr 2013 12:42:21 +0530 Message-ID: <1364973141-16354-1-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-Originating-IP: [10.12.197.41] Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Currently, for every ARC kernel build I see the following: --------------->8----------------- DTB arch/arc/boot/dts/angel4.dtb.S AS arch/arc/boot/dts/angel4.dtb.o LD arch/arc/boot/dts/built-in.o rm arch/arc/boot/dts/angel4.dtb.S <-- forces rebuild next iter CHK kernel/config_data.h --------------->8----------------- Signed-off-by: Vineet Gupta Cc: Michal Marek Cc: Stephen Warren Cc: Grant Likely Cc: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- scripts/Makefile.lib | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 07125e6..17f96f4 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -265,6 +265,8 @@ cmd_dt_S_dtb= \ echo '.balign STRUCT_ALIGNMENT'; \ ) > $@ +.PRECIOUS: $(obj)/%.dtb.S + $(obj)/%.dtb.S: $(obj)/%.dtb $(call cmd,dt_S_dtb)