[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling modules
Hi!
On Thu, Jan 03, 2008 at 03:17:03PM +0100, Peter Poulsen wrote:
> When we build our own modules, we type something like:
>
> make -C /lib/modules/2.6.22/build M=$(PWD) modules
>
> What is the 'M' variable actually used for? If somebody can tell me in what
> Makefile
> it is read (and at which line) it would be awesome
The "-C" flag sets the directory to where the make command shall go to
before start executing. Thus, the Makefile is located at
/lib/modules/2.6.22/build. In this directory you can find the place
where this variable is used. Just grep it for "$(M)" ;)
--
Luis Henriques
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ