On Sat, Aug 21, 2010 at 13:59, Tapas Mishra <[email protected]> wrote:
> Upto this point I have tried
>
> Step1) gcc -Wall -DMODULE -D__KERNEL__ -DLINUX -c sample2.c
> Step2) added -I to gcc flag
> gcc -Wall -DMODULE -D__KERNEL -DLINUX -I
> /usr/src/linux-headers-2.6.28- 11/include/ -c sample2.c

I've just realized that this is for 2.6.x. OK then, I suggest to try
writing a Makefile quite similar with:
http://tldp.org/LDP/lkmpg/2.6/html/x181.html#AEN189

Of course, make some adjustments.....


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to