Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Commit

Permalink
#46 patch test setup for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
edbordin committed Nov 22, 2020
1 parent 30efff9 commit fb19bbb
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions scripts/test/install_toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ set -e
# the root of the repo

cd $WORK_DIR

SUDO="sudo"
if [ ${ARCH} == "linux_armv7l" ] || [ ${ARCH} == "linux_aarch64" ]; then
# already root in these containers and sudo is not installed
SUDO=""
fi

if [ ${ARCH:0:7} = "windows" ]
then
unzip fpga-toolchain-$ARCH-$VERSION.zip
Expand All @@ -24,10 +31,10 @@ else

# install python 3.6 on ubuntu 16.04 for nmigen
# TODO: test on non-debian distros
sudo apt-get update
sudo apt-get install -y --no-install-recommends software-properties-common
sudo add-apt-repository -y -u ppa:deadsnakes/ppa
sudo apt-get install -y --no-install-recommends python3.6 python3-pip
$SUDO apt-get update
$SUDO apt-get install -y --no-install-recommends software-properties-common
$SUDO add-apt-repository -y -u ppa:deadsnakes/ppa
$SUDO apt-get install -y --no-install-recommends python3.6 python3-pip

export PIP="python3.6 -m pip"
export PYTHON=python3.6
Expand Down

0 comments on commit fb19bbb

Please sign in to comment.