From patchwork Sun Mar 31 21:43:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 2368681 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 0B20C3FC8C for ; Sun, 31 Mar 2013 21:43:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755703Ab3CaVnr (ORCPT ); Sun, 31 Mar 2013 17:43:47 -0400 Received: from smtp.snhosting.dk ([87.238.248.203]:57081 "EHLO smtp.domainteam.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755639Ab3CaVnq (ORCPT ); Sun, 31 Mar 2013 17:43:46 -0400 Received: from merkur.ravnborg.org (unknown [188.228.89.252]) by smtp.domainteam.dk (Postfix) with ESMTPA id ED15DF1897; Sun, 31 Mar 2013 23:43:43 +0200 (CEST) Date: Sun, 31 Mar 2013 23:43:43 +0200 From: Sam Ravnborg To: Michal Marek , Andreas Schwab Cc: lkml , linux-kbuild Subject: [PATCH] kbuild: avoid rebuild of file2alias for each build Message-ID: <20130331214343.GA11285@merkur.ravnborg.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org When introducing devicetable-offsets generation this had the side-effect that file2alias (and thus modpost) were build for each kernel build. devicetable-offsets were introduced in 6543becf26fff612cdadeed7250ccc8d49f67f27 ("mod/file2alias: make modalias generation safe for cross compiling") "make V=2" said this was due to target not included in targets. So add devicetable-offsets to targets. Signed-off-by: Sam Ravnborg --- -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile index 9415b56..c8e04e9 100644 --- a/scripts/mod/Makefile +++ b/scripts/mod/Makefile @@ -30,10 +30,12 @@ define cmd_offsets endef # We use internal kbuild rules to avoid the "is up to date" message from make +targets += devicetable-offsets.s scripts/mod/devicetable-offsets.s: scripts/mod/devicetable-offsets.c FORCE $(Q)mkdir -p $(dir $@) $(call if_changed_dep,cc_s_c) +targets += $(devicetable-offsets-file) $(obj)/$(devicetable-offsets-file): scripts/mod/devicetable-offsets.s $(call cmd,offsets)