Skip to content

Commit

Permalink
openj9: obtain qemu-riscv64-static for running constgen during cross …
Browse files Browse the repository at this point in the history
…build (#2859)

Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa authored Mar 1, 2022
1 parent 9bb1acc commit 08b7c7d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build-farm/platform-specific-configurations/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,16 @@ if [ "${ARCHITECTURE}" == "riscv64" ] && [ "${NATIVE_API_ARCH}" != "riscv64" ];
if [ "${VARIANT}" == "${BUILD_VARIANT_OPENJ9}" ]; then
# shellcheck disable=SC2001
CONFIGURE_ARGS_FOR_ANY_PLATFORM=$(echo "$CONFIGURE_ARGS_FOR_ANY_PLATFORM" | sed "s,with-openssl=[^ ]*,with-openssl=${RISCV_SYSROOT}/usr,g")
if ! which qemu-riscv64-static; then
# don't download it if we already have it from a previous build
if [ ! -x "$WORKSPACE/qemu-riscv64-static" ]; then
echo Download qemu-riscv64-static as it is required for the OpenJ9 cross build ...
curl https://ci.adoptopenjdk.net/userContent/riscv/qemu-riscv64-static.xz | xz -d > "$WORKSPACE/qemu-riscv64-static" && \
chmod 755 "$WORKSPACE/qemu-riscv64-static"
fi
export PATH="$PATH:$WORKSPACE" && \
qemu-riscv64-static --version
fi
fi

if [ "${VARIANT}" == "${BUILD_VARIANT_BISHENG}" ]; then
Expand Down

0 comments on commit 08b7c7d

Please sign in to comment.