diff options
Diffstat (limited to 'recipes-core/jamvm/jamvm-initial-native_1.4.5.bb')
-rw-r--r-- | recipes-core/jamvm/jamvm-initial-native_1.4.5.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/recipes-core/jamvm/jamvm-initial-native_1.4.5.bb b/recipes-core/jamvm/jamvm-initial-native_1.4.5.bb new file mode 100644 index 0000000..25b42b0 --- /dev/null +++ b/recipes-core/jamvm/jamvm-initial-native_1.4.5.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | SUMMARY = "A compact Java Virtual Machine which conforms to the JVM specification version 2." | ||
2 | HOMEPAGE = "http://jamvm.sourceforge.net/" | ||
3 | LICENSE = "GPL" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | ||
5 | |||
6 | DEPENDS = "zlib-native classpath-initial-native jikes-initial-native libffi-native" | ||
7 | |||
8 | PROVIDES = "virtual/java-initial" | ||
9 | |||
10 | PR = "r1" | ||
11 | |||
12 | S = "${WORKDIR}/jamvm-${PV}" | ||
13 | |||
14 | SRC_URI = "${SOURCEFORGE_MIRROR}/jamvm/jamvm-${PV}.tar.gz \ | ||
15 | file://libffi.patch \ | ||
16 | file://jamvm-initial.patch \ | ||
17 | file://java-initial \ | ||
18 | " | ||
19 | |||
20 | # This uses 32 bit arm, so force the instruction set to arm, not thumb | ||
21 | ARM_INSTRUCTION_SET = "arm" | ||
22 | |||
23 | inherit native autotools pkgconfig | ||
24 | |||
25 | # libdir must be modified so that jamvm-initial and -native | ||
26 | # do not interfere | ||
27 | EXTRA_OECONF = "\ | ||
28 | --with-classpath-install-dir=${prefix} \ | ||
29 | --program-suffix=-initial \ | ||
30 | --libdir=${STAGING_LIBDIR}/jamvm-initial \ | ||
31 | --enable-ffi \ | ||
32 | " | ||
33 | |||
34 | # jamvm-initial has to run some binaries which need lots of memory. | ||
35 | CFLAGS += "-DDEFAULT_MAX_HEAP=512*MB" | ||
36 | |||
37 | # Enforce usage of jikes-initial. | ||
38 | EXTRA_OEMAKE = "JAVAC=${STAGING_BINDIR_NATIVE}/jikes-initial \ | ||
39 | GLIBJ_ZIP=${STAGING_DATADIR_NATIVE}/classpath-inital/glibj.zip \ | ||
40 | " | ||
41 | do_install_append() { | ||
42 | install -d ${D}${bindir}/ | ||
43 | install -m 0755 ${WORKDIR}/java-initial ${D}${bindir}/ | ||
44 | } | ||
45 | |||
46 | SRC_URI[md5sum] = "3f538bab6e1c77aed331e5e71f754f5b" | ||
47 | SRC_URI[sha256sum] = "f329d1c8f42c06b53a3e82763d33900b100b8e9acd7afe02f7583c51253fd6e5" | ||
48 | # shared state for jamvm-native does not work | ||
49 | # since the paths are hardcoded | ||
50 | #SSTATE_MIRRORS_class-native = "" | ||