summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/cookerdata.py1
-rwxr-xr-xbitbake/lib/bb/main.py5
-rw-r--r--bitbake/lib/bb/runqueue.py5
3 files changed, 11 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index e64c6c5271..144e803b4f 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -121,6 +121,7 @@ class CookerConfiguration(object):
121 self.profile = False 121 self.profile = False
122 self.nosetscene = False 122 self.nosetscene = False
123 self.setsceneonly = False 123 self.setsceneonly = False
124 self.skipsetscene = False
124 self.invalidate_stamp = False 125 self.invalidate_stamp = False
125 self.dump_signatures = [] 126 self.dump_signatures = []
126 self.dry_run = False 127 self.dry_run = False
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index 3071141b55..af2880f8d5 100755
--- a/bitbake/lib/bb/main.py
+++ b/bitbake/lib/bb/main.py
@@ -254,6 +254,11 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
254 help="Do not run any setscene tasks. sstate will be ignored and " 254 help="Do not run any setscene tasks. sstate will be ignored and "
255 "everything needed, built.") 255 "everything needed, built.")
256 256
257 parser.add_option("", "--skip-setscene", action="store_true",
258 dest="skipsetscene", default=False,
259 help="Skip setscene tasks if they would be executed. Tasks previously "
260 "restored from sstate will be kept, unlike --no-setscene")
261
257 parser.add_option("", "--setscene-only", action="store_true", 262 parser.add_option("", "--setscene-only", action="store_true",
258 dest="setsceneonly", default=False, 263 dest="setsceneonly", default=False,
259 help="Only run setscene tasks, don't run any real tasks.") 264 help="Only run setscene tasks, don't run any real tasks.")
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 58707db309..704e309b93 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -2488,6 +2488,11 @@ class RunQueueExecuteScenequeue(RunQueueExecute):
2488 self.task_skip(task) 2488 self.task_skip(task)
2489 return True 2489 return True
2490 2490
2491 if self.cooker.configuration.skipsetscene:
2492 logger.debug(2, 'No setscene tasks should be executed. Skipping %s', task)
2493 self.task_failoutright(task)
2494 return True
2495
2491 startevent = sceneQueueTaskStarted(task, self.stats, self.rq) 2496 startevent = sceneQueueTaskStarted(task, self.stats, self.rq)
2492 bb.event.fire(startevent, self.cfgData) 2497 bb.event.fire(startevent, self.cfgData)
2493 2498