diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-26 09:31:09 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-27 09:42:07 +0000 |
commit | dc29d2abd233bc00983dad1b233e1651b1fbfaae (patch) | |
tree | 1cc5b27c635c8f1de5500e90cf87ebc915741f87 /meta | |
parent | b015b64a9dfa3c8891f2862628663f8a51eb4029 (diff) | |
download | poky-dc29d2abd233bc00983dad1b233e1651b1fbfaae.tar.gz |
base.bbclass: Merge two ConfigParsed event handlers
There were two ConfigParsed event handlers in base.bbclass, this merges
them together for small efficiency wins.
(From OE-Core rev: ff919ed132b543f70e9635be7a31f799aafcf8d6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/base.bbclass | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 7c39db9157..f4f5321ac8 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -36,13 +36,6 @@ def oe_import(d): | |||
36 | # We need the oe module name space early (before INHERITs get added) | 36 | # We need the oe module name space early (before INHERITs get added) |
37 | OE_IMPORTED := "${@oe_import(d)}" | 37 | OE_IMPORTED := "${@oe_import(d)}" |
38 | 38 | ||
39 | python oe_import_eh () { | ||
40 | e.data.setVar("NATIVELSBSTRING", lsb_distro_identifier(e.data)) | ||
41 | } | ||
42 | |||
43 | addhandler oe_import_eh | ||
44 | oe_import_eh[eventmask] = "bb.event.ConfigParsed" | ||
45 | |||
46 | def lsb_distro_identifier(d): | 39 | def lsb_distro_identifier(d): |
47 | adjust = d.getVar('LSB_DISTRO_ADJUST', True) | 40 | adjust = d.getVar('LSB_DISTRO_ADJUST', True) |
48 | adjust_func = None | 41 | adjust_func = None |
@@ -294,6 +287,7 @@ addhandler base_eventhandler | |||
294 | base_eventhandler[eventmask] = "bb.event.ConfigParsed bb.event.BuildStarted" | 287 | base_eventhandler[eventmask] = "bb.event.ConfigParsed bb.event.BuildStarted" |
295 | python base_eventhandler() { | 288 | python base_eventhandler() { |
296 | if isinstance(e, bb.event.ConfigParsed): | 289 | if isinstance(e, bb.event.ConfigParsed): |
290 | e.data.setVar("NATIVELSBSTRING", lsb_distro_identifier(e.data)) | ||
297 | e.data.setVar('BB_VERSION', bb.__version__) | 291 | e.data.setVar('BB_VERSION', bb.__version__) |
298 | pkgarch_mapping(e.data) | 292 | pkgarch_mapping(e.data) |
299 | preferred_ml_updates(e.data) | 293 | preferred_ml_updates(e.data) |