summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-30 09:35:23 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-30 18:02:35 +0100
commit1d52fa5269da078a0be23fcbee42e76c5328b919 (patch)
tree30accfaa7e1077316149a78d35bfd085ef222e8f
parent1c91f32f5e86c4c653b6f507bc32419a815ab40d (diff)
downloadpoky-1d52fa5269da078a0be23fcbee42e76c5328b919.tar.gz
bitbake/bitbake-sigdiff: Extend to handle dumping single state siginfo files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rwxr-xr-xbitbake/bin/bitbake-diffsigs5
-rw-r--r--bitbake/lib/bb/siggen.py24
2 files changed, 28 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs
index e5595cdf58..5eb77ce59d 100755
--- a/bitbake/bin/bitbake-diffsigs
+++ b/bitbake/bin/bitbake-diffsigs
@@ -6,4 +6,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), '
6 6
7import bb.siggen 7import bb.siggen
8 8
9bb.siggen.compare_sigfiles(sys.argv[1], sys.argv[2]) 9if len(sys.argv) > 2:
10 bb.siggen.compare_sigfiles(sys.argv[1], sys.argv[2])
11else:
12 bb.siggen.dump_sigfile(sys.argv[1])
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 0db28afc8d..066710c3bb 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -229,6 +229,30 @@ def compare_sigfiles(a, b):
229 if a_data['runtaskhashes'][dep] != b_data['runtaskhashes'][dep]: 229 if a_data['runtaskhashes'][dep] != b_data['runtaskhashes'][dep]:
230 print "Hash for dependent task %s changed from %s to %s" % (dep, a_data['runtaskhashes'][dep], b_data['runtaskhashes'][dep]) 230 print "Hash for dependent task %s changed from %s to %s" % (dep, a_data['runtaskhashes'][dep], b_data['runtaskhashes'][dep])
231 231
232def dump_sigfile(a):
233 p1 = pickle.Unpickler(file(a, "rb"))
234 a_data = p1.load()
235
236 print "basewhitelist: %s" % (a_data['basewhitelist'])
237
238 print "taskwhitelist: %s" % (a_data['taskwhitelist'])
239
240 print "Task dependencies: %s" % (sorted(a_data['taskdeps']))
241
242 print "basehash: %s" % (a_data['basehash'])
243
244 for dep in a_data['gendeps']:
245 print "List of dependencies for variable %s is %s" % (dep, a_data['gendeps'][dep])
246
247 for dep in a_data['varvals']:
248 print "Variable %s value is %s" % (dep, a_data['varvals'][dep])
249
250 if 'runtaskdeps' in a_data:
251 print "Tasks this task depends on: %s" % (a_data['runtaskdeps'])
252
253 if 'runtaskhashes' in a_data:
254 for dep in a_data['runtaskhashes']:
255 print "Hash for dependent task %s is %s" % (dep, a_data['runtaskhashes'][dep])
232 256
233 257
234 258