* [PATCH] sstate: Write out siginfo files for non-sstate tasks
@ 2013-12-18 13:49 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-12-18 13:49 UTC (permalink / raw)
To: openembedded-core
Currently siginfo files are only written for sstate tasks. In order to be truly
debuggable, its helpful to have the siginfo for intermediate tasks. This
adds that functionality so the extra siginfo files are written out too.
This will be used to add better sstate debugging in future changes.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 517c100..678d5e3 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -735,3 +735,14 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
return False
return True
+addhandler sstate_eventhandler
+sstate_eventhandler[eventmask] = "bb.build.TaskSucceeded"
+python sstate_eventhandler() {
+ d = e.data
+ # When we write an sstate package we rewrite the SSTATE_PKG
+ spkg = d.getVar('SSTATE_PKG', True)
+ if not spkg.endswith(".tgz"):
+ taskname = d.getVar("BB_RUNTASK", True)[3:]
+ bb.siggen.dump_this_task(d.getVar('SSTATE_PKG', True) + '_' + taskname + ".tgz" ".siginfo", d)
+}
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-18 13:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 13:49 [PATCH] sstate: Write out siginfo files for non-sstate tasks Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox