All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Eren Türkay" <eren@hambedded.org>
To: Biao <huanmateme@163.com>
Cc: yocto@yoctoproject.org
Subject: Re: Where does the bitbake get the variable "TOPDIR"
Date: Mon, 17 Dec 2012 17:37:52 +0200	[thread overview]
Message-ID: <20121217153752.GA5124@gmail.com> (raw)
In-Reply-To: <23bf4f1e.c486.13ba81d3be7.Coremail.huanmateme@163.com>

[-- Attachment #1: Type: text/plain, Size: 902 bytes --]

On Mon, Dec 17, 2012 at 05:06:26PM +0800, Biao wrote:
> Greetings, 
> 
> I am a newbie tying to understand how bitbake works.
> There is one line as BBPATH = "${TOPDIR}" in the mybuild/conf/bblayers.conf, i would like to know where the TOPDIR is defined? 

It's defind in "lib/bb/parse/parse_py/ConfHandler.py:36". When TOPDIR is
not defined in any of the bitbake configuration files, it's set to
current working directory automatically.

(...)

def init(data):
    topdir = data.getVar('TOPDIR')
    if not topdir:
        data.setVar('TOPDIR', os.getcwd())

(...)

You may want to read the newly-written documentation about bitbake and
open embedded. I tried to explain how things fit together. I would like
to have your feedback.

http://hambedded.org/blog/2012/11/24/from-bitbake-hello-world-to-an-image/

-- 
    . 73! DE TA1AET
      http://linkedin.com/in/erenturkay

[-- Attachment #2: Type: application/pgp-signature, Size: 850 bytes --]

  parent reply	other threads:[~2012-12-17 15:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-17  9:06 Where does the bitbake get the variable "TOPDIR" Biao
2012-12-17  9:47 ` Biao
2012-12-17 15:37 ` Eren Türkay [this message]
2012-12-18 12:28   ` Biao
2012-12-18 13:18     ` Bill Traynor
2012-12-18 16:35     ` Eren Türkay
2012-12-20  6:37       ` Biao

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=20121217153752.GA5124@gmail.com \
    --to=eren@hambedded.org \
    --cc=huanmateme@163.com \
    --cc=yocto@yoctoproject.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.