All of lore.kernel.org
 help / color / mirror / Atom feed
* 转发: About bitbake tasks
       [not found] <008601d419c8$61a20a30$24e61e90$@xtev.cn>
@ 2018-07-12 10:15 ` developer_agl
  2018-07-12 10:50   ` Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: developer_agl @ 2018-07-12 10:15 UTC (permalink / raw)
  To: bitbake-devel

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

Hi,

 

Sorry, my fault, it’s 

 

inherit some_guys

 

 

 

 

 

 

Thanks.

 

发件人: developer_agl@xtev.cn <developer_agl@xtev.cn> 
发送时间: 2018年7月12日 18:09
收件人: bitbake-devel@lists.openembedded.org
主题: 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.

 


[-- Attachment #2: Type: text/html, Size: 5844 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 转发: About bitbake tasks
  2018-07-12 10:15 ` 转发: About bitbake tasks developer_agl
@ 2018-07-12 10:50   ` Paul Eggleton
  2018-07-13  1:45     ` 答复: " developer_agl
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2018-07-12 10:50 UTC (permalink / raw)
  To: developer_agl; +Cc: bitbake-devel

On Thursday, 12 July 2018 12:15:07 PM CEST 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* 答复: 转发: About bitbake tasks
  2018-07-12 10:50   ` Paul Eggleton
@ 2018-07-13  1:45     ` developer_agl
  0 siblings, 0 replies; 3+ messages in thread
From: developer_agl @ 2018-07-13  1:45 UTC (permalink / raw)
  To: 'Paul Eggleton'; +Cc: bitbake-devel


[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-13  1:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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 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.