Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756466AbYCKTjn (ORCPT ); Tue, 11 Mar 2008 15:39:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755962AbYCKTjd (ORCPT ); Tue, 11 Mar 2008 15:39:33 -0400 Received: from sovereign.computergmbh.de ([85.214.69.204]:37617 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085AbYCKTjc (ORCPT ); Tue, 11 Mar 2008 15:39:32 -0400 Date: Tue, 11 Mar 2008 20:39:31 +0100 (CET) From: Jan Engelhardt To: Sam Ravnborg cc: Linux Kernel Mailing List Subject: Re: Faster way to run through building single modules In-Reply-To: Message-ID: References: <20080210192821.GB13733@uranus.ravnborg.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1466 Lines: 40 On Feb 10 2008, Sam Ravnborg and Jan Engelhardt wrote: >>>> I was wondering whether there is a shortcut in kbuild I can take if I >>>> just want to rebuild one module. Currently, I have: >>>> >>>> make net/bridge/netfilter/ebtables.ko >>> >>>Fool kbuild to think this is an external module using: >>>make M=`pwd` net/bridge/netfilter/ebtables.ko >>> >>>That should do the trick. >> >>How would I combine that with O=? Not quite doing the right thing yet. >> >>linux$ touch net/bridge/netfilter/ebtables.c >>linux$ make O=/home/jengelh/Coding/linux-obj M=$PWD >> net/bridge/netfilter/ebtables.ko > >O=tells where to find the kernel output files. >We do not have a possibility to do so for external >modules - so they will alwys build in same dir as the source. > >Bad luck :-( I just noticed that with v2.6.25-rc3-302-g03923eb, running make builds the final .ko really quick. Maybe there has been some magic added that skips a lot of directories, but the process certainly takes less than 120 seconds, so I am happy. Previously, it seemed to have visited lots of directories (even though we know make is not called recursively in 2.6) before it printed "Building modules stage 2" for the first time. Nice :) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/