integrate driver into kernel sources
I´m trying to integrate an IO driver (Meilhaus ME8100) into kernel sources (184.108.40.206).
When I compile the kernel (incl. driver sources), I get the following error message:
How I got there:
drivers/built-in.o: In function `init_module':
: undefined reference to `__this_module'
drivers/built-in.o:(.data+0x3d80): undefined reference to `__this_module'
make: *** [.tmp_vmlinux1] Fehler 1
- copied driver sources (me8100.c, me8100.h) to drivers/char/
- inserted "obj-$(CONFIG_ME8100) += me8100.o" in file drivers/char/Makefile
- created a config section in Kconfig file (config ME8100 ...)
- make xconfig
- make clean
- make bzImage
Compiling this driver as a module works fine.
I guess something´s wrong with my driver code (but I´m not an expert). E.g I didn´t find the macros module_init and module_exit in me8100.c (inserting them doesn´t work either).
The whole driver package can be downloaded at sourceforge: me8100-1.1.6.tar.gz
or see the attachment
would be great if you could help me