-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·55 lines (44 loc) · 960 Bytes
/
install.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# build essensials
set -e
set -x
BASE_DIR=$PWD
# Get Embench
cp -r third_party/Embench Embench
# Adding integration tools to Embench
cp -r ./config/* ./Embench/config/
cp -r ./pylib/* ./Embench/pylib/
# LiteX install
cp -r third_party/litex litex/
cp litex/litex_setup.py .
chmod +x litex_setup.py
./litex_setup.py --init --install --user --dev --config full
# apply cpu patches
quilt push -a
cd third_party
# yosys install
cd yosys
make config-gcc
echo -n "PREFIX := $BASE_DIR/env/conda/envs/embench-tester" >> Makefile.conf
make -j $(nproc)
make install
cd ..
#verilator install
cd verilator
autoconf
./configure --prefix=$BASE_DIR/env/conda/envs/embench-tester
make -j $(nproc)
make install
cd ..
# ghdl download and install
cd ghdl
./configure --prefix=$BASE_DIR/env/conda/envs/embench-tester
make -j $(nproc)
make install
cd ..
# ghdl-yosys-plugin download and install
cd ghdl-yosys-plugin
make -j $(nproc)
make install
cd ..
cd ..