1832218 Members
1729 Online
110041 Solutions
New Discussion

module compilation

 
SOLVED
Go to solution
Alexander Chuzhoy
Honored Contributor

module compilation

How can I recompile module that was built for a certain kernel (2.4.20-8) to work with a customly built kernel (2.4.20-8custom)-for example.
thanks.
3 REPLIES 3
Martin P.J. Zinser
Honored Contributor

Re: module compilation

If the module is part of the Kernel source and you have configured your kernel accordingly a make modules should build it.
Vitaly Karasik_1
Honored Contributor
Solution

Re: module compilation

and if now, you should use something like

cc -D__KERNEL__ -DMODULE -Wall -O2 -I/usr/src/linux/include
-DSVGALIB_HELPER_MAJOR=209 -c -o main.o main.c


Usually you will found such command line into module .c file or you'll get some installation script or even source rpm.

Rgds,
Vitaly
Alexander Chuzhoy
Honored Contributor

Re: module compilation

Probably you didn't understand.I have this module for anti virus. it was built for specified above kernel and doesn't work on custom (also specified above) kernel. How can I adjust this module to work on custom kernel.