Skip to content

Commit 315a74c

Browse files
committed
Add script for packing the build
1 parent 6e898ab commit 315a74c

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

build/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
2-
cd /build/jdk9u
2+
set -e
3+
4+
pushd /build/jdk9u
35

46
# refresh patched build system
57
bash ./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
4042
make clean images

build/fetch.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
#!/usr/bin/env bash
2+
set -e
23

34
# clone the root project
4-
cd /build
5+
pushd /build
56
hg clone http://hg.openjdk.java.net/jdk-updates/jdk9u/
6-
cd jdk9u
7+
pushd jdk9u
78

89
# clone the rest of the tree
910
bash ./get_source.sh
1011

1112
# apply the EV3-specific patches
13+
# - build flags for arm926ej-s
1214
patch -p1 < /opt/jdkcross/ev3.patch
15+
# - use the system-provided floating point implementation
1316
patch -p1 -d hotspot < /opt/jdkcross/float.patch
1417

build/zip.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

0 commit comments

Comments
 (0)