Skip to content

Commit

Permalink
Fix some build erros
Browse files Browse the repository at this point in the history
  • Loading branch information
Panxuefeng-loongson committed Nov 8, 2022
1 parent 5e42636 commit 2255ccd
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions build-farm/platform-specific-configurations/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,17 @@ if [ "${VARIANT}" == "${BUILD_VARIANT_DRAGONWELL}" ] && [ "$JAVA_FEATURE_VERSION
fi
fi

if [ "${VARIANT}" == "${BUILD_VARIANT_LOONGSON}" ] && [ "$JAVA_FEATURE_VERSION" -eq 8 ]; then
if [ "${VARIANT}" == "${BUILD_VARIANT_LOONGSON}" ]; then
if [ "$JAVA_FEATURE_VERSION" -ne 8 ]; then
echo "Only Java 8 is supported for now"
exit 1
fi
if [ "${ARCHITECTURE}" == "loongarch64" ]; then
echo Loongson jdk8 requires a Loongson boot JDK - downloading one ...
mkdir -p "$PWD/jdk-8"
curl -L "https://github.com/loongson/build-tools/releases/download/2022.09.06/loongson8.1.11-jdk8u332b09-linux-loongarch64-clfs-6.3-0.tar.gz" | tar xpzf - --strip-components=1 -C "$PWD/jdk-8"
export "${BOOT_JDK_VARIABLE}"="$PWD/jdk-8"
echo Loongson jdk8 requires a Loongson boot JDK - downloading one ...
mkdir -p "$PWD/jdk-8"
curl -L "https://github.com/loongson/build-tools/releases/download/2022.09.06/loongson8.1.11-jdk8u332b09-linux-loongarch64-clfs-6.3-0.tar.gz" | tar xpzf - --strip-components=1 -C "$PWD/jdk-8"
export "${BOOT_JDK_VARIABLE}"="$PWD/jdk-8"
fi
else
echo "Only Java 8 is supported for now"
exit 1
fi

if [ "${ARCHITECTURE}" == "loongarch64" ]
Expand Down

0 comments on commit 2255ccd

Please sign in to comment.