Sunday, March 30, 2008

linux kernel module problems

make -C /lib/modules/2.6.20-15-generic/build M=/home/santiago/pctxDriver/helloTest modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
scripts/Makefile.build:17: /home/santiago/pctxDriver/helloTest/Makefile: No such file or directory
make[2]: *** No rule to make target `/home/santiago/pctxDriver/helloTest/Makefile'. Stop.
make[1]: *** [_module_/home/santiago/pctxDriver/helloTest] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [all] Error 2

The problem with this is that although Ubuntu Makefiles maybe named makefile, the kernel subsystem is looking for a makefile by the name of Makefile. In other words capitalization does matter.

No comments: