where is the build rule for kernel's subdirs?

horseriver horserivers at gmail.com
Mon Jan 14 02:23:28 EST 2013


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



More information about the Kernelnewbies mailing list