Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
ksrichard committed Nov 21, 2024
1 parent 7b72d52 commit 10d4fd3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/cross_compile_ubuntu_18-pre-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,16 @@ crossArch=${CROSS_DEB_ARCH}

apt-get update

if [[ "${crossArch}" =~ ^(arm|riscv)64$ ]]; then
dpkg --add-architecture $CROSS_DEB_ARCH
apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH
if [ "${crossArch}" == "arm64" ]; then
dpkg --add-architecture arm64
apt-get update
apt-get install --assume-yes libssl-dev:arm64
fi

if [ "${crossArch}" == "riscv64" ]; then
dpkg --add-architecture riscv64
apt-get update
apt-get install --assume-yes libssl-dev:riscv64
fi

# Base install packages
Expand All @@ -85,7 +92,6 @@ apt-get install --no-install-recommends --assume-yes \
bash \
less \
openssl \
libssl-dev \
pkg-config \
libsqlite3-dev \
libsqlite3-0 \
Expand Down

0 comments on commit 10d4fd3

Please sign in to comment.