diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-08 18:25:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-11 23:26:32 +0000 |
commit | 46731daa5f74a61dc6c48d9109b4ad4efb835705 (patch) | |
tree | 86f7e221be89ed7a5bae377676f0b6cd4ecac9c4 /bitbake/lib | |
parent | 34f8db9b44fb65e0770886276377cba55af8756c (diff) | |
download | poky-46731daa5f74a61dc6c48d9109b4ad4efb835705.tar.gz |
bitbake: 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.
(Bitbake rev: e4a2aafa1650a227a04d92a8a0b31efaed2c310e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/cookerdata.py | 1 | ||||
-rwxr-xr-x | bitbake/lib/bb/main.py | 3 | ||||
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 9 |
3 files changed, 10 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index b47e7f3230..9f4067404a 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
@@ -137,6 +137,7 @@ class CookerConfiguration(object): | |||
137 | self.force = False | 137 | self.force = False |
138 | self.profile = False | 138 | self.profile = False |
139 | self.nosetscene = False | 139 | self.nosetscene = False |
140 | self.setsceneonly = False | ||
140 | self.invalidate_stamp = False | 141 | self.invalidate_stamp = False |
141 | self.dump_signatures = [] | 142 | self.dump_signatures = [] |
142 | self.dry_run = False | 143 | self.dry_run = False |
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index c0ae38ab6d..bf59793db5 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py | |||
@@ -219,6 +219,9 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): | |||
219 | parser.add_option("", "--no-setscene", help = "Do not run any setscene tasks. sstate will be ignored and everything needed, built.", | 219 | parser.add_option("", "--no-setscene", help = "Do not run any setscene tasks. sstate will be ignored and everything needed, built.", |
220 | action = "store_true", dest = "nosetscene", default = False) | 220 | action = "store_true", dest = "nosetscene", default = False) |
221 | 221 | ||
222 | parser.add_option("", "--setscene-only", help = "Only run setscene tasks, don't run any real tasks.", | ||
223 | action = "store_true", dest = "setsceneonly", default = False) | ||
224 | |||
222 | parser.add_option("", "--remote-server", help = "Connect to the specified server.", | 225 | parser.add_option("", "--remote-server", help = "Connect to the specified server.", |
223 | action = "store", dest = "remote_server", default = False) | 226 | action = "store", dest = "remote_server", default = False) |
224 | 227 | ||
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index ee06f0e71e..da7059b17f 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1077,9 +1077,12 @@ class RunQueue: | |||
1077 | retval = self.rqexe.execute() | 1077 | retval = self.rqexe.execute() |
1078 | 1078 | ||
1079 | if self.state is runQueueRunInit: | 1079 | if self.state is runQueueRunInit: |
1080 | logger.info("Executing RunQueue Tasks") | 1080 | if self.cooker.configuration.setsceneonly: |
1081 | self.rqexe = RunQueueExecuteTasks(self) | 1081 | self.state = runQueueComplete |
1082 | self.state = runQueueRunning | 1082 | else: |
1083 | logger.info("Executing RunQueue Tasks") | ||
1084 | self.rqexe = RunQueueExecuteTasks(self) | ||
1085 | self.state = runQueueRunning | ||
1083 | 1086 | ||
1084 | if self.state is runQueueRunning: | 1087 | if self.state is runQueueRunning: |
1085 | retval = self.rqexe.execute() | 1088 | retval = self.rqexe.execute() |