[Ilugc] How to compile module
ssantosh at fossix.org
Fri Dec 12 12:31:58 IST 2008
Ashish Verma wrote:
> I dont know why this is not working for me. I was able to compile the hello
> world module without errors.
> I got the below error:
> make -C "/lib/modules/18.104.22.168/build" M=/root modules
> make: Entering directory '/usr/src/linux-22.214.171.124'
> scripts/Makefile.build:217: target '/root/pcnet32.c' doesn't match the
> target pattern
> Building modules, stage 2.
> MODPOST 0 modules
> make: leaving directory '/usr/src/linux-126.96.36.199'
> I got the pcnet32.c file from
> /usr/src/linux-188.8.131.52/drivers/net/pcnet32.c. 184.108.40.206 is a compiled
> Why is it that pcnet32.c did not get compiled when the kernel was compiled?
> or when the modules were compiled?
I din't have the look at the latest menuconfig of the kernel. But,
generally the module gets compiledf only when you select the appropriate
option. All the modules won't be compiled by default.
Another problem I can assume is that, pcnet32 must have been written
only to be built internally into the kernel and not as a module.
Any other thoughts?
More information about the ilugc