Patchwork base.bbclass: Set the NATIVELSBSTRING variable to represent the distro we're running on

login
register
mail settings
Submitter Richard Purdie
Date July 26, 2012, 1:06 p.m.
Message ID <1343307992.29991.28.camel@ted>
Download mbox | patch
Permalink /patch/33125/
State New
Headers show

Comments

Richard Purdie - July 26, 2012, 1:06 p.m.
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>
---

Patch

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 5fdb96c..59768d0 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):
@@ -31,6 +31,8 @@  def oe_import(d):
         imported = __import__(toimport)
         inject(toimport.split(".", 1)[0], imported)
 
+    d.setVar("NATIVELSBSTRING", oe.lsb.distro_identifier())
+
 python oe_import_eh () {
     if isinstance(e, bb.event.ConfigParsed):
         oe_import(e.data)