summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-26 14:06:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-27 14:48:09 +0100
commit8556eb98be8bd9f02ee11a0d8a889c1895c86460 (patch)
treeae8e9126a4253d1770da98c6b519edc21fd341fb /meta
parent458bdfe1cc4872e901ea3c38f497bfea6cf4c8cb (diff)
downloadopenembedded-core-8556eb98be8bd9f02ee11a0d8a889c1895c86460.tar.gz
openembedded-core-8556eb98be8bd9f02ee11a0d8a889c1895c86460.tar.bz2
openembedded-core-8556eb98be8bd9f02ee11a0d8a889c1895c86460.zip
base.bbclass: Set the NATIVELSBSTRING variable to represent the distro we're running on
This can then be used by the sstate code to mark native and cross packages as being specific to a given distro. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/base.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index a57bd596d6..e15fa26ff6 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -10,7 +10,7 @@ inherit utility-tasks
inherit metadata_scm
inherit logging
-OE_IMPORTS += "os sys time oe.path oe.utils oe.data oe.packagegroup oe.sstatesig"
+OE_IMPORTS += "os sys time oe.path oe.utils oe.data oe.packagegroup oe.sstatesig oe.lsb"
OE_IMPORTS[type] = "list"
def oe_import(d):
@@ -34,6 +34,7 @@ def oe_import(d):
python oe_import_eh () {
if isinstance(e, bb.event.ConfigParsed):
oe_import(e.data)
+ e.data.setVar("NATIVELSBSTRING", oe.lsb.distro_identifier())
}
addhandler oe_import_eh