+++ /dev/null
-#!/bin/sh
-#
-# Wrapper which (almost) silently restarts the VM in case of segfaults.
-
-redo_from_start=1;
-while [ $redo_from_start -eq 1 ]; do
- echo "Running JamVM-native: ${@}"
- redo_from_start=0;
- jamvm ${1+"$@"}
- if [ $? -eq 139 ]; then
- echo "JamVM-native crashed - silently trying again"
- redo_from_start=1;
- fi
-done
-
require jamvm.inc
-DEPENDS = "zlib-native classpath-native ecj-initial"
+DEPENDS = "zlib-native classpath-native ecj-initial libffi-native"
RDEPENDS_${PN} = ""
PROVIDES = "virtual/java-native"
+# Use libffi instead of handcoded JNI calling code. This code seems to have issues which only randomly
+# trigger a segfault.
+EXTRA_OECONF += "--enable-ffi"
+
RPROVIDES_jamvm = ""
# This uses 32 bit arm, so force the instruction set to arm, not thumb
# Needed for big compilation targets like OpenJDK
CFLAGS += "-DDEFAULT_MAX_HEAP=2048*MB"
-EXTRA_OECONF += "--with-program-suffix=-bin"
-
-SRC_URI += "file://java"
+#SRC_URI += "file://java"
inherit native
do_install_append() {
install -d ${D}${bindir}
- install -m 0755 ${WORKDIR}/java ${D}${bindir}/
+ ln -s ${bindir}/jamvm ${D}${bindir}/java
}
# Enforce usage of ecj-initial.