forked from FPGAwars/Platformio-FPGA
-
Notifications
You must be signed in to change notification settings - Fork 2
/
install-toolchain.sh
39 lines (33 loc) · 1016 Bytes
/
install-toolchain.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
################################
# Icestorm toolchain installer #
################################
# Install Icestorm toolchain from source code
# sources: http://www.clifford.at/icestorm/
# Go to code directory
if [ -z "$1" ]; then
echo "Add your code directory. Ex: ., .., ~/code"
exit 1
fi
cd ${1}
# Install dependencies
sudo apt-get install build-essential clang bison flex libreadline-dev \
gawk tcl-dev libffi-dev git mercurial graphviz \
xdot pkg-config python python3 libftdi-dev
# Install Icestorm
git -C icestorm pull || git clone https://github.com/cliffordwolf/icestorm.git icestorm
cd icestorm
make -j$(nproc)
sudo make install
cd ..
# Install Arachne-PNR
git -C arachne-pnr pull || git clone https://github.com/cseed/arachne-pnr.git arachne-pnr
cd arachne-pnr
make -j$(nproc)
sudo make install
cd ..
# Install Yosys
git -C yosys pull || git clone https://github.com/cliffordwolf/yosys.git yosys
cd yosys
make -j$(nproc)
sudo make install
cd ..