summaryrefslogtreecommitdiffstats
path: root/lib/bb/main.py
diff options
context:
space:
mode:
authorMatthew McClintock <msm-oss@mcclintock.net>2017-03-08 14:24:38 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-11 16:16:57 +0000
commit7c0fa6ba66cdb956b37d94055307cde857633df9 (patch)
treebd0642debd85f19fb256a116bd5be7c2065d12c5 /lib/bb/main.py
parente455e40ba309837903b9e2d5f1dff55cce1135de (diff)
downloadbitbake-contrib-7c0fa6ba66cdb956b37d94055307cde857633df9.tar.gz
runqueue: add option to run all tasks in specific build target
For example: $ bitbake core-image-minimal --runall unpack ... NOTE: Tasks Summary: Attempted 326 tasks of which 88 didn't need to be rerun and all succeeded. $ bitbake core-image-minimal --runall patch NOTE: Tasks Summary: Attempted 453 tasks of which 332 didn't need to be rerun and all succeeded. This can replace fetchall as well: $ bitbake core-image-minimal --runall fetch NOTE: Tasks Summary: Attempted 135 tasks of which 119 didn't need to be rerun and all succeeded. Signed-off-by: Matthew McClintock <msm-oss@mcclintock.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/main.py')
-rwxr-xr-xlib/bb/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/main.py b/lib/bb/main.py
index 3ff43cf9a..b3cd2cfe2 100755
--- a/lib/bb/main.py
+++ b/lib/bb/main.py
@@ -287,6 +287,9 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
help="Writes the event log of the build to a bitbake event json file. "
"Use '' (empty string) to assign the name automatically.")
+ parser.add_option("", "--runall", action="store", dest="runall",
+ help="Run the specified task for all build targets and their dependencies.")
+
options, targets = parser.parse_args(argv)
if options.quiet and options.verbose: