Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753747AbYBJTib (ORCPT ); Sun, 10 Feb 2008 14:38:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752738AbYBJTiV (ORCPT ); Sun, 10 Feb 2008 14:38:21 -0500 Received: from sovereign.computergmbh.de ([85.214.69.204]:54787 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752041AbYBJTiV (ORCPT ); Sun, 10 Feb 2008 14:38:21 -0500 Date: Sun, 10 Feb 2008 20:38:19 +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: <20080210192821.GB13733@uranus.ravnborg.org> 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: 1442 Lines: 41 On Feb 10 2008 20:28, Sam Ravnborg wrote: >On Sun, Feb 10, 2008 at 07:51:29PM +0100, 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 make[2]: Nothing to be done for `net/bridge/netfilter/ebtables.o'. MODPOST 0 modules CC arch/x86/kernel/asm-offsets.s GEN /home/jengelh/Coding/linux_nosov/include/asm-x86/asm-offsets.h Building modules, stage 2. MODPOST 0 modules And: $ touch net/bridge/netfilter/ebtables.c $ make O=... M=$PWD net/bridge/netfilter/ebtables.o CC [M] /home/jengelh/Coding/linux_nosov/net/bridge/netfilter/ebtables.o $ make O=... M=$PWD net/bridge/netfilter/ebtables.ko make[2]: Nothing to be done for `net/bridge/netfilter/ebtables.o'. MODPOST 0 modules -- 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/