Driver porting: compiling external modules
Driver porting: compiling external modules
Posted Feb 3, 2005 3:28 UTC (Thu) by fleetinglife (guest, #27641)Parent article: Driver porting: compiling external modules
I am struggling to build my first linux driver module.
I have four .c files in my source directroy, the file file_mod.c is the one contains the main code of module. I use the Makefile as following:
obj-m := file_mod.o
module-objs := file1.o file2.o file3.o file_mod.o
and type make command as following:
make -C /usr/src/linux-2.6.0 SUBDIRS=$PWD modules
It can build the file_mod.ko successfully, but I got a list of warning messages, said some functions called in file_mod.ko UNDEFINED! These functions are defined in file1.c, file2.c, file3.c.
How to solve this problem? Any suggestion will be appreciated.
Posted Feb 3, 2005 9:30 UTC (Thu)
by fleetinglife (guest, #27641)
[Link]
I see, The module-objs should be modified into file_mod-objs.Driver porting: compiling external modules
