summaryrefslogtreecommitdiffstats
path: root/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-08 18:25:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-08 23:03:04 +0000
commite4a2aafa1650a227a04d92a8a0b31efaed2c310e (patch)
tree47b7a786e159f12e8cf845cbbf982cd51e7ac495 /lib/bb/runqueue.py
parent4193e99adce8e88f12ac88d7578ad39575f7e346 (diff)
downloadopenembedded-core-contrib-e4a2aafa1650a227a04d92a8a0b31efaed2c310e.tar.gz
main/runqueue: Add --setscene-only option to bitbake
Its turning out that we really need a way to have bitbake just run the setscene tasks but not any real tasks, particularly for SDK operations. Add an option for this since its pretty straight forward. This allows various nasty workarounds in OE-Core to be removed. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r--lib/bb/runqueue.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index ee06f0e71e..da7059b17f 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1077,9 +1077,12 @@ class RunQueue:
retval = self.rqexe.execute()
if self.state is runQueueRunInit:
- logger.info("Executing RunQueue Tasks")
- self.rqexe = RunQueueExecuteTasks(self)
- self.state = runQueueRunning
+ if self.cooker.configuration.setsceneonly:
+ self.state = runQueueComplete
+ else:
+ logger.info("Executing RunQueue Tasks")
+ self.rqexe = RunQueueExecuteTasks(self)
+ self.state = runQueueRunning
if self.state is runQueueRunning:
retval = self.rqexe.execute()