I’m trying to build a new kernel and add a new system call to that built kernel and when I try to recompile using ‘make’ command after creating the new system call I get this error.
scripts/Makefile.build:44: /usr/src/linux-3.0.42/block/helloworld/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.0.42/block/helloworld/Makefile'. Stop.
make: *** [block/helloworld] Error 2
If someone can help me with this I’ll be thankful 🙂
Kernel modules use a different version of make than you are probably used to. It greatly simplifies things, but can be a bit confusing at first. Here is documentation for kernel make: http://lwn.net/Articles/21835/
Here is tutorial on a hello world module:
The c code: http://tldp.org/LDP/lkmpg/2.6/html/x121.html
The corresponding makefile: http://tldp.org/LDP/lkmpg/2.6/html/x181.html