Hi, > > For me it is not working, only difference is I am using make > -f Makefile.kern > i.e. top level make file is renamed as Makefile.kern, there > are reasons I am > not naming it as Makefile. > > When I do make -f Makefile.kern, > I get following error: > > make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic' > scripts/Makefile.build:41: > /home/Leo/Desktop/My_Kernel_Stuff/TEST/Makefile: No such file or > directory > make[2]: *** No rule to make target > `/home/Leo/Desktop/My_Kernel_Stuff/TEST/Makefile'. Stop. > make[1]: *** [_module_/home/Leo/Desktop/My_Kernel_Stuff/TEST] Error 2 > make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic' > > > Looks like it is trying to look for an file named Makefile, which I > have renamed as Makefile.kern. > If this is the case then what is the point of make -f. > -Leo. > Leo, you cannot give Makefile -f command. You will have to compile your module like this only (and thus will need to name your Makefile "Makefile" only and not "Makefile.kern"): make -C ../linux-2.6.25/ M=`pwd` modules The reason is when you give -C option to the make, you are actually changin to the kernel tree and using the top level Makefile there which has rules to recurse into each directory and us "Makefile" there (not Makefile.kern). Thanks, Rajat -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ