Module compilation/linking in linux 2.6
I need to build a module having two files a.c and b.c and also I have another object file say d.c which is not in sourceform, I only have the object code and I need to link with my a.c and b.c.
My make file is something like this
obj-m :=a.o
a-y:=a.o b.o d.o
$(MAKE) -C $KERNELDIR M=`pwd` $@
and in my current directory I have d.o_shipped.I have used the example given in module file in /Documentation/kbuild dir.
Now my problem is everthing gets built and I do get "a.ko" module but make file gives me some warning on Undefined symbols which are there in d.o.Please let me know where am I wrong?
|