Help to compile a module for 2.6.16-1.2122_FC5smp
Hello,
I need you help to give to compile a module.
I am trying to compile a simple Hello World module but I am have this error.
-----------------------------------------------------------
make -C /lib/modules/2.6.16-1.2122_FC5smp/build M=/home/fondjo/kerneltest/lkmpg-examples/HelloWorld modules
make: *** /lib/modules/2.6.16-1.2122_FC5smp/build: No such file or directory. Stop.
make: *** [all] Error 2
-------------------------------------------------------------
I tried also this Makefile
obj-m := helloworld.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
and obtained:
make: nothing to be done for 'default'
Please tell me how to solve this problem. I read a lot of comments but it cannot solve my problem.
Regards.
Frank
|