Skip to content

Commit c17dbc2

Browse files
committed
[scripts] Update IMAGEDIR for JDK12
1 parent 970368b commit c17dbc2

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

scripts/config.sh

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ CACERTFILE="$ABLDDIR/security/cacerts"
2525
## Version-specific configuration
2626
##
2727

28+
# invalid or unset VM
29+
if [ "$JDKVM" != "zero" ] && [ "$JDKVM" != "client" ]; then
30+
echo "Error! Please specify JDK VM to compile via the JDKVM environment variable." >&2
31+
echo "Acceptable values:" >&2
32+
echo "JDKVM=client" >&2
33+
echo "JDKVM=zero" >&2
34+
exit 1
35+
fi
36+
37+
HOTSPOT_VARIANT="$JDKVM"
38+
2839
# output images directory
2940
#IMAGEDIR="/build/jdk/build/linux-arm-normal-client-release/images"
3041

@@ -70,6 +81,7 @@ if [ "$JDKVER" == "9" ]; then
7081
HOSTJDK="$BUILDDIR/jdk-9.0.4"
7182
HOSTJDK_FILE="$BUILDDIR/openjdk-9.0.4_linux-x64_bin.tar.gz"
7283
HOSTJDK_URL="https://download.java.net/java/GA/jdk9/9.0.4/binaries/openjdk-9.0.4_linux-x64_bin.tar.gz"
84+
IMAGEDIR="$JDKDIR/build/linux-arm-normal-${JDKVM}-release/images"
7385

7486
# OpenJDK 10
7587
elif [ "$JDKVER" == "10" ]; then
@@ -81,6 +93,7 @@ elif [ "$JDKVER" == "10" ]; then
8193
HOSTJDK="$BUILDDIR/jdk-10.0.2"
8294
HOSTJDK_FILE="$BUILDDIR/openjdk-10.0.2_linux-x64_bin.tar.gz"
8395
HOSTJDK_URL="https://download.java.net/java/GA/jdk10/10.0.2/19aef61b38124481863b1413dce1855f/13/openjdk-10.0.2_linux-x64_bin.tar.gz"
96+
IMAGEDIR="$JDKDIR/build/linux-arm-normal-${JDKVM}-release/images"
8497

8598
# OpenJDK 11
8699
elif [ "$JDKVER" == "11" ]; then
@@ -91,6 +104,7 @@ elif [ "$JDKVER" == "11" ]; then
91104
HOSTJDK="$BUILDDIR/jdk-11.0.1"
92105
HOSTJDK_FILE="$BUILDDIR/openjdk-11.0.1_linux-x64_bin.tar.gz"
93106
HOSTJDK_URL="https://download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_linux-x64_bin.tar.gz"
107+
IMAGEDIR="$JDKDIR/build/linux-arm-normal-${JDKVM}-release/images"
94108

95109
# OpenJDK Master+dev
96110
elif [ "$JDKVER" == "12" ]; then
@@ -103,7 +117,7 @@ elif [ "$JDKVER" == "12" ]; then
103117
HOSTJDK="$BUILDDIR/jdk-11.0.1"
104118
HOSTJDK_FILE="$BUILDDIR/openjdk-11.0.1_linux-x64_bin.tar.gz"
105119
HOSTJDK_URL="https://download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_linux-x64_bin.tar.gz"
106-
120+
IMAGEDIR="$JDKDIR/build/linux-arm-${JDKVM}-release/images"
107121

108122
# invalid or unset version
109123
else
@@ -144,16 +158,3 @@ else
144158
exit 1
145159
fi
146160

147-
148-
149-
# invalid or unset VM
150-
if [ "$JDKVM" != "zero" ] && [ "$JDKVM" != "client" ]; then
151-
echo "Error! Please specify JDK VM to compile via the JDKVM environment variable." >&2
152-
echo "Acceptable values:" >&2
153-
echo "JDKVM=client" >&2
154-
echo "JDKVM=zero" >&2
155-
exit 1
156-
fi
157-
158-
HOTSPOT_VARIANT="$JDKVM"
159-
IMAGEDIR="/build/jdk/build/linux-arm-normal-${JDKVM}-release/images"

0 commit comments

Comments
 (0)