#!/usr/bin/env bash set -eu interactive_pkgs=libsdl2-dev gem5=false qemu=true submodules='buildroot linux' y= while getopts gpqt OPT; do case "$OPT" in g) gem5=true ;; p) submodules="${submodules} parsec-benchmark" ;; q) qemu=false ;; t) interactive_pkgs= y=-y ;; esac done shift $(($OPTIND - 1)) ## apt-get pkgs="\ automake \ bc \ build-essential \ coreutils \ cpio \ expect \ git \ moreutils \ 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 <