Skip to contentSkip to conversation

runqueue/siggen: Pass in commandline options to dump_sigs()

PATCH New Richard Purdie 1 participant 1 message Mar 26, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runqueue/siggen: Pass in commandline options to dump_sigs()

This allows the commandline options to be processed in the dump signature code.

---

bitbake/lib/bb/runqueue.py +3 -3
index 423b03c..42b6c48 100644
@@ -1040,7 +1040,7 @@ class RunQueue:
             if dump:
                 if 'printdiff' in dump:
                     invalidtasks = self.print_diffscenetasks()
-                self.dump_signatures()
+                self.dump_signatures(dump)
                 if 'printdiff' in dump:
                     self.write_diffscenetasks(invalidtasks)
                 self.state = runQueueComplete
@@ -1113,7 +1113,7 @@ class RunQueue:
         else:
             self.rqexe.finish()
 
-    def dump_signatures(self):
+    def dump_signatures(self, options):
         done = set()
         bb.note("Reparsing files to collect dependency data")
         for task in range(len(self.rqdata.runq_fnid)):
@@ -1122,7 +1122,7 @@ class RunQueue:
                 the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.collection.get_file_appends(fn), self.cooker.data)
                 done.add(self.rqdata.runq_fnid[task])
 
-        bb.parse.siggen.dump_sigs(self.rqdata.dataCache)
+        bb.parse.siggen.dump_sigs(self.rqdata.dataCache, options)
 
         return
 
bitbake/lib/bb/siggen.py +2 -2
index a54357a..a6d2859 100644
@@ -59,7 +59,7 @@ class SignatureGenerator(object):
     def invalidate_task(self, task, d, fn):
         bb.build.del_stamp(task, d, fn)
 
-    def dump_sigs(self, dataCache):
+    def dump_sigs(self, dataCache, options):
         return
 
 class SignatureGeneratorBasic(SignatureGenerator):
@@ -251,7 +251,7 @@ class SignatureGeneratorBasic(SignatureGenerator):
                 pass
             raise err
 
-    def dump_sigs(self, dataCache):
+    def dump_sigs(self, dataCache, options):
         for fn in self.taskdeps:
             for task in self.taskdeps[fn]:
                 k = fn + "." + task