* [PATCH] bitbake, runqueue: Add --no-setscene to skip all setscene tasks
@ 2012-09-17 22:43 Jason Wessel
2012-09-24 14:32 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Jason Wessel @ 2012-09-17 22:43 UTC (permalink / raw)
To: bitbake-devel
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)
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
---
bin/bitbake | 2 ++
lib/bb/runqueue.py | 13 +++++++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/bin/bitbake b/bin/bitbake
index c000d98..37c1045 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -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)
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index bc2eb87..cd67607 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -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]
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-24 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-17 22:43 [PATCH] bitbake, runqueue: Add --no-setscene to skip all setscene tasks Jason Wessel
2012-09-24 14:32 ` Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.