Compile a module in Fedora 10
Hi everybody, I am a newbie
I have just learnt Linux. And I have many problems. Please help me, thanks you very much.
The first my question: How to build a kernel module in fedora 10, 2.6.27.21-170.2.56.fc10.i686. I try to do it but error
My MakeFile:
obj-m += vlogger.c
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
and this is result when I type 'make' command
[haopx@phamxuanhao BTL]$ make
make -C /lib/modules/2.6.27.21-170.2.56.fc10.i686/build M=/home/haopx/Desktop/BTL modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.21-170.2.56.fc10.i686'
scripts/Makefile.build:218: target `/home/haopx/Desktop/BTL/vlogger.c' doesn't match the target pattern
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/usr/src/kernels/2.6.27.21-170.2.56.fc10.i686'
[haopx@phamxuanhao BTL]$
And there are files in BTL directory:
Makefile Module.markers modules.order Module.symvers vlogger.c
Where is my module .ko???
Thanks
|