how do you compile a kernel module without re-compiling the whole kernel?

Collins Richey crichey
Thu Jan 20 12:19:56 PST 2005


On Thu, 20 Jan 2005 09:59:19 -0600, Jason Joines <joines at bus.okstate.edu> wrote:
>     I'm using SuSE 9.2 with 2.6.10 vanilla kernel.  I have an Adaptec
> 2810SA card that is using the the aacraid module that came with that
> kernel.  Everything is working fine as far as the raid is concerned,
> I've stress tested it pretty hard.  However, I have to use the card's
> BIOS to configure it as Adaptec's command line utilities won't find the
> card.  I downloaded the driver source from Adaptec and did a diff on one
> of the *.c files there against the same file in
> /usr/src/linux-2.6.10/....  There was quite a bit of difference so I'd
> like to try that module.
>     There were instructions with the Adaptec source to patch my linux
> source but I don't want to have to recompile the whole kernel.  I guess
> I could do just the 'make modules; make modules_install' part again but
> don't really want to recompile and reinstall all the other modules.  Is
> there any way to just make and install this one module?
> 

The kernel make procedure should be smart enough to do what you want.
After patching the kernel, just issue make all modules_install, and
only the changed components and their dependancies should be
recompiled.

-- 
 Collins


More information about the Linux-users mailing list