File tree Expand file tree Collapse file tree 3 files changed +31
-4
lines changed Expand file tree Collapse file tree 3 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2- cd /build/jdk9u
2+ set -e
3+
4+ pushd /build/jdk9u
35
46# refresh patched build system
57bash ./common/autoconf/autogen.sh
@@ -36,5 +38,5 @@ bash ./configure --with-boot-jdk=/opt/jdkcross/jdk-9.0.1 \
3638# BUILD_NM="gcc-nm"
3739
3840
39- # start building
41+ # start the build
4042make clean images
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+ set -e
23
34# clone the root project
4- cd /build
5+ pushd /build
56hg clone http://hg.openjdk.java.net/jdk-updates/jdk9u/
6- cd jdk9u
7+ pushd jdk9u
78
89# clone the rest of the tree
910bash ./get_source.sh
1011
1112# apply the EV3-specific patches
13+ # - build flags for arm926ej-s
1214patch -p1 < /opt/jdkcross/ev3.patch
15+ # - use the system-provided floating point implementation
1316patch -p1 -d hotspot < /opt/jdkcross/float.patch
1417
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # enter images directory
4+ pushd /build/jdk9u/build/linux-arm-normal-client-release/images
5+
6+ # build ev3 runtime image
7+ /opt/jdkcross/jdk-9.0.1/bin/jlink \
8+ --module-path ./jmods/ \
9+ --endian little \
10+ --compress 0 \
11+ --strip-debug \
12+ --add-modules java.se \
13+ --output ./jre-ev3
14+
15+ # rename jdk directory
16+ mv ./jdk ./jdk-ev3
17+
18+ # create zip files
19+ zip -r /build/jdk-ev3.zip jdk-ev3
20+ zip -r /build/jre-ev3.zip jre-ev3
21+
22+ popd
You can’t perform that action at this time.
0 commit comments