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: Tue, 18 Dec 2012 18:35:13 +0200	[thread overview]
Message-ID: <20121218163513.GA43124@gmail.com> (raw)
In-Reply-To: <42e1516f.20e80.13badfc9db3.Coremail.huanmateme@163.com>

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

On Tue, Dec 18, 2012 at 08:28:32PM +0800, Biao wrote:
> >http://hambedded.org/blog/2012/11/24/from-bitbake-hello-world-to-an-image/
> I will try to give some feedback after finishing the reading.
> But for now, there are some silly questions:
> 1. There is a base_do_fetch() {}, I did not find the explanation of the keyword of 'base' in the manual, do i miss something?

I don't know the internals of bitbake on that level but as far as I
understand, bitbake uses the name of the bbclass file as a prefix in the
function names for the sake of abstraction. So, as in autotools.bbclass,
the tasks defined in base.bbclass gets prefixes with "base_" keyword.
Probably, it's related with mapping the function names when 'inherit'
keyword is used.

I'm not clear on this topic either. A hand from an experienced bitbake
guru would be really helpful here. The type of abstraction in bitbake
should be explained in detail as well as how EXPORT_FUNCTION works.

Any volunteers?

> 2. There is 'bb.note' and 'bbnote' in the code example, is it a type-mistake or something else?

No, this is not a mistake. You can use python as well as shell functions
in bitbake recipes and classes. See 'python' keyword in function
definitons where bb.note is used. That's why python function "bb.note()"
is used to print log information. Without python keyword, the bitbake
function is treated as shell.

Regards,
Eren

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

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

  parent reply	other threads:[~2012-12-18 16:35 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
2012-12-18 12:28   ` Biao
2012-12-18 13:18     ` Bill Traynor
2012-12-18 16:35     ` Eren Türkay [this message]
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=20121218163513.GA43124@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.