mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
4c56903824
commit
b44bd9fc6b
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user