diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2019-07-01 13:22:23 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-03 17:00:57 +0100 |
commit | 4fd9ee4670293632cc0ca1e64b8833eb6014435d (patch) | |
tree | b810d79dadcf181a6b798c9574822e95b4a32146 /bitbake/lib/bb/cookerdata.py | |
parent | 97e19bf73b024bc691e56c315ec7eb378a8cf7dd (diff) | |
download | poky-4fd9ee4670293632cc0ca1e64b8833eb6014435d.tar.gz |
bitbake: bitbake: Add --skip-setscene option
Adds an option to skip _setscene only if they would normally be
executed, without ignoring sstate completely.
Previously, '--no-setscene' would allow a build that completely ignored
sstate and _setscene tasks, and '--setscene-only' would allow a build
that only ran _setscene tasks, but there was no option do a build that
would respect tasks previously restored from sstate and build everything
else. Now one can run:
bitbake --setscene-only IMAGE; bitbake --skip-setscene IMAGE
which is functionally equivalent to:
bitbake IMAGE
The indented use is to allow a build to complete successfully in the
presence of _setscene task failures by splitting apart the two phases
e.g.:
(bitbake -k --setscene-only IMAGE || true) && bitbake --skip-setscene IMAGE
(Bitbake rev: 813ba5b7c13b573a0b813b628a819bdbf0627540)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r-- | bitbake/lib/bb/cookerdata.py | 1 |
1 files changed, 1 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 |