summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse
diff options
context:
space:
mode:
authorBogdan Marinescu <bogdan.a.marinescu@intel.com>2013-05-31 14:19:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-14 12:52:58 +0100
commit5aa5fc470ef20a3eda761d7dd8899732cb799ca4 (patch)
tree14a59dd1e48548477dab05f6852b6bac713fc8ee /bitbake/lib/bb/parse
parent542d6a87db0bab1210f2b5b51c0becdafe4d1b83 (diff)
downloadpoky-5aa5fc470ef20a3eda761d7dd8899732cb799ca4.tar.gz
bitbake: bitbake: Add event mask flag support
Add a flag to event handlers which lists the events a given handler wishes to process. By default event handlers recieve all events but this means we can stop running code in many cases if we know it doesn't want the event. This is part of the fix for YOCTO #3812, but implements filtering only for class event handlers; the other part (events filter for UIs) will be the subject of a different patch. (Bitbake rev: 074003a4e7530a72863b9c685fc5c31b0f08c039) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse')
-rw-r--r--bitbake/lib/bb/parse/ast.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index 713bef1cc2..6e7fd84b16 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -320,8 +320,7 @@ def finalize(fn, d, variant = None):
320 all_handlers = {} 320 all_handlers = {}
321 for var in d.getVar('__BBHANDLERS') or []: 321 for var in d.getVar('__BBHANDLERS') or []:
322 # try to add the handler 322 # try to add the handler
323 handler = d.getVar(var) 323 bb.event.register(var, d.getVar(var), (d.getVarFlag(var, "eventmask", True) or "").split())
324 bb.event.register(var, handler)
325 324
326 bb.event.fire(bb.event.RecipePreFinalise(fn), d) 325 bb.event.fire(bb.event.RecipePreFinalise(fn), d)
327 326