diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-26 14:06:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-28 09:20:52 +0100 |
commit | 10b5ea77b1e7c64d4ff37c6c348bf1a6d28ce54d (patch) | |
tree | b7891588c37848a1ab1f8e84660d10771a335ba3 /meta/classes/base.bbclass | |
parent | f295e29b2e4918886642f73db8cb9f0c1df598fd (diff) | |
download | poky-10b5ea77b1e7c64d4ff37c6c348bf1a6d28ce54d.tar.gz |
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.
(From OE-Core rev: 8556eb98be8bd9f02ee11a0d8a889c1895c86460)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 3 |
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 | |||
10 | inherit metadata_scm | 10 | inherit metadata_scm |
11 | inherit logging | 11 | inherit logging |
12 | 12 | ||
13 | OE_IMPORTS += "os sys time oe.path oe.utils oe.data oe.packagegroup oe.sstatesig" | 13 | OE_IMPORTS += "os sys time oe.path oe.utils oe.data oe.packagegroup oe.sstatesig oe.lsb" |
14 | OE_IMPORTS[type] = "list" | 14 | OE_IMPORTS[type] = "list" |
15 | 15 | ||
16 | def oe_import(d): | 16 | def oe_import(d): |
@@ -34,6 +34,7 @@ def oe_import(d): | |||
34 | python oe_import_eh () { | 34 | python 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 | } | 38 | } |
38 | 39 | ||
39 | addhandler oe_import_eh | 40 | addhandler oe_import_eh |