[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling new kernel modules



Alex Malinovich <demonbane@the-love-shack.net> writes:

> I've been rolling my own kernel using make-kpkg and the other wonderful
> tools we Debianites have at our disposal for over a year now, yet
> something just occured to me. Is it possible to compile individual
> kernel modules outside of the actual kernel compilation?

Is this extra modules (e.g. lm-sensors, ALSA, OpenAFS)?  If so, it's
easy enough to unpack the modules into /usr/src/modules (or
$MODULE_LOC), and then run 'make-kpkg modules-image --added-modules=foo' 
from the top of your kernel source tree.

If it's things in the kernel, you probably do wind up wanting to
completely rebuild the whole thing.  The last couple of times I've
built kernels, I've blindly selected every possible USB device driver
as a module; I figure sometime I might want to use something, and all
it costs me is a little disk space and a little compile time.

(The other suggestion of running 'make modules' and 'make
modules_install' is only somewhat faster, I think, and makes the
installed files disagree with what the make-kpkg-generated package
has; mostly this means you'll have extra files left over if you remove
the kernel-image package, but it also means that if you every try to
use debsums it'll tell you the package is corrupted.)

-- 
David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell



Reply to: