About bitbake tasks
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
Sorry, my fault, it’s
inherit some_guys
Thanks.
发件人: [email protected] <[email protected]> 发送时间: 2018年7月12日 18:09
收件人: [email protected] 主题: About bitbake tasks
Hi,
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}”
require 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.
Thanks.
Quoted 9 lines · On Thursday, 12 July 2018 12:15:07 PM CEST [email protected] 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}”
Quoted 8 lines
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
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
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 <[email protected]> 发送时间: 2018年7月12日 18:51
收件人: [email protected]
抄送: [email protected] 主题: Re: [bitbake-devel] 转发: About bitbake tasks
Quoted 26 lines · On Thursday, 12 July 2018 12:15:07 PM CEST <mailto:[email protected]>…
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
Quoted 7 lines
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
Signature · 3 lines
Paul Eggleton Intel Open Source Technology Centre