Nice, then I’ve learnt something new today. :)

//Peter

From: Christopher Larson <[email protected]>
Sent: den 18 februari 2019 02:21
To: Peter Kjellerstedt <[email protected]>
Cc: Patches and discussions about the oe-core layer 
<[email protected]>
Subject: Re: [OE-core] [PATCH 3/3] libc-package.bbclass: Add a progress meter 
for the package task



On Sun, Feb 17, 2019 at 7:51 AM Peter Kjellerstedt 
<[email protected]<mailto:[email protected]>> 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 
<[email protected]<mailto:[email protected]>>
---
 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
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to