[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0802102035000.7915@fbirervta.pbzchgretzou.qr>
Date: Sun, 10 Feb 2008 20:38:19 +0100 (CET)
From: Jan Engelhardt <jengelh@...putergmbh.de>
To: Sam Ravnborg <sam@...nborg.org>
cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: Faster way to run through building single modules
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists