diff options
author | Bogdan Marinescu <bogdan.a.marinescu@intel.com> | 2013-05-31 14:19:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-14 12:52:58 +0100 |
commit | 5aa5fc470ef20a3eda761d7dd8899732cb799ca4 (patch) | |
tree | 14a59dd1e48548477dab05f6852b6bac713fc8ee /bitbake/lib/bb/cookerdata.py | |
parent | 542d6a87db0bab1210f2b5b51c0becdafe4d1b83 (diff) | |
download | poky-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/cookerdata.py')
-rw-r--r-- | bitbake/lib/bb/cookerdata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index 1bed455d16..4ddc2a5144 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
@@ -269,7 +269,7 @@ class CookerDataBuilder(object): | |||
269 | # Nomally we only register event handlers at the end of parsing .bb files | 269 | # Nomally we only register event handlers at the end of parsing .bb files |
270 | # We register any handlers we've found so far here... | 270 | # We register any handlers we've found so far here... |
271 | for var in data.getVar('__BBHANDLERS') or []: | 271 | for var in data.getVar('__BBHANDLERS') or []: |
272 | bb.event.register(var, data.getVar(var)) | 272 | bb.event.register(var, data.getVar(var), (data.getVarFlag(var, "eventmask", True) or "").split()) |
273 | 273 | ||
274 | if data.getVar("BB_WORKERCONTEXT", False) is None: | 274 | if data.getVar("BB_WORKERCONTEXT", False) is None: |
275 | bb.fetch.fetcher_init(data) | 275 | bb.fetch.fetcher_init(data) |