how do you compile a kernel module without re-compiling the whole kernel?
Matthew Carpenter
matt
Mon Jan 24 00:14:03 PST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jason,
SuSE includes the config file used to compile the kernel in the
kernel-source package, at /usr/src/linux/arch/i386/defconfig.
Copy that to /usr/src/linux/.config and then patch your kernel and
recomile the whole thing (you can try doing just the modules if you want)
Or, install their src.rpm for the kernel (along with the kernel-source I
believe) and then change the /usr/src/packages/SPEC/kernel*.spec to
include the new patch. Then, rpmbuild -ba
/usr/src/packages/SPEC/kernel*.spec
to build new RPM's.
Jason Joines 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?
|
| Thanks,
|
| Jason Joines
| ===============================
| _______________________________________________
| Linux-users mailing list
| Linux-users at linux-sxs.org
| http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
|
| Need to chat further on this subject? Check out #linux-users on
| irc.linux-sxs.org !
|
|
|
- --
Matthew Carpenter
matt at eisgr.com http://www.eisgr.com/
Enterprise Information Systems
* Network Server Appliances
* Security Consulting, Incident Handling & Forensics
* Network Consulting, Integration & Support
* Web Integration and E-Business
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB8aFWso9lqh4MragRAlDoAKDGLszN5mZ5FdohrK3i38oTOd7hgACfQ4Mh
qbLp1SLNPp8JD7DAXaXE1js=
=PUjn
-----END PGP SIGNATURE-----
More information about the Linux-users
mailing list