summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@jci.com>2018-08-13 11:09:29 +0100
committerRichard Leitner <richard.leitner@skidata.com>2018-08-13 14:11:45 +0200
commit42a7c64e0209cb7e2cf19f4d9e62105816144878 (patch)
treed9cf34ebcc6673f3538f0e56e8984a6fc6a411f9
parent08916616df0775c448840ddfbeb44a28a983e5d1 (diff)
downloadmeta-java-42a7c64e0209cb7e2cf19f4d9e62105816144878.tar.gz
openjdk-8: speed-up do_install() (pack200)
We run pack200 sequentially on all found archives, but there doesn't seem to be a reason to do so, the java_get_parallel_make() apperas to be related to compiling java itself, running multiple java applications (pack200) at the same time on the same machine should be possible, otherwise we have a big problem... Just run up to BB_NUMBER_THREADS pack200 processes at the same time to speed up the build. Signed-off-by: André Draszik <andre.draszik@jci.com> Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
-rw-r--r--recipes-core/openjdk/openjdk-8-cross.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc
index 03cab11..d0b2ec8 100644
--- a/recipes-core/openjdk/openjdk-8-cross.inc
+++ b/recipes-core/openjdk/openjdk-8-cross.inc
@@ -77,13 +77,13 @@ do_install_append() {
77 if ${@bb.utils.contains('PACKAGECONFIG', 'repack', 'true', 'false', d)} ; then 77 if ${@bb.utils.contains('PACKAGECONFIG', 'repack', 'true', 'false', d)} ; then
78 if [ -d ${D}${JDK_HOME} ] ; then 78 if [ -d ${D}${JDK_HOME} ] ; then
79 find ${D}${JDK_HOME} -name "*.jar" -print0 | \ 79 find ${D}${JDK_HOME} -name "*.jar" -print0 | \
80 xargs -0 -n1 -P ${@java_get_parallel_make(d)} sh -c ' \ 80 xargs -0 -n1 -P ${BB_NUMBER_THREADS} sh -c ' \
81 echo "Repacking" "$0" ; \ 81 echo "Repacking" "$0" ; \
82 pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"' 82 pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"'
83 fi 83 fi
84 if [ -d ${D}${JRE_HOME} ] ; then 84 if [ -d ${D}${JRE_HOME} ] ; then
85 find ${D}${JRE_HOME} -name "*.jar" -print0 | \ 85 find ${D}${JRE_HOME} -name "*.jar" -print0 | \
86 xargs -0 -n1 -P ${@java_get_parallel_make(d)} sh -c ' \ 86 xargs -0 -n1 -P ${BB_NUMBER_THREADS} sh -c ' \
87 echo "Repacking" "$0" ; \ 87 echo "Repacking" "$0" ; \
88 pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"' 88 pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"'
89 fi 89 fi