diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-12 16:31:57 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-14 12:55:47 +0100 |
commit | 53841ce521d44c0c9cca512675a12f81a491fe52 (patch) | |
tree | 98a2ca75581f4bb488e43087b6b9128017aac135 /meta/conf/distro/include/csl-versions.inc | |
parent | 98abb113a02a4504ae969dbaf9844ab6539dcdb8 (diff) | |
download | poky-53841ce521d44c0c9cca512675a12f81a491fe52.tar.gz |
classes/conf: Add eventmasks for event handlers
Now that bitbake supports masking events for event handlers, lets use
this so event handlers are only called for events they care about. This
lets us simplify the code indentation a bit at least as well as mildly
improving the event handling performance.
(From OE-Core rev: bff73743280f9eafebe4591f7368ead91a4eb74d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/distro/include/csl-versions.inc')
-rw-r--r-- | meta/conf/distro/include/csl-versions.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/conf/distro/include/csl-versions.inc b/meta/conf/distro/include/csl-versions.inc index e8f52d272d..f3b491cb16 100644 --- a/meta/conf/distro/include/csl-versions.inc +++ b/meta/conf/distro/include/csl-versions.inc | |||
@@ -88,8 +88,6 @@ def csl_get_gdb_version(d): | |||
88 | return first_line.split()[-1] | 88 | return first_line.split()[-1] |
89 | 89 | ||
90 | python csl_version_handler () { | 90 | python csl_version_handler () { |
91 | if not isinstance(e, bb.event.ConfigParsed): | ||
92 | return | ||
93 | d = e.data | 91 | d = e.data |
94 | ld = d.createCopy() | 92 | ld = d.createCopy() |
95 | ld.finalize() | 93 | ld.finalize() |
@@ -101,6 +99,7 @@ python csl_version_handler () { | |||
101 | d.setVar('CSL_VER_GDB', csl_get_gdb_version(ld)) | 99 | d.setVar('CSL_VER_GDB', csl_get_gdb_version(ld)) |
102 | } | 100 | } |
103 | addhandler csl_version_handler | 101 | addhandler csl_version_handler |
102 | csl_version_handler[eventmask] = "bb.event.ConfigParsed" | ||
104 | 103 | ||
105 | # Ensure that any variable which includes the --sysroot (CC, CXX, etc) also | 104 | # Ensure that any variable which includes the --sysroot (CC, CXX, etc) also |
106 | # depends on the toolchain version | 105 | # depends on the toolchain version |