aboutsummaryrefslogtreecommitdiff
path: root/meta-aarch64
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2013-11-19 11:04:34 +0000
committerAndrew McDermott <andrew.mcdermott@linaro.org>2013-11-19 13:09:26 +0000
commit843ab93ba1c4a7d31b8fd4d992c8439693db04cd (patch)
tree48e1e37ef927a3dff8531d46cf35de3adc161071 /meta-aarch64
parent5278027899b84396d1411f56c5929a5685ed5e17 (diff)
leg-java: openjdk-8: remove .debuginfo files from installed image
Although the build no longer produces .diz files we still have .debuginfo files which amount to an extra ~400MB when the package is installed. This commit, and the complementary commit a688b769294bce171ab53f76936ebbd0ceeb2587, reduces the installed image size from ~600MB to ~260MB. This is a similar size to the java-8-oracle package on Ubuntu 12.04 (x86_64). Change-Id: I9943d01ce4233393943e0a015555a2c304d98293 Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
Diffstat (limited to 'meta-aarch64')
-rw-r--r--meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc b/meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc
index acc5e22c..a3ea3e07 100644
--- a/meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc
+++ b/meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc
@@ -67,6 +67,9 @@ do_install() {
cp -R ${S}/build/${BUILD_DIR}/j2sdk-image/* ${D}${JDK_HOME}
cp -R ${S}/hotspot/test ${D}${JDK_HOME}/jtreg/hotspot
cp -R ${S}/jdk/test ${D}${JDK_HOME}/jtreg/jdk
+# The OpenJDK build does its own thing with debuginfo files; as we
+# default to a 'release' build we remove these files.
+ find ${D}${JDK_HOME} -name \*.debuginfo -print | xargs rm
# The upstream Mercurial repo has various incompatible binaries checked in.
# Remove these otherwise bitbake complains about mismatched architecture, et al.
find ${D}${JDK_HOME}/jtreg -name \*.so -print | xargs rm