diff options
author | Daniel McGregor <daniel.mcgregor@vecima.com> | 2016-04-20 14:09:52 -0600 |
---|---|---|
committer | Maxin B. John <maxin.john@intel.com> | 2016-04-26 11:51:40 +0300 |
commit | c59092ac054860c98ce2f4d35e05936ead03f479 (patch) | |
tree | 4bc531d93c843ab5c0950aaaee4c7e941e9f0a57 /recipes-core/openjdk/openjre-8_72b05.bb | |
parent | 1d125bfa18f7363bf9c9887434c441acbde10862 (diff) | |
download | meta-java-c59092ac054860c98ce2f4d35e05936ead03f479.tar.gz |
openjdk-8: make jar repacking optional
Repacking the runtime jar files takes a long time, and is only done
to save some space. Make it optional to speed up builds that don't
need it.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Diffstat (limited to 'recipes-core/openjdk/openjre-8_72b05.bb')
-rw-r--r-- | recipes-core/openjdk/openjre-8_72b05.bb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/recipes-core/openjdk/openjre-8_72b05.bb b/recipes-core/openjdk/openjre-8_72b05.bb index 6202498..6d29d12 100644 --- a/recipes-core/openjdk/openjre-8_72b05.bb +++ b/recipes-core/openjdk/openjre-8_72b05.bb | |||
@@ -11,14 +11,9 @@ PATCHES_URI_append = "\ | |||
11 | file://openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch;apply=no \ | 11 | file://openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch;apply=no \ |
12 | " | 12 | " |
13 | 13 | ||
14 | do_compile_append() { | ||
15 | find ${B}/images/j2re-image -name "*.jar" -print0 | \ | ||
16 | xargs -0 -n1 ${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/bin/pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug | ||
17 | } | ||
18 | |||
19 | do_install() { | 14 | do_install() { |
20 | rm -rf ${D}${JRE_HOME} | 15 | rm -rf ${D}${JRE_HOME} |
21 | mkdir -p ${D}${JRE_HOME} | 16 | mkdir -p ${D}${JRE_HOME} |
22 | cp -rp ${B}/images/j2re-image/* ${D}${JRE_HOME} | 17 | cp -rp ${B}/images/j2re-image/* ${D}${JRE_HOME} |
23 | chown -R root:root ${D}${JRE_HOME} | 18 | chown -R root:root ${D}${JRE_HOME} |
24 | install -m644 ${WORKDIR}/jvm.cfg ${D}${JRE_HOME}/lib/${JDK_ARCH}/ | 19 | install -m644 ${WORKDIR}/jvm.cfg ${D}${JRE_HOME}/lib/${JDK_ARCH}/ |