|
Driver porting: compiling external modulesDriver porting: compiling external modulesPosted 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
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.
(Log in to post comments)
Driver porting: compiling external modules 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.
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.