LWN.net Logo

SUBDIRS= vs M=

SUBDIRS= vs M=

Posted Aug 26, 2004 17:10 UTC (Thu) by r2b2lewis (guest, #24285)
In reply to: SUBDIRS= vs M= by corbet
Parent article: Driver porting: compiling external modules

I am running on SuSE 9.1 (2.6.4-52-smp).

When I ran the make file using the line:

$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

the make ran quickly without error.

However, when I changed that line to:

$(MAKE) -C $(KDIR) M=$(PWD) modules

I seem to be making the entire kernel again.

What's up with that?


(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.