All of lore.kernel.org
 help / color / mirror / Atom feed
* where is the build rule for kernel's subdirs?
@ 2013-01-14  4:33 horseriver
  2013-01-14 16:32 ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: horseriver @ 2013-01-14  4:33 UTC (permalink / raw)
  To: linux-kbuild

hi:

   How does   kbuild   build objects for subdirs of kernel source ? 


thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* where is the build rule for kernel's subdirs?
  2013-01-14 16:32 ` Randy Dunlap
@ 2013-01-14  7:23   ` horseriver
  0 siblings, 0 replies; 3+ messages in thread
From: horseriver @ 2013-01-14  7:23 UTC (permalink / raw)
  To: kernelnewbies

On Mon, Jan 14, 2013 at 08:32:57AM -0800, Randy Dunlap wrote:
> On 01/13/13 20:33, horseriver wrote:
> > hi:
> > 
> >    How does   kbuild   build objects for subdirs of kernel source ? 
> 
> It goes into subdirs recursively.
> 
> 
> From top-level Makefile:
> 
> # Objects we will link into vmlinux / subdirs we need to visit
> init-y		:= init/
> drivers-y	:= drivers/ sound/ firmware/
> net-y		:= net/
> libs-y		:= lib/
> core-y		:= usr/
> 
> 
> Then each subdir's Makefile has its own rules.

  I do not think so !

  every makefile in these subdirs only have defined obj files ,but not contained build rules .

  Thanks!
> 
> -- 
> ~Randy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: where is the build rule for kernel's subdirs?
  2013-01-14  4:33 where is the build rule for kernel's subdirs? horseriver
@ 2013-01-14 16:32 ` Randy Dunlap
  2013-01-14  7:23   ` horseriver
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2013-01-14 16:32 UTC (permalink / raw)
  To: horseriver; +Cc: linux-kbuild

On 01/13/13 20:33, horseriver wrote:
> hi:
> 
>    How does   kbuild   build objects for subdirs of kernel source ? 

It goes into subdirs recursively.


From top-level Makefile:

# Objects we will link into vmlinux / subdirs we need to visit
init-y		:= init/
drivers-y	:= drivers/ sound/ firmware/
net-y		:= net/
libs-y		:= lib/
core-y		:= usr/


Then each subdir's Makefile has its own rules.

-- 
~Randy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-14 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-14  4:33 where is the build rule for kernel's subdirs? horseriver
2013-01-14 16:32 ` Randy Dunlap
2013-01-14  7:23   ` horseriver

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.