Openembedded Bitbake Development
 help / color / mirror / Atom feed
From: <developer_agl@xtev.cn>
To: "'Paul Eggleton'" <paul.eggleton@linux.intel.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: 答复: 转发: About bitbake tasks
Date: Fri, 13 Jul 2018 09:45:40 +0800	[thread overview]
Message-ID: <002001d41a4b$34b67870$9e236950$@xtev.cn> (raw)
In-Reply-To: <1993940.Xc2Spn7Ep9@localhost.localdomain>


[-- Attachment #1.1: Type: text/plain, Size: 1811 bytes --]

Hi Paul, 

         So, bitbake will parse base.bbclass first and then execute the code line by line until parse "inherit some_guys", does it? And if I modify the content of the .bb recipe like this:

 

## start 

 

require xxxxx.inc

 

DESCRIPTION = "xxx"

 

PACKAGES = "xxx"

 

inherit others-1 others-2

 

PACKAGES += "yyy"

 

inherit others-3 others-4

 

## end

 

So, I think the flow is 

 



 

 

 

And, am I right?

 

Thanks.

 

 

-----邮件原件-----
发件人: Paul Eggleton <paul.eggleton@linux.intel.com> 
发送时间: 2018年7月12日 18:51
收件人: developer_agl@xtev.cn
抄送: bitbake-devel@lists.openembedded.org
主题: Re: [bitbake-devel] 转发: About bitbake tasks

 

On Thursday, 12 July 2018 12:15:07 PM CEST  <mailto:developer_agl@xtev.cn> developer_agl@xtev.cn wrote:

> I’m new to bitbake. And I have some questions about bitbake tasks 

> mechanism and inherit mechanism. If a xxx.bb recipe content like this :

> 

> ##start

> 

> DESCRIPTION = ”xxxxxxxxx”

> 

> XXX_XXXX = “${XXXXXXXX}”

> 

> inherit some_guys

> 

> ##end

> 

> And Bitbake User Manual said that ‘The minimally required class for 

> BitBake is the classes/base.bbclass file. The base class is implicitly 

> inherited by every recipe.’ So which .bbclass should be parsed first, 

> some_guys.bbclass or base.bbclass? I’m really confused about that.

 

Effectively, base.bbclass will be parsed first, then the lines in the recipe up to inherit some_guys, then some_guys.bbclass, and then the lines in the recipe that follow (in this case just a comment).

 

Cheers,

Paul

 

-- 

 

Paul Eggleton

Intel Open Source Technology Centre

 

 


[-- Attachment #1.2: Type: text/html, Size: 9578 bytes --]

[-- Attachment #2: image002.jpg --]
[-- Type: image/jpeg, Size: 24527 bytes --]

      reply	other threads:[~2018-07-13  1:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <008601d419c8$61a20a30$24e61e90$@xtev.cn>
2018-07-12 10:15 ` 转发: About bitbake tasks developer_agl
2018-07-12 10:50   ` Paul Eggleton
2018-07-13  1:45     ` developer_agl [this message]

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='002001d41a4b$34b67870$9e236950$@xtev.cn' \
    --to=developer_agl@xtev.cn \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=paul.eggleton@linux.intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox