[OE-core] [PATCH 3/3] libc-package.bbclass: Add a progress meter for the package task

Christopher Larson kergoth at gmail.com
Mon Feb 18 01:21:13 UTC 2019


On Sun, Feb 17, 2019 at 7:51 AM Peter Kjellerstedt <
peter.kjellerstedt at axis.com> wrote:

> The package task for glibc-locale takes a very long time to execute,
> especially if using qemu. In that case, a progress meter helps a lot to
> show the progress of the task.
>
> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
> ---
>  meta/classes/libc-package.bbclass | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/meta/classes/libc-package.bbclass
> b/meta/classes/libc-package.bbclass
> index ee598905b0..f1c0545c67 100644
> --- a/meta/classes/libc-package.bbclass
> +++ b/meta/classes/libc-package.bbclass
> @@ -348,11 +348,16 @@ python package_do_split_gconvs () {
>          makefile = oe.path.join(d.getVar("WORKDIR"), "locale-tree",
> "Makefile")
>          m = open(makefile, "w")
>          m.write("all: %s\n\n" % " ".join(commands.keys()))
> +        i = 1
> +        total = len(commands)
>          for cmd in commands:
>

for i, cmd in enumerate(commands):
-- 
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/openembedded-core/attachments/20190217/c08e56fd/attachment.html>


More information about the Openembedded-core mailing list