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 9, 2022
1 parent 5e42636 commit 446290d
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions build-farm/platform-specific-configurations/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,18 @@ 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"
export LANG=C
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" ]
then
export LANG=C
fi

if [ ! -d "$(eval echo "\$$BOOT_JDK_VARIABLE")" ]; then
Expand Down

0 comments on commit 446290d

Please sign in to comment.