Re: How to speed up building of modules?

Sam Ravnborg (sam@ravnborg.org)
Sat, 5 Apr 2003 09:48:03 +0200


On Fri, Apr 04, 2003 at 02:57:40PM +0600, Stephen Cameron wrote:
> Hi
>
> I'm wondering if you guys know any tricks to speed up building
> of linux kernel modules.

Have you looked at: LKMB (Linux Kernel Module Builder)
Try google at bit after it. An URL has been posted here a couple of times.

There is also: DKMS: Dynamic Kernel Module Support
Gary Lerhaupt from Dell has mede this and he would be glad for any feedback.

In general I advice you to use:
$ make -C path/to/kernel/src SUBDIRS=$PWD modules
when building modules. That's the _only_ way to make sure you have correct
CFLAGS etc.
This should work for 2. as weel as 2.5.

The Makefile than has to be kbuild conformant, as described in
Documentation/kbuild/makefiles.txt

Sam
-
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/