diff options
Diffstat (limited to 'recipes-core/openjdk/openjdk-8-cross.inc')
-rw-r--r-- | recipes-core/openjdk/openjdk-8-cross.inc | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc index 63572ad..c68ac42 100644 --- a/recipes-core/openjdk/openjdk-8-cross.inc +++ b/recipes-core/openjdk/openjdk-8-cross.inc | |||
@@ -6,7 +6,7 @@ DEPENDS = "\ | |||
6 | jpeg libpng krb5 libffi fontconfig freetype \ | 6 | jpeg libpng krb5 libffi fontconfig freetype \ |
7 | " | 7 | " |
8 | 8 | ||
9 | PACKAGECONFIG ??= "" | 9 | PACKAGECONFIG ??= "repack" |
10 | PACKAGECONFIG[x11] = "--with-x,,libx11 xproto libxt libxext libxrender" | 10 | PACKAGECONFIG[x11] = "--with-x,,libx11 xproto libxt libxext libxrender" |
11 | PACKAGECONFIG[cups] = "--with-cups,,cups" | 11 | PACKAGECONFIG[cups] = "--with-cups,,cups" |
12 | PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native" | 12 | PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native" |
@@ -20,6 +20,8 @@ export WANT_LLVM_RELEASE = "3.5.2" | |||
20 | PACKAGECONFIG[zero] = "--with-jvm-variants=zero,,," | 20 | PACKAGECONFIG[zero] = "--with-jvm-variants=zero,,," |
21 | PACKAGECONFIG[shark] = "--with-jvm-variants=zeroshark,,llvm3.5," | 21 | PACKAGECONFIG[shark] = "--with-jvm-variants=zeroshark,,llvm3.5," |
22 | 22 | ||
23 | PACKAGECONFIG[repack] = ",,," | ||
24 | |||
23 | require openjdk-8-common.inc | 25 | require openjdk-8-common.inc |
24 | 26 | ||
25 | JAVA_HOME[unexport] = "1" | 27 | JAVA_HOME[unexport] = "1" |
@@ -49,6 +51,23 @@ do_configure_append() { | |||
49 | sed -i -e 's,POST_STRIP_CMD:=.*,POST_STRIP_CMD:=,g' ${B}/spec.gmk | 51 | sed -i -e 's,POST_STRIP_CMD:=.*,POST_STRIP_CMD:=,g' ${B}/spec.gmk |
50 | } | 52 | } |
51 | 53 | ||
54 | do_install_append() { | ||
55 | if ${@bb.utils.contains('PACKAGECONFIG', 'repack', 'true', 'false', d)} ; then | ||
56 | if [ -d ${D}${JDK_HOME} ] ; then | ||
57 | find ${D}${JDK_HOME} -name "*.jar" -print0 | \ | ||
58 | xargs -0 -n1 -P ${@get_jdk8_native_jobs(d)} sh -c ' \ | ||
59 | echo "Repacking" "$0" ; \ | ||
60 | pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"' | ||
61 | fi | ||
62 | if [ -d ${D}${JRE_HOME} ] ; then | ||
63 | find ${D}${JRE_HOME} -name "*.jar" -print0 | \ | ||
64 | xargs -0 -n1 -P ${@get_jdk8_native_jobs(d)} sh -c ' \ | ||
65 | echo "Repacking" "$0" ; \ | ||
66 | pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug "$0"' | ||
67 | fi | ||
68 | fi | ||
69 | } | ||
70 | |||
52 | export MAKE_VERBOSE = "y" | 71 | export MAKE_VERBOSE = "y" |
53 | export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace STRIP_POLICY=no_strip" | 72 | export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace STRIP_POLICY=no_strip" |
54 | 73 | ||