[oe-commits] Richard Purdie : package.bbclass: Fixup for using common function

git at git.openembedded.org git at git.openembedded.org
Fri Aug 22 17:35:29 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 66ff9793c544135e500af888060772267acd75ed
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=66ff9793c544135e500af888060772267acd75ed

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Thu Aug 21 21:47:50 2014 +0100

package.bbclass: Fixup for using common function

We may as well use the common function for this rather than
duplicating the code.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/package.bbclass | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 23832b1..0ff5370 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -931,13 +931,7 @@ python split_and_strip_files () {
         for f in kernmods:
             sfiles.append((f, 16, strip))
 
-
-        import multiprocessing
-        nproc = multiprocessing.cpu_count()
-        pool = bb.utils.multiprocessingpool(nproc)
-        processed = list(pool.imap(oe.package.runstrip, sfiles))
-        pool.close()
-        pool.join()
+        oe.utils.multiprocess_exec(sfiles, oe.package.runstrip)
 
     #
     # End of strip
@@ -1314,12 +1308,7 @@ python package_do_filedeps() {
         for files in chunks(pkgfiles[pkg], 100):
             pkglist.append((pkg, files, rpmdeps, pkgdest))
 
-    import multiprocessing
-    nproc = multiprocessing.cpu_count()
-    pool =  bb.utils.multiprocessingpool(nproc)
-    processed = list(pool.imap(oe.package.filedeprunner, pkglist))
-    pool.close()
-    pool.join()
+    processed = oe.utils.multiprocess_exec( pkglist, oe.package.filedeprunner)
 
     provides_files = {}
     requires_files = {}



More information about the Openembedded-commits mailing list