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.bbclass12
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index e15fa26ff6..192c77761e 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -34,11 +34,21 @@ def oe_import(d):
34python oe_import_eh () { 34python oe_import_eh () {
35 if isinstance(e, bb.event.ConfigParsed): 35 if isinstance(e, bb.event.ConfigParsed):
36 oe_import(e.data) 36 oe_import(e.data)
37 e.data.setVar("NATIVELSBSTRING", oe.lsb.distro_identifier()) 37 e.data.setVar("NATIVELSBSTRING", lsb_distro_identifier(e.data))
38} 38}
39 39
40addhandler oe_import_eh 40addhandler oe_import_eh
41 41
42def lsb_distro_identifier(d):
43 adjust = d.getVar('LSB_DISTRO_ADJUST', True)
44 adjust_func = None
45 if adjust:
46 try:
47 adjust_func = globals()[adjust]
48 except KeyError:
49 pass
50 return oe.lsb.distro_identifier(adjust_func)
51
42die() { 52die() {
43 bbfatal "$*" 53 bbfatal "$*"
44} 54}