summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-18 13:49:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-18 17:08:04 +0000
commit88f01667707bd00b5f918950075e2235b3440b4b (patch)
treea09cb38a27cf13b82bd8651b7b100a75b57239f4 /meta/classes
parentebc7f3a238ee9577451533d02bb0f1d4690b41ac (diff)
downloadpoky-88f01667707bd00b5f918950075e2235b3440b4b.tar.gz
sstate: Write out siginfo files for non-sstate tasks
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. (From OE-Core rev: 04d108cd16f5ad8f92a62ea537d1330fee712470) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sstate.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 517c1001d2..678d5e3f44 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -735,3 +735,14 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
735 return False 735 return False
736 return True 736 return True
737 737
738addhandler sstate_eventhandler
739sstate_eventhandler[eventmask] = "bb.build.TaskSucceeded"
740python sstate_eventhandler() {
741 d = e.data
742 # When we write an sstate package we rewrite the SSTATE_PKG
743 spkg = d.getVar('SSTATE_PKG', True)
744 if not spkg.endswith(".tgz"):
745 taskname = d.getVar("BB_RUNTASK", True)[3:]
746 bb.siggen.dump_this_task(d.getVar('SSTATE_PKG', True) + '_' + taskname + ".tgz" ".siginfo", d)
747}
748