summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorChristopher Larson <kergoth@gmail.com>2015-04-03 15:03:05 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-15 18:12:40 +0100
commit5b7487567ca095db9c35982a58b88e6ffec67589 (patch)
tree6121381c3f2c1af646655578b33a69239e62b87b /meta/lib
parent66fc24c6cba9d4748be16db7ea02527681033e5e (diff)
downloadast2050-yocto-poky-5b7487567ca095db9c35982a58b88e6ffec67589.zip
ast2050-yocto-poky-5b7487567ca095db9c35982a58b88e6ffec67589.tar.gz
oe.sstatesig: align swspec handling with sstate.bbclass
The logic tries to remove the -native suffix from pn to handle this (though it doesn't succeed, as it doesn't assign the new pn to the variable), but we need to do more for the swspec tasks than just not set the extrapath, we also need to change from SSTATE_PKGSPEC to SSTATE_SWSPEC. Alter to correct the spec for these cases, and also add preconfigure to align with the current logic in sstate.bbclass, which includes that task as well in the list of tasks to adjust to use swspec. [YOCTO #7563] (From OE-Core master rev: c9105597763be4bf5bc0ec97cc999566d0f10678) (From OE-Core rev: 4f9cde9d8e700d10cdb1da82bf7489df5633c549) Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/sstatesig.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 62e75c2..9d6d7c4 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -206,9 +206,6 @@ def find_siginfo(pn, taskname, taskhashlist, d):
if key.startswith('virtual:native:'):
pn = pn + '-native'
- if taskname in ['do_fetch', 'do_unpack', 'do_patch', 'do_populate_lic']:
- pn.replace("-native", "")
-
filedates = {}
# First search in stamps dir
@@ -249,7 +246,10 @@ def find_siginfo(pn, taskname, taskhashlist, d):
localdata.setVar('PV', '*')
localdata.setVar('PR', '*')
localdata.setVar('BB_TASKHASH', hashval)
- if pn.endswith('-native') or "-cross-" in pn or "-crosssdk-" in pn:
+ swspec = localdata.getVar('SSTATE_SWSPEC', True)
+ if taskname in ['do_fetch', 'do_unpack', 'do_patch', 'do_populate_lic', 'do_preconfigure'] and swspec:
+ localdata.setVar('SSTATE_PKGSPEC', '${SSTATE_SWSPEC}')
+ elif pn.endswith('-native') or "-cross-" in pn or "-crosssdk-" in pn:
localdata.setVar('SSTATE_EXTRAPATH', "${NATIVELSBSTRING}/")
sstatename = taskname[3:]
filespec = '%s_%s.*.siginfo' % (localdata.getVar('SSTATE_PKG', True), sstatename)
OpenPOWER on IntegriCloud