kbuild , that was the actual solution !

the content i posted just before , that is on compiling kernel modules , i have tried going through the contents of the makefile and found the following solution , the technique used was something called kbuild, it provides a standard method for building external modules from the kernel environment ,.................
for the sample.c driver i wrote the contents of the corresponding makefile were :
_____________________________________________________________________________
default :
make -C /usr/src/kernels/$(shell uname -r)-i686/ SUBDIRS=$(PWD) modules
obj-m :=sample.o


clean :
-rm *.o *.ko *.mod.c

_____________________________________________________________________________

according to the kernel module programming guide this is a method provided by the 2.6x versions called
kbuild a little more intorduction at the following link
http://www.tldp.org/LDP/lkmpg/2.6/html/x181.html

Comments

Popular posts from this blog

Was history ! :)

installing RadRails on Eclipse ...........