* [PATCH] sstate.bbclass: Remove hardcoded task mappings
@ 2012-08-31 0:27 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-08-31 0:27 UTC (permalink / raw)
To: openembedded-core
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>
---
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 6762e32..e4b70b3 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -519,16 +519,9 @@ 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 task in range(len(sq_fn)):
spec = sq_hashfn[task].split(" ")[1]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-31 8:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-31 0:27 [PATCH] sstate.bbclass: Remove hardcoded task mappings Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox