summaryrefslogtreecommitdiffstats
path: root/meta/classes/libc-package.bbclass
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2019-02-18 08:08:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-19 16:14:57 +0000
commitb44bd9fc6b9f60ff0216e8205c7308b3bceccda8 (patch)
tree01ec0997abeb485c73b104ffa6f53bf53e8379ac /meta/classes/libc-package.bbclass
parent4c56903824e633077fc35af64307e886f869bcb5 (diff)
downloadpoky-b44bd9fc6b9f60ff0216e8205c7308b3bceccda8.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. (From OE-Core rev: bd2f9b2785779ef65c0c3664dae03b01ced59f6d) 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.bbclass5
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 () {
348 makefile = oe.path.join(d.getVar("WORKDIR"), "locale-tree", "Makefile") 348 makefile = oe.path.join(d.getVar("WORKDIR"), "locale-tree", "Makefile")
349 m = open(makefile, "w") 349 m = open(makefile, "w")
350 m.write("all: %s\n\n" % " ".join(commands.keys())) 350 m.write("all: %s\n\n" % " ".join(commands.keys()))
351 for cmd in commands: 351 total = len(commands)
352 for i, cmd in enumerate(commands):
352 m.write(cmd + ":\n") 353 m.write(cmd + ":\n")
354 m.write("\t@echo 'Progress %d/%d'\n" % (i, total))
353 m.write("\t" + commands[cmd] + "\n\n") 355 m.write("\t" + commands[cmd] + "\n\n")
354 m.close() 356 m.close()
355 d.setVar("EXTRA_OEMAKE", "-C %s ${PARALLEL_MAKE}" % (os.path.dirname(makefile))) 357 d.setVar("EXTRA_OEMAKE", "-C %s ${PARALLEL_MAKE}" % (os.path.dirname(makefile)))
358 d.setVarFlag("oe_runmake", "progress", "outof:Progress\s(\d+)/(\d+)")
356 bb.note("Executing binary locale generation makefile") 359 bb.note("Executing binary locale generation makefile")
357 bb.build.exec_func("oe_runmake", d) 360 bb.build.exec_func("oe_runmake", d)
358 bb.note("collecting binary locales from locale tree") 361 bb.note("collecting binary locales from locale tree")