All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: horseriver <horserivers@gmail.com>
Cc: linux-kbuild@vger.kernel.org
Subject: Re: where is the build rule for kernel's subdirs?
Date: Mon, 14 Jan 2013 08:32:57 -0800	[thread overview]
Message-ID: <50F43339.4040701@infradead.org> (raw)
In-Reply-To: <20130114043314.GA3968@debian.localdomain>

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

  reply	other threads:[~2013-01-14 16:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14  4:33 where is the build rule for kernel's subdirs? horseriver
2013-01-14 16:32 ` Randy Dunlap [this message]
2013-01-14  7:23   ` horseriver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50F43339.4040701@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=horserivers@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.