Compiling Kernel Modules

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



* Maciej Zenczykowski <maze@xxxxxxx> [2005-05-03 12:07:48]:
> 
> Now I know external modules can be compiled without recompiling the
> kernel - question is how to do it for an internal kernel module.

You might be able to build the ReiserFS code as if it was an external
module, this is the trick I used with the Areca SATA RAID driver,
although you need to make sure the code doesn't require access to
internal kernel headers.

You need to have the kernel-(smp-)devel packages installed, not the
kernel-source package. Basically, if you have the reiserfs source files
in a directory, do:

$ make CONFIG_REISERFS_FS=m -C /usr/src/kernels/<kernel version> \
M=/path/to/reiserfs/sources modules
$ make CONFIG_REI..... modules_install

As I said, this worked with the Areca drivers, not sure if it will work
for the ReiserFS drivers, but it's probably worth a try.

HTH

Matt
-- 
"I've seen his style before, terminal psychotic!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.centos.org/pipermail/centos/attachments/20050503/84a9fe62/attachment.bin

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux