summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass8
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)
37OE_IMPORTED := "${@oe_import(d)}" 37OE_IMPORTED := "${@oe_import(d)}"
38 38
39python oe_import_eh () {
40 e.data.setVar("NATIVELSBSTRING", lsb_distro_identifier(e.data))
41}
42
43addhandler oe_import_eh
44oe_import_eh[eventmask] = "bb.event.ConfigParsed"
45
46def lsb_distro_identifier(d): 39def 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
294base_eventhandler[eventmask] = "bb.event.ConfigParsed bb.event.BuildStarted" 287base_eventhandler[eventmask] = "bb.event.ConfigParsed bb.event.BuildStarted"
295python base_eventhandler() { 288python 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)