Skip to contentSkip to conversation

bitbake, runqueue: Add --no-setscene to skip all setscene tasks

PATCH Applied Jason Wessel 2 participants 2 messages Sep 17, 2012 – Sep 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake, runqueue: Add --no-setscene to skip all setscene tasks

Mainly intended for the purpose of debugging or forcing builds from source, the --no-setscene will prevent any setscene tasks from running.

(LOCAL REV: NOT UPSTREAM)

---
 bin/bitbake        |    2 ++
 lib/bb/runqueue.py |   13 +++++++------
 2 files changed, 9 insertions(+), 6 deletions(-)
bin/bitbake +2 -0
index c000d98..37c1045 100755
@@ -182,6 +182,8 @@ Default BBFILES are the .bb files in the current directory.""")
 
     parser.add_option("-B", "--bind", help = "The name/address for the bitbake server to bind to",
                action = "store", dest = "bind", default = False)
+    parser.add_option("", "--no-setscene", help = "Do not run any setscene tasks, forces builds",
+               action = "store_true", dest = "nosetscene", default = False)
     options, args = parser.parse_args(sys.argv)
 
     configuration = BBConfiguration(options)
lib/bb/runqueue.py +7 -6
index bc2eb87..cd67607 100644
@@ -692,13 +692,14 @@ class RunQueueData:
             stampfnwhitelist.append(fn)
         self.stampfnwhitelist = stampfnwhitelist
 
-        # Interate over the task list looking for tasks with a 'setscene' function
+        # Iterate over the task list looking for tasks with a 'setscene' function
         self.runq_setscene = []
-        for task in range(len(self.runq_fnid)):
-            setscene = taskData.gettask_id(self.taskData.fn_index[self.runq_fnid[task]], self.runq_task[task] + "_setscene", False)
-            if not setscene:
-                continue
-            self.runq_setscene.append(task)
+        if not self.cooker.configuration.nosetscene:
+            for task in range(len(self.runq_fnid)):
+                setscene = taskData.gettask_id(self.taskData.fn_index[self.runq_fnid[task]], self.runq_task[task] + "_setscene", False)
+                if not setscene:
+                    continue
+                self.runq_setscene.append(task)
 
         def invalidate_task(fn, taskname, error_nostamp):
             taskdep = self.dataCache.task_deps[fn]
Signature · 1 line
1.7.1
#1 lore raw
Quoted 11 lines · Jason Wessel

Mainly intended for the purpose of debugging or forcing builds from source, the --no-setscene will prevent any setscene tasks from running.

(LOCAL REV: NOT UPSTREAM)

---
 bin/bitbake        |    2 ++
 lib/bb/runqueue.py |   13 +++++++------
 2 files changed, 9 insertions(+), 6 deletions(-)

Merged to master, thanks.

Richard