|
|
Log in / Subscribe / Register

Driver porting: compiling external modules

Driver porting: compiling external modules

Posted Feb 6, 2003 6:05 UTC (Thu) by rfunk (subscriber, #4054)
Parent article: Driver porting: compiling external modules

For the make trickery in the latter part of this article, it's important to note that the original make command assumes the kernel source is in /usr/src/linux/:
make -C /usr/src/linux SUBDIRS=$PWD modules
While the makefile that allows a shorter command line assumes the kernel source is in a directory like /lib/modules/2.5.59/build/, due to the following line:
KDIR := /lib/modules/$(shell uname -r)/build

I believe there was some minor controversy on the linux-kernel mailing list recently over which location is more appropriate.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds