|
|
Subscribe / Log in / New account

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^_^


to post comments

Driver porting: compiling external modules

Posted Jul 22, 2004 15:00 UTC (Thu) by disq (guest, #23313) [Link] (1 responses)

apparently it's "obj-m", not "objs-m"

Driver porting: compiling external modules

Posted Jul 23, 2004 23:54 UTC (Fri) by Ryu_Tenchi (guest, #23057) [Link]

*^^* thank you, i feel stupid now lol, but it works and I learned from it
so,thanks again^_^


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds