exit
fi
apt-get update -y
-apt-get upgrade -y
apt-get install -y autoconf \
bison \
build-essential \
flex \
g++ \
gawk \
- gcc-8-powerpc64-linux-gnu \
git \
gperf \
graphviz \
libboost-program-options-dev \
libevent-dev \
libffi-dev \
+ libgtest-dev \
libjson-c-dev \
libftdi-dev \
libgmp-dev \
libmpfr-dev \
libpng++-dev \
+ libpython3.7-dev \
libreadline-dev \
libreadline7 \
+ minicom \
ninja-build \
pkg-config \
python \
+ python2.7 \
python-dev \
python-setuptools \
python-virtualenv \
python3.7-dev \
python3-nose \
python3-setuptools \
+ python-svgwrite \
+ python3-svgwrite \
+ python3-cffi \
python3-venv \
+ python3-jinja2 \
python3-sphinx \
- qemu-system-ppc \
+ python3-sphinx-rtd-theme \
+ python3-recommonmark \
+ python3-pandocfilters \
+ python3-toml \
+ pandoc \
+ rsync \
+ ssh \
+ texstudio \
+ texlive \
+ texlive-latex-extra \
+ texlive-xetex \
+ inkscape \
tcl \
tcl-dev \
tcl-tclreadline \
vim \
+ wget \
xdot
+
+# have to also upgrade sysvinit-core to stop it getting removed
+apt-get -t buster-backports install -y qemu-system-ppc/buster-backports
+
+# if doing this on ppc64le it may fail
+apt-get install -y gcc-8-powerpc64-linux-gnu
+apt-get install -y gcc-8-powerpc64le-linux-gnu
+# install the gcc binaries above, but without the trailing "8"
+apt-get install -y gcc-powerpc64-linux-gnu
+apt-get install -y gcc-powerpc64le-linux-gnu