mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
@@ -10,7 +10,7 @@ inherit utility-tasks
|
|||||||
inherit metadata_scm
|
inherit metadata_scm
|
||||||
inherit logging
|
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"
|
OE_IMPORTS[type] = "list"
|
||||||
|
|
||||||
def oe_import(d):
|
def oe_import(d):
|
||||||
@@ -34,6 +34,7 @@ def oe_import(d):
|
|||||||
python oe_import_eh () {
|
python oe_import_eh () {
|
||||||
if isinstance(e, bb.event.ConfigParsed):
|
if isinstance(e, bb.event.ConfigParsed):
|
||||||
oe_import(e.data)
|
oe_import(e.data)
|
||||||
|
e.data.setVar("NATIVELSBSTRING", oe.lsb.distro_identifier())
|
||||||
}
|
}
|
||||||
|
|
||||||
addhandler oe_import_eh
|
addhandler oe_import_eh
|
||||||
|
|||||||
Reference in New Issue
Block a user