#!/usr/bin/env bash set -eu interactive_pkgs=libsdl2-dev gem5=false gem5_given=false qemu=true qemu_given=false submodules_dir=submodules submodules=buildroot y= while [ $# -gt 0 ]; do case "$1" in --gem5) gem5_given=true shift ;; --parsec-benchmark) submodules="${submodules} parsec-benchmark" ;; --qemu) qemu_given=true shift ;; --travis) interactive_pkgs= y=-y ;; *) echo 'unknown option' 1>&2 exit 2 ;; esac done if "$gem5_given" && ! "$qemu_given"; then qemu=false fi if "$gem5_given"; then gem5=true fi ## apt-get pkgs="\ automake \ bc \ build-essential \ coreutils \ cpio \ expect \ git \ moreutils \ rsync \ tmux \ unzip \ vinagre \ wget \ " if "$gem5"; then pkgs="$pkgs \ ccache \ gcc-aarch64-linux-gnu \ gcc-arm-linux-gnueabi \ libgoogle-perftools-dev \ protobuf-compiler \ python-dev \ python-pip \ scons \ " fi command -v apt-get >/dev/null 2>&1 || { cat <