diff options
Diffstat (limited to 'meta/classes/base.bbclass')
-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) |