aboutsummaryrefslogtreecommitdiff
path: root/meta-aarch64
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2013-07-31 16:56:58 +0100
committerAndrew McDermott <andrew.mcdermott@linaro.org>2013-07-31 16:56:58 +0100
commit7b021b85d421bc0b75a03b06e07204fc9145d905 (patch)
tree7690c240782f1a7dedf3dc98606e44bb27b95b64 /meta-aarch64
parent98ee8695b51d9c157bd3cb81052429f8970fa99d (diff)
downloadmeta-linaro-7b021b85d421bc0b75a03b06e07204fc9145d905.tar.gz
aarch64: add initial openjdk-8 recipe
Note: this does not currently pull from the Mercurial repos; a pre-assembled tarball of the openjdk-8 source tree is put into: http://people.linaro.org/~andrew.mcdermott/jdk8.tar.xz and the build currently fetches from there. TODO: update SRC_URI to pull from the tips of the various openjdk-8 repositories. 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.inc130
-rw-r--r--meta-aarch64/recipes-core/openjdk/openjdk-8_0.1.bb12
2 files changed, 142 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
new file mode 100644
index 00000000..4ce70ada
--- /dev/null
+++ b/meta-aarch64/recipes-core/openjdk/openjdk-8-common.inc
@@ -0,0 +1,130 @@
+DESCRIPTION = "Java runtime based upon the OpenJDK8"
+HOMEPAGE = "http://icedtea.classpath.org"
+LICENSE = "GPL-2.0-with-classpath-exception"
+PRIORITY = "optional"
+SECTION = "libs"
+INHIBIT_PACKAGE_STRIP = "1"
+#INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+INC_PR = "r5"
+
+SRC_URI = " \
+ ${OPENJDK_URI} \
+ "
+
+libdir_jvm ?= "${libdir}/jvm"
+
+JDKPN = "openjdk-8"
+JDK_DIR = "java-8-openjdk"
+JDK_HOME = "${libdir_jvm}/${JDK_DIR}"
+
+PN = "${JDKPN}-jre"
+PROVIDES += "${JDKPN}"
+
+DEPENDS = " \
+ icedtea7-native \
+ zip-native \
+ zlib \
+ jpeg libpng giflib \
+ gtk+ glib-2.0 \
+ cups fontconfig \
+ libxt libxinerama libxrender libxtst libxi \
+ freetype alsa-lib libffi \
+ "
+
+# No package should directly depend on this (it should require
+# java2-runtime instead).
+PRIVATE_LIBS = "\
+ libunpack.so libverify.so libjava.so libzip.so libnpt.so \
+ libjava_crw_demo.so libhprof.so libnet.so libnio.so \
+ libmanagement.so libinstrument.so libjsound.so libjsoundalsa.so \
+ libj2pcsc.so libj2pkcs11.so libj2gss.so libmlib_image.so \
+ libawt.so libsplashscreen.so libfreetype.so.6 libfontmanager.so \
+ libjpeg.so liblcms.so librmi.so libjawt.so libjaas_unix.so \
+ libattach.so libjdwp.so libdt_socket.so libhpi.so libjli.so \
+ libmawt.so libjvm.so \
+ libversionCheck.so libcompiledMethodLoad.so libgctest.so \
+ libheapViewer.so libheapTracker.so libminst.so libmtrace.so \
+ libwaiters.so libhprof.so \
+ "
+
+JAVA_HOME[unexport] = "1"
+S="${WORKDIR}/jdk8"
+
+do_configure() {
+ unset MAKE
+ bash ./configure --with-debug-level=release --with-jvm-variants=client --with-sys-root=${STAGING_DIR_TARGET} --enable-unlimited-crypto --openjdk-target=aarch64-oe-linux --with-cacerts-file=${STAGING_LIBDIR_NATIVE}/jvm/icedtea7-native/jre/lib/security/cacerts --with-zlib=system --with-stdc++lib=dynamic --with-boot-jdk=${STAGING_LIBDIR_NATIVE}/jvm/icedtea7-native
+}
+
+do_compile() {
+ make images
+}
+
+do_install() {
+ install -d ${D}${libdir_jvm}
+ cp -R ${S}/build/${BUILD_DIR}/j2sdk-image ${D}${JDK_HOME}
+ chmod u+rw -R ${D}${JDK_HOME}
+}
+
+PACKAGES = " \
+ ${JDKPN}-jdk \
+ ${JDKPN}-doc \
+ ${JDKPN}-source \
+ ${JDKPN}-demo \
+ ${JDKPN}-jre \
+ "
+
+FILES_${JDKPN}-jdk = " \
+ ${JDK_HOME}/bin \
+ ${JDK_HOME}/lib \
+ ${JDK_HOME}/include \
+ ${JDK_HOME}/ASSEMBLY_EXCEPTION \
+ ${JDK_HOME}/release \
+ ${JDK_HOME}/THIRD_PARTY_README \
+ ${JDK_HOME}/LICENSE \
+ "
+
+FILES_${JDKPN}-doc = " \
+ ${JDK_HOME}/man \
+ "
+
+FILES_${JDKPN}-source = " \
+ ${JDK_HOME}/src.zip \
+ "
+
+FILES_${JDKPN}-demo = " \
+ ${JDK_HOME}/demo \
+ ${JDK_HOME}/sample \
+ "
+
+FILES_${PN} = " \
+ ${JDK_HOME}/jre \
+ "
+
+INSANE_SKIP_${JDKPN}-jdk = "dev-so"
+INSANE_SKIP_${JDKPN}-jre = "dev-so"
+
+RPROVIDES_${JDKPN}-jre = "java2-runtime"
+RPROVIDES_${JDKPN}-jre = "java2-vm"
+
+RDEPENDS_${JDKPN}-demo = "java2-runtime"
+
+inherit update-alternatives
+
+pkg_postinst_${JDKPN}-jre () {
+ update-alternatives --install ${bindir}/java java ${JDK_HOME}/jre/bin/java 75
+}
+
+pkg_prerm_${JDKPN}-jre () {
+ update-alternatives --remove java ${JDK_HOME}/jre/bin/java
+}
+
+pkg_postinst_${JDKPN}-jdk () {
+ update-alternatives --install ${bindir}/java javac ${JDK_HOME}/bin/java 100
+ update-alternatives --install ${bindir}/javac javac ${JDK_HOME}/bin/javac 100
+}
+
+pkg_prerm_${JDKPN}-jdk () {
+ update-alternatives --remove java ${JDK_HOME}/bin/java
+ update-alternatives --remove javac ${JDK_HOME}/bin/javac
+}
diff --git a/meta-aarch64/recipes-core/openjdk/openjdk-8_0.1.bb b/meta-aarch64/recipes-core/openjdk/openjdk-8_0.1.bb
new file mode 100644
index 00000000..fb63129c
--- /dev/null
+++ b/meta-aarch64/recipes-core/openjdk/openjdk-8_0.1.bb
@@ -0,0 +1,12 @@
+require openjdk-8-common.inc
+
+PR = "${INC_PR}.0"
+
+OPENJDK_URI = "http://people.linaro.org/~andrew.mcdermott/jdk8.tar.xz"
+
+SRC_URI[md5sum] = "ddb7b9e44638795eaef9c2e36153358e"
+SRC_URI[sha256sum] = "7a24536b5e14e30328cec08543788743d5aac12f65fe51db543d2fe6f8e4a0ab"
+
+LIC_FILES_CHKSUM="file://LICENSE;md5=7b4baeedfe2d40cb03536573bc2c89b1"
+
+BUILD_DIR="linux-aarch64-normal-client-release/images"