Skip to contentSkip to conversation

bitbake user manual: shouldn't "Events" mention "[eventmask]"?

DISCUSSION Robert P. J. Day 3 participants 4 messages Aug 11, 2014 – Aug 13, 2014

lore
Share & tools
lore
#0 lore raw

reading up on events in BB manual and section 3.7, "Events", talks
of defining event handlers, but claims:

"This event handler gets called every time an event is triggered."

but don't you have to associate an event handler with one or more events using the "[eventmask]" flag? that seems like a fairly significant omission from that section. or am i just misunderstanding how events work?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 11 lines · Robert P. J. Day

reading up on events in BB manual and section 3.7, "Events", talks
of defining event handlers, but claims:

"This event handler gets called every time an event is triggered."

but don't you have to associate an event handler with one or more events using the "[eventmask]" flag? that seems like a fairly significant omission from that section. or am i just misunderstanding how events work?

eventmask is a fairly recent addition. If eventmask is undefined, the handler is called for all events, and its left to the event handler to make sure it's only doing its logic for the right events (e.g. call isinstance() on 'e' to check what event it is). The docs likely were never updated to include it.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw
Quoted 13 lines · Christopher Larson

On Mon, Aug 11, 2014 at 5:08 AM, Robert P. J. Day <[email protected]> wrote:

  reading up on events in BB manual and section 3.7, "Events", talks of defining event handlers, but claims:

"This event handler gets called every time an event is triggered."

but don't you have to associate an event handler with one or more events using the "[eventmask]" flag? that seems like a fairly significant omission from that section. or am i just misunderstanding how events work?

Quoted 5 lines

eventmask is a fairly recent addition. If eventmask is undefined, the handler is called for all events, and its left to the event handler to make sure it's only doing its logic for the right events (e.g. call isinstance() on 'e' to check what event it is). The docs likely were never updated to include it.

yeah, that's probably something that should be in the bitbake manual
somewhere. :-)

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#3 lore raw

Hi,

I updated the BB manual here to account for this flag. Check it out and let me know if this adequately covers this issue:

http://www.yoctoproject.org/docs/1.7/bitbake-user-manual/bitbake-user-manual.html#events

Thanks,
Scott

Quoted 47 lines

-----Original Message-----
From: [email protected] [mailto:bitbake- [email protected]] On Behalf Of Robert P. J. Day
Sent: Monday, August 11, 2014 10:27 AM
To: Christopher Larson
Cc: BitBake developer list
Subject: Re: [bitbake-devel] bitbake user manual: shouldn't "Events" mention "[eventmask]"?

Quoted 2 lines · Christopher Larson

On Mon, Aug 11, 2014 at 5:08 AM, Robert P. J. Day <[email protected]>

Quoted 11 lines · wrote:

  reading up on events in BB manual and section 3.7, "Events", talks of defining event handlers, but claims:

"This event handler gets called every time an event is triggered."

but don't you have to associate an event handler with one or more events using the "[eventmask]" flag? that seems like a fairly significant omission from that section. or am i just misunderstanding how events work?

Quoted 5 lines

eventmask is a fairly recent addition. If eventmask is undefined, the handler is called for all events, and its left to the event handler to make sure it's only doing its logic for the right events (e.g. call isinstance() on 'e' to check what event it is). The docs likely were never updated to include it.

yeah, that's probably something that should be in the bitbake manual
somewhere. :-)

rday

--

===========================================================
=============
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday

===========================================================
=============