All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] base.bbclass: Set the NATIVELSBSTRING variable to represent the distro we're running on
@ 2012-07-26 13:06 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-07-26 13:06 UTC (permalink / raw)
  To: openembedded-core

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>
---
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)





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-26 13:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 13:06 [PATCH] base.bbclass: Set the NATIVELSBSTRING variable to represent the distro we're running on Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.