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

Christopher Larson clarson at kergoth.com
Mon Aug 11 15:06:24 UTC 2014


On Mon, Aug 11, 2014 at 5:08 AM, Robert P. J. Day <rpjday at crashcourse.ca>
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?
>

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.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20140811/9b6e74aa/attachment-0002.html>


More information about the bitbake-devel mailing list