diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2019-07-01 13:22:23 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-02 23:48:34 +0100 |
commit | 813ba5b7c13b573a0b813b628a819bdbf0627540 (patch) | |
tree | 21c128433481a8dc726e606f64c8e1c1a2121985 /lib/bb/main.py | |
parent | bb696636ef0c59f9e9640bb9460e7cce323cc785 (diff) | |
download | bitbake-813ba5b7c13b573a0b813b628a819bdbf0627540.tar.gz |
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
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/main.py')
-rwxr-xr-x | lib/bb/main.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bb/main.py b/lib/bb/main.py index 3071141b5..af2880f8d 100755 --- a/lib/bb/main.py +++ b/lib/bb/main.py @@ -254,6 +254,11 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): help="Do not run any setscene tasks. sstate will be ignored and " "everything needed, built.") + parser.add_option("", "--skip-setscene", action="store_true", + dest="skipsetscene", default=False, + help="Skip setscene tasks if they would be executed. Tasks previously " + "restored from sstate will be kept, unlike --no-setscene") + parser.add_option("", "--setscene-only", action="store_true", dest="setsceneonly", default=False, help="Only run setscene tasks, don't run any real tasks.") |