On Thu, Jul 16, 2009 at 9:43 AM, Kousik Maiti <maiti.kousik@xxxxxxxxx> wrote:
Some issue with the Makefile. Will have a closer look sometime later.
But In the mean while you can use the following in your Makefile.
obj-m := hi.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
Hope this helps.
Regards,
Sandeep.
“To learn is to change. Education is a process that changes the learner.”
Hi list,I am new to kernel programming. I want to create a module. For that I follow http://crashcourse.ca/wiki/index.php/Writing_your_first_kernel_module .When I run make command I got this message.$makemake -C /lib/modules/2.6.28-11-generic/build M=/home/kousik/program/module modulesmake[1]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'Building modules, stage 2.MODPOST 0 modulesmake[1]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
Some issue with the Makefile. Will have a closer look sometime later.
But In the mean while you can use the following in your Makefile.
obj-m := hi.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
Hope this helps.
Regards,
Sandeep.
“To learn is to change. Education is a process that changes the learner.”
But there is no module means .ko file generated . Can anybody help me?Thanks in advance.--
Kousik Maiti
CDAC- Mumbai