[Ilugc] How to compile module

Santosh ssantosh at fossix.org
Fri Dec 12 12:39:09 IST 2008

Ashish Verma wrote:
> Hi,
> 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/" M=/root modules
> make[1]: Entering directory '/usr/src/linux-'
> scripts/Makefile.build:217: target '/root/pcnet32.c' doesn't match the
> target pattern
> Building modules, stage 2.
> MODPOST 0 modules
> make[1]: leaving directory  '/usr/src/linux-'
> I got the pcnet32.c file from
> /usr/src/linux- is a compiled
> kernel.
> Why is it that pcnet32.c did not get compiled when the kernel was compiled?
> or when the modules were compiled?
> Regards,
> Ashish

I had a wrong idea, the actual error is with the makefile. Somewhere 
regexps are used, which could not match the specified pattern. Thats the 


More information about the ilugc mailing list