Skip to content

Commit 122ca04

Browse files
committed
Re-merge branch 'openjdk-10-stretch' into openjdk-10
2 parents caffbde + 9e6536b commit 122ca04

File tree

3 files changed

+7
-30
lines changed

3 files changed

+7
-30
lines changed

build/Dockerfile.system

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN dpkg --add-architecture armel && \
3939
cpio \
4040
gawk \
4141
file \
42-
zip \
42+
pigz \
4343
unzip \
4444
procps \
4545
autoconf \

build/fetch.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ cd "$JDKDIR"
1515
patch -p1 < "$SCRIPTDIR/ev3.patch"
1616
# - use the system-provided floating point implementation
1717
patch -p1 < "$SCRIPTDIR/float.patch"
18+
# - remove illegal memory barriers on armv5
19+
patch -p1 < "$SCRIPTDIR/barrier.patch"
1820

build/zip.sh

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ cd "$IMAGEDIR"
99

1010
# clean destinations
1111
rm -rf ./jre-ev3
12-
rm -rf ./jdk-pc
13-
rm -rf ./jshell-support
14-
rm -f ./jdk-ev3
1512

1613
# build ev3 runtime image
1714
"$SCRIPTDIR/jdk-10/bin/jlink" \
@@ -21,32 +18,10 @@ rm -f ./jdk-ev3
2118
--strip-debug \
2219
--no-header-files \
2320
--no-man-pages \
24-
--add-modules java.se,jdk.jdwp.agent,jdk.jshell \
21+
--add-modules java.se,jdk.jdwp.agent \
2522
--output ./jre-ev3
2623

27-
# build microjdk
28-
"$SCRIPTDIR/jdk-10/bin/jlink" \
29-
--module-path "$SCRIPTDIR/jdk-10/jmods" \
30-
--compress 2 \
31-
--strip-debug \
32-
--no-header-files \
33-
--no-man-pages \
34-
--add-modules java.se,jdk.attach,jdk.jdwp.agent,jdk.jlink,jdk.jartool,jdk.compiler,jdk.jdi,jdk.jshell \
35-
--output ./jdk-pc
36-
37-
cp -r ./jmods ./jdk-pc/jmods-ev3
38-
39-
# rename jdk directory
40-
ln -s ./jdk ./jdk-ev3
41-
42-
# JShell hack
43-
mkdir jshell-support
44-
"$SCRIPTDIR/jdk-10/bin/javac" -d ./jshell-support "$SCRIPTDIR/jshellhack/DumpPort.java"
45-
"$SCRIPTDIR/jdk-10/bin/jar" cf ./jshellhack.jar -C ./jshell-support jshellhack/DumpPort.class
46-
cp ./jshellhack.jar ./jdk-pc/bin
47-
cp "$SCRIPTDIR/jshell-launch.sh" ./jdk-pc/bin
48-
4924
# create zip files
50-
zip -9r "$BUILDDIR/jdk-ev3.zip" jdk-ev3
51-
zip -9r "$BUILDDIR/jre-ev3.zip" jre-ev3
52-
zip -9r "$BUILDDIR/jdk-pc.zip" jdk-pc
25+
tar -cf - jre-ev3 | pigz -9 > "$BUILDDIR/jre-ev3.tar.gz"
26+
tar -cf - jdk | pigz -9 > "$BUILDDIR/jdk-ev3.tar.gz"
27+
tar -cf - jmods | pigz -9 > "$BUILDDIR/jmods.tar.gz"

0 commit comments

Comments
 (0)