From: Jason Wessel Date: Mon, 17 Sep 2012 22:43:17 +0000 (-0500) Subject: bitbake: runqueue: Add --no-setscene to skip all setscene tasks X-Git-Tag: rev_ivi_2015_02_04~15408 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50a5c10387de7d966ffb292a5b56ac055f7faa28;p=scm%2Fbb%2Ftizen-distro.git 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. (Bitbake rev: 440e479f3e248482c38c149643403c6907ac7034) Signed-off-by: Jason Wessel Signed-off-by: Richard Purdie --- diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index ed2ff06..8c46024 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -174,6 +174,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/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index b90b7e7..75797e2 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/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]