f150e50cdfa15e2bbb3be31dd46dcddc58dda305
[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 git \
30 gperf \
31 graphviz \
32 gtkwave \
33 iverilog \
34 libboost-program-options-dev \
35 libevent-dev \
36 libffi-dev \
37 libjson-c-dev \
38 libftdi-dev \
39 libgmp-dev \
40 libmpfr-dev \
41 libpng++-dev \
42 libreadline-dev \
43 libreadline7 \
44 minicom \
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-cffi \
59 python3-venv \
60 python3-jinja2 \
61 python3-sphinx \
62 python3-sphinx-rtd-theme \
63 python3-recommonmark \
64 qemu-system-ppc/buster-backports \
65 tcl \
66 tcl-dev \
67 tcl-tclreadline \
68 vim \
69 wget \
70 xdot
71
72 # if doing this on ppc64le it may fail
73 apt-get install -y gcc-8-powerpc64-linux-gnu
74 apt-get install -y gcc-8-powerpc64le-linux-gnu