[bitbake-devel] 答复: 转发: About bitbake tasks

developer_agl at xtev.cn developer_agl at xtev.cn
Fri Jul 13 01:45:40 UTC 2018


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 at linux.intel.com> 
发送时间: 2018年7月12日 18:51
收件人: developer_agl at xtev.cn
抄送: bitbake-devel at lists.openembedded.org
主题: Re: [bitbake-devel] 转发: About bitbake tasks

 

On Thursday, 12 July 2018 12:15:07 PM CEST  <mailto:developer_agl at xtev.cn> developer_agl at 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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20180713/a0674139/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 28376 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20180713/a0674139/attachment-0002.jpg>


More information about the bitbake-devel mailing list