Hey guys,
I was trying to create .ko file out of .c file, so I can load it to the kernel as a kernel module... but it doesn't go okay for me :
I got this file in my CWD :
test1.c
which contains my simple LKM (Linux loadable Kernel Module)
and I got this MakeFile
but when I try to create the .ko file I get (as root)
Code:
root@me:/home/zuki/programming/kernel_poc# make -C /usr/src/linux-2.6.24.5 SUBDIRS=/home/zuki/programming/kernel_poc/ modules
make: Entering directory `/usr/src/linux-2.6.24.5'
scripts/Makefile.build:41: /home/zuki/programming/kernel_poc/Makefile: No such file or directory
make[1]: *** No rule to make target `/home/zuki/programming/kernel_poc/Makefile'. Stop.
make: *** [_module_/home/zuki/programming/kernel_poc] Error 2
make: Leaving directory `/usr/src/linux-2.6.24.5'
the test1.ko isn't created in the CWD...
Do you see what I'm doing wrong?