replace github download of nmigen with libre-soc.
[dev-env-setup.git] / install-hdl-apt-reqs
1 #!/bin/bash
2 if [ "$EUID" -ne 0 ]
3 then echo "Please run as root"
4 exit
5 fi
6 # for qemu 5.2 use debian/buster backports
7 cat << EOF > /etc/apt/sources.list.d/buster_backports.list
8 deb http://deb.debian.org/debian buster-backports main
9 EOF
10
11 # oooo annoying, pin preferences for buster-backports
12 cat << EOF > /etc/apt/preferences.d/99buster-backports
13 Package: *
14 Pin: release a=buster-backports
15 Pin-Priority: 900
16 EOF
17
18 apt-get update -y
19 apt-get upgrade -y
20 apt-get install -y autoconf \
21 bison \
22 build-essential \
23 clang \
24 cmake \
25 exuberant-ctags \
26 flex \
27 g++ \
28 gawk \
29 gcc-8-powerpc64-linux-gnu \
30 git \
31 gperf \
32 graphviz \
33 gtkwave \
34 iverilog \
35 libboost-program-options-dev \
36 libevent-dev \
37 libffi-dev \
38 libjson-c-dev \
39 libftdi-dev \
40 libgmp-dev \
41 libmpfr-dev \
42 libpng++-dev \
43 libreadline-dev \
44 libreadline7 \
45 ninja-build \
46 pkg-config \
47 python \
48 python2.7 \
49 python-dev \
50 python-setuptools \
51 python-virtualenv \
52 python3.7 \
53 python3.7-dev \
54 python3-nose \
55 python3-setuptools \
56 python-svgwrite \
57 python3-svgwrite \
58 python3-venv \
59 python3-sphinx \
60 python3-sphinx-rtd-theme \
61 python3-recommonmark \
62 qemu-system-ppc/buster-backports \
63 tcl \
64 tcl-dev \
65 tcl-tclreadline \
66 vim \
67 wget \
68 xdot