Re: Doubt with the Makefile for Module programming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 27, 2005 at 11:04:21PM +0530, K S Sandeep wrote:
> On Sun, 27 Mar 2005 18:05:16 +0200, Erik Mouw <J.A.K.Mouw@xxxxxxxxxxxxxx> wrote:
> > On Sun, Mar 27, 2005 at 12:59:31PM +0530, K S Sandeep wrote:
> > > make -C /usr/src/linux M=`pwd` modules.
> > >
> > >  I found out from 'man make'  that -C is for changing directory. But i
> > > didn't get information on why  'M=`pwd` modules' is used. What purpose
> > > does this serve.
> > 
> > It tells the kernel build system (kbuild) that it should do things in
> > the directory pointed by the variable M.
> 
> oh ok... but why the modules keyword... is it the directory in the
> kernel source where the Kbuild should do its work or is it to identify
> that this peice of code will act as a module

It's the build target (that should be documented in the GNU make info
pages). IOW: you tell kbuild you want to make the "modules" target for
the directory in variable M.


Erik

-- 
Erik Mouw
J.A.K.Mouw@xxxxxxxxxxxxxx  mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux