Hello Module - Compilation creates Modules.symvers
Hi All,
I just tried to compile the Hello.c Module as stated in the "Linus Kernel Module Programming Guide" and i'm getting the follwing output.
linux-toej:/home/raj/program # make
make -C /lib/modules/2.6.16.21-0.25-smp/build M=/home/raj/program modules
make[1]: Entering directory `/usr/src/linux-2.6.16.21-0.25-obj/i386/smp'
make -C ../../../linux-2.6.16.21-0.25 O=../linux-2.6.16.21-0.25-obj/i386/smp modules
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/linux-2.6.16.21-0.25-obj/i386/smp'
Instead of creating hello.ko I have 2 files namely 'Modules.symvers' , '.tmp_versions'
DIR command is shown below:
linux-toej:/home/raj/program # dir
total 8
-rw-r--r-- 1 root root 190 2006-11-13 19:05 hello.c
-rw-r--r-- 1 root root 190 2006-11-13 19:12 Makefile
-rw-r--r-- 1 root root 0 2006-11-13 19:40 Modules.symvers
drwxr-xr-x 2 root root 48 2006-11-14 19:57 .tmp_versions
Please help me to compile this module. Seems I messed up something with the Kernel source.
Thanks a lot,
Raj