diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-21 21:47:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-23 09:29:49 +0100 |
commit | 20979854c52607212c16e0b01cf610c80d8b524e (patch) | |
tree | 8400e548e004e58ff6484292e70b265727d159bc | |
parent | 72d153a3a90d31d9f4e41d77da24e44ccb33c56e (diff) | |
download | openembedded-core-20979854c52607212c16e0b01cf610c80d8b524e.tar.gz openembedded-core-20979854c52607212c16e0b01cf610c80d8b524e.tar.bz2 openembedded-core-20979854c52607212c16e0b01cf610c80d8b524e.zip |
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@linuxfoundation.org>
-rw-r--r-- | meta/classes/package.bbclass | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 6a552d904e..5d8123f2f9 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -928,13 +928,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 @@ -1311,12 +1305,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 = {} |