Driver porting: compiling external modules
Driver porting: compiling external modules
Posted Jul 15, 2004 6:12 UTC (Thu) by Ryu_Tenchi (guest, #23057)Parent article: Driver porting: compiling external modules
i'm a little lose so sorry for this, but i'm trying to figure this stuff out but it never actually make the module...
code:
//main.c
#include <linux/module.h>
#include <linux/config.h>
#include <linux/init.h>
int init_module(void){printk("<1>Hello, world\n"); return 0;}
void cleanup_module(void) {printk("<1>Goodbye cruel world\n");}
makefile:
objs-m := main.o
command entered:
make -C /usr/src/linux M=`pwd` modules
output:
make: Entering directory `/usr/src/linux-2.6.7-gentoo-r11'
Building modules, stage 2.
MODPOST
make: Leaving directory `/usr/src/linux-2.6.7-gentoo-r11'
any help would be great, thanks^_^
