Sponsored link Serve your customers, not your servers, with VERIO Linux VPS. Full-access test-drive here. |
How to compile an external driver using a non-default makefile name?How to compile an external driver using a non-default makefile name?Posted Jan 9, 2007 0:27 UTC (Tue) by Linux_v (guest, #42654)Parent article: Driver porting: compiling external modules
Hi,
I used to be able to compile an external device driver using the command in 2.4 kernel:
make -f mymakefile
But in 2.6 kernel, the command doesn't work.
1) With this command
I saw the following error:
[root@pgenlx11 platypus]# make -f mymakefile
From reading the porting article, I've learnt that the 2.6 kernel build process goes through two passes for building an external device driver. The second pass is where it does the building job. But it looks like it was looking for a default makefile, named Makefile, even though, "-f mymakefile" is given at the make command.
I saw this the following error: basically, the build process try to look for mymakefile in the linux source tree, instead of the the dir defined by M=$(PWD).
3) case 1, "make -f mymakefile", will work fine if I add the following symbolic link:
I saw the linux build script uses "make -f " in some case. it look like it should work in 2.6 as well. What have I missed?
Thanks in advance!
(Log in to post comments)
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.