[Ilugc] How to compile module
eerpini at gmail.com
Fri Dec 12 13:34:06 IST 2008
Hi ashish ,
they are the object files which were linked into the kernel module
file(.ko), you need not worry about them , they should actually be
gone if you run 'make clean' ........
also for more info refer to LDD 3rd edition (Linux Device Drivers) ,
it is all explained there , .. .you should be able to find free
versions of the book in PDF format on the web , ..........
On 12/12/08, Ashish Verma <ashishverma1984 at gmail.com> wrote:
> Hi Santosh,
> The problem was in the make file. I had put pcnet32.c instead of .o. The
> module has now been compiled. Now I got 4 files
> pcnet32.ko - I placed in /lib/modules/184.108.40.206/kernel/drivers/net
> What should I do with the rest. What are these for? I found similar file
> types in the /usr/src/linux-220.127.116.11/(different folders)
> On Fri, Dec 12, 2008 at 12:39 PM, Santosh <ssantosh at fossix.org> wrote:
>> Ashish Verma wrote:
>>> I dont know why this is not working for me. I was able to compile the
>>> 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
>>> or when the modules were compiled?
>> 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
>> To unsubscribe, email ilugc-request at ae.iitm.ac.in with "unsubscribe
>> <password> <address>"
>> in the subject or body of the message.
> To unsubscribe, email ilugc-request at ae.iitm.ac.in with
> "unsubscribe <password> <address>"
> in the subject or body of the message.
More information about the ilugc