[bitbake-devel] [PATCH v2] runqueue: add option to run all tasks in specific build target
Christopher Larson
kergoth at gmail.com
Wed Mar 8 03:09:49 UTC 2017
On Tue, Mar 7, 2017 at 7:57 PM, Matthew McClintock <msm-oss at mcclintock.net>
wrote:
> 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 at mcclintock.net>
> ---
> lib/bb/cookerdata.py | 1 +
> lib/bb/main.py | 3 +++
> lib/bb/runqueue.py | 14 ++++++++++++++
> 3 files changed, 18 insertions(+)
>
> diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
> index 53f4587..722d860 100644
> --- a/lib/bb/cookerdata.py
> +++ b/lib/bb/cookerdata.py
> @@ -148,6 +148,7 @@ class CookerConfiguration(object):
> self.writeeventlog = False
> self.server_only = False
> self.limited_deps = False
> + self.runall = None
>
> self.env = {}
>
> diff --git a/lib/bb/main.py b/lib/bb/main.py
> index 3ff43cf..bda3e0c 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 all tasks in build target that is
> specified.")
> +
This looks good (I’m sick of having to keep adding ‘all’ variants for
tasks), but I don’t think this argument help description is very clear.
--
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20170307/e8ae0faf/attachment-0002.html>
More information about the bitbake-devel
mailing list