-
Notifications
You must be signed in to change notification settings - Fork 57
/
init
executable file
·45 lines (29 loc) · 1.54 KB
/
init
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
#!/bin/bash
# One-time initialization of this repository, to be run after cloning.
APT_GET="$([[ ! -z $CI ]] && echo "apt-get install -y" || echo "sudo apt-get install")"
# Install submodules.
echo -e "\e[0Ksection_start:`date +%s`:init-submodules[collapsed=true]\r\e[0KUpdating submodules"
git submodule update --init --recursive
echo -e "\e[0Ksection_end:`date +%s`:init-submodules\r\e[0K"
# Install required packages
echo -e "\e[0Ksection_start:`date +%s`:init-pip[collapsed=true]\r\e[0KInstalling sandpiper-saas and makerchip-app"
pip3 install sandpiper-saas
# To use Makerchip for editing.
pip3 install makerchip-app
# Installs for riscv-formal (in addition to apt installs below and (cd formal && make env)).
python3 -m pip install Verilog_VCD click
echo -e "\e[0Ksection_end:`date +%s`:init-pip\r\e[0K"
# Installations for Ubuntu.
if which apt > /dev/null; then
echo -e "\e[0Ksection_start:`date +%s`:init-apt[collapsed=true]\r\e[0KInstalling build dependencies via apt-get"
# Required by yosys.
$APT_GET build-essential clang bison flex \
libreadline-dev gawk tcl-dev libffi-dev git \
graphviz xdot pkg-config python3 zlib1g-dev
# Removed: libboost-system-dev libboost-python-dev libboost-filesystem-dev
# To avoid a bug with `gitk` and `git gui` that results from our use of special unicode
# character in warp-v.tlv (for visualization):
$APT_GET unifont
echo -e "\e[0Ksection_end:`date +%s`:init-apt\r\e[0K"
fi
echo -e "\e[0KNow, be sure to accept the terms of service of sandpiper-saas and makerchip-app by running them."