]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: Set the NATIVELSBSTRING variable to represent the distro we're running on
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2012 13:06:32 +0000 (14:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Jul 2012 13:48:09 +0000 (14:48 +0100)
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>
meta/classes/base.bbclass

index a57bd596d618566818d7165cef8b06c9f7d80a97..e15fa26ff6a118a646392a7b1c1a44ba92648b43 100644 (file)
@@ -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