[linux-cifs-client] Re: Howto build cifs module kernel only
Steven French
sfrench at us.ibm.com
Mon Jun 26 04:09:26 GMT 2006
> I would like to build a new version of the cifs module kernel without
> rebuilding the whole kernel. How am I supposed to do that?
> My experience level is: experienced UNIX/Linux sysadmin ready to look or
> patch makefiles, but which don't know in which makefile to look for in
> the Linux sources.
>
> More specifically, I would be happy to use the Linux headers package
> related to my kernel to rebuild the new cifs module on my Debian Sarge
> (kernel 2.6.8 if it matters).
>
> Thanks
1) download new cifs (e.g. to ~/cifs-2.6-for-old-kernels)
2) cd to the root of your kernel headers (e.g.
/usr/src/linux-2.6.8-something)
3) make M=~/cifs-2.6-for-old-kernels/fs/cifs
4) if the build worked as expected then "/sbin/insmod
~/cifs-2.6-for-old-kernels/fs/cifs/cifs.ko" (probably have to be root)
5) if you want to make this automatic you can copy the new cifs.ko to
/lib/modules/<kernel version>/kernel/fs/cifs/cifs.ko after first saving
your existing version of that file
Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at-sign us dot ibm dot com
More information about the linux-cifs-client
mailing list