diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2019-02-18 08:08:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-19 15:59:09 +0000 |
commit | bd2f9b2785779ef65c0c3664dae03b01ced59f6d (patch) | |
tree | 2d65455a532bb6d36eb3486108943b64af78fb31 /meta/classes/libc-package.bbclass | |
parent | 0bfc4dd0a9acc305b78fe9d5c2a7fb9afe708684 (diff) | |
download | openembedded-core-contrib-bd2f9b2785779ef65c0c3664dae03b01ced59f6d.tar.gz |
libc-package.bbclass: Add a progress meter for the package task
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@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/libc-package.bbclass')
-rw-r--r-- | meta/classes/libc-package.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index cf0d8901e3..34c9151ae9 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass @@ -348,11 +348,14 @@ 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())) - for cmd in commands: + total = len(commands) + for i, cmd in enumerate(commands): m.write(cmd + ":\n") + m.write("\t@echo 'Progress %d/%d'\n" % (i, total)) m.write("\t" + commands[cmd] + "\n\n") m.close() d.setVar("EXTRA_OEMAKE", "-C %s ${PARALLEL_MAKE}" % (os.path.dirname(makefile))) + d.setVarFlag("oe_runmake", "progress", "outof:Progress\s(\d+)/(\d+)") bb.note("Executing binary locale generation makefile") bb.build.exec_func("oe_runmake", d) bb.note("collecting binary locales from locale tree") |