forked from ptribble/jdk-sunos-patches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README-zero.txt
46 lines (33 loc) · 1.49 KB
/
README-zero.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"Zero is a port of OpenJDK that uses no assembler and therefore can
trivially be built on any system."
https://openjdk.java.net/projects/zero/
The idea here is to potentially have an illumos port of zero. It's not
so interesting on x86, for which we have a proper port anyway, but if
we can get zero to work on x86 then it should be possible to get it to
work on sparc too.
It still needs the basic solaris patchset. It's designed more to support
new hardware architectures (hence the zero assembler) than as a way to
do an OS port.
There are 2 patches:
illumos-zero-1.patch
Fixes src/hotspot/cpu/zero/stubGenerator_zero.cpp
illumos-zero-2.patch
Adds the src/hotspot/os_cpu/solaris_zero directory and contents
These are current and tested for jdk 19+17. They don't provide a
proper zero port, as they still have x86 assembler that needs to be
removed.
cd to the jdk source that has the other patches applied and
gpatch -p1 < ${THOME}/build/patches/openjdk19/illumos-zero-1.patch
gpatch -p1 < ${THOME}/build/patches/openjdk19/illumos-zero-2.patch
Configure:
env PATH=/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/gnu/bin bash ./configure \
--enable-unlimited-crypto --with-boot-jdk=/usr/jdk/instances/jdk18 \
--with-native-debug-symbols=none \
--with-toolchain-type=gcc \
--disable-dtrace \
--disable-warnings-as-errors \
--enable-deprecated-ports=yes \
--enable-jvm-feature-zero --with-jvm-variants=zero \
--with-jobs=3
build:
env PATH=/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/gnu/bin gmake all CONF=solaris-x86_64-zero-release