SUBDIRS= vs M=
Posted Jul 12, 2004 2:26 UTC (Mon) by kcannon
Parent article: Driver porting: compiling external modules
The 2.6.7 Makefiles say that an external module should be compiled by setting the variable M to the directory in which the module resides, rather than by setting SUBDIRS. The command line is
$ make -C /path/to/kernel/source M=/path/to/your/module modules
I've confirmed that this does work. What is the reason for choosing one over the other? Are they synonyms?
to post comments)