Re: linux/module.h does not exist

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 21, 2010 at 13:59, Tapas Mishra <mightydreams@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux