I'm working on a driver for the 2.6 Linux kernel, which uses kbuild. I don't know if my question is specific to the Linux kernel or kbuild. It appears that when I try to compile a driver, my makefile needs to be called "Makefile". Is there any way around this? I'd like to have two makefiles, "Makefile-2.4" and "Makefile-2.6" and then have a master makefile, "Makefile" decide which makefile to use depending on whether I'm compiling under a 2.6 kernel or a 2.4 kernel.

The problem is that the master kernel makefile appears to have the filename "Makefile" hard-coded everywhere. Can this be fixed easily? Is there a reason why the filename is restricted?

--
Timur Tabi
Staff Software Engineer
[EMAIL PROTECTED]


------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ kbuild-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to