aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-30 17:10:03 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-31 10:23:25 -0700
commit2df064ad46c1510fa8a401c22db4ab3278c3c807 (patch)
tree0427ec380bc0d0773630c9793ceeb483354576fe /meta/classes/sstate.bbclass
parent38234f2e276356b1d77a87ceabc486107e336d19 (diff)
downloadopenembedded-core-2df064ad46c1510fa8a401c22db4ab3278c3c807.tar.gz
sstate.bbclass: Remove hardcoded task mappings
I've not idea why this got left in but as per the comment, it needs fixing and we shouldn't have hardcoded mappings like this. Lets remove it and dynamically generate the data instead. [YOCTO #3039] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass18
1 files changed, 8 insertions, 10 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 003763b412..9a168d460d 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -561,21 +561,19 @@ sstate_unpack_package () {
tar -xvzf ${SSTATE_PKG}
}
+EXTRASSTATEMAPS = "do_deploy:deploy"
+
BB_HASHCHECK_FUNCTION = "sstate_checkhashes"
def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d):
ret = []
- # This needs to go away, FIXME
- mapping = {
- "do_populate_sysroot" : "populate-sysroot",
- "do_populate_lic" : "populate-lic",
- "do_package_write_ipk" : "deploy-ipk",
- "do_package_write_deb" : "deploy-deb",
- "do_package_write_rpm" : "deploy-rpm",
- "do_package" : "package",
- "do_deploy" : "deploy",
- }
+ mapping = {}
+ for t in d.getVar("SSTATETASKS", True).split():
+ mapping[t] = d.getVarFlag(t, "sstate-name", True)
+ for extra in d.getVar("EXTRASSTATEMAPS", True).split():
+ e = extra.split(":")
+ mapping[e[0]] = e[1]
for task in range(len(sq_fn)):
spec = sq_hashfn[task].split(" ")[1]