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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to