summaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/openjdk-8-cross.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/openjdk/openjdk-8-cross.inc')
-rw-r--r--recipes-core/openjdk/openjdk-8-cross.inc21
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
9PACKAGECONFIG ??= "" 9PACKAGECONFIG ??= "repack"
10PACKAGECONFIG[x11] = "--with-x,,libx11 xproto libxt libxext libxrender" 10PACKAGECONFIG[x11] = "--with-x,,libx11 xproto libxt libxext libxrender"
11PACKAGECONFIG[cups] = "--with-cups,,cups" 11PACKAGECONFIG[cups] = "--with-cups,,cups"
12PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native" 12PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native"
@@ -20,6 +20,8 @@ export WANT_LLVM_RELEASE = "3.5.2"
20PACKAGECONFIG[zero] = "--with-jvm-variants=zero,,," 20PACKAGECONFIG[zero] = "--with-jvm-variants=zero,,,"
21PACKAGECONFIG[shark] = "--with-jvm-variants=zeroshark,,llvm3.5," 21PACKAGECONFIG[shark] = "--with-jvm-variants=zeroshark,,llvm3.5,"
22 22
23PACKAGECONFIG[repack] = ",,,"
24
23require openjdk-8-common.inc 25require openjdk-8-common.inc
24 26
25JAVA_HOME[unexport] = "1" 27JAVA_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
54do_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
52export MAKE_VERBOSE = "y" 71export MAKE_VERBOSE = "y"
53export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace STRIP_POLICY=no_strip" 72export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace STRIP_POLICY=no_strip"
54 73