Files
linux-kernel-module-cheat/configure
2017-11-02 14:36:43 +00:00

21 lines
605 B
Bash
Executable File

#!/usr/bin/env bash
s='sudo'
y=''
while getopts t OPT; do
case "$OPT" in
t)
s=''
y='-y'
;;
esac
done
shift $(($OPTIND - 1))
$s apt-get update $y
# Building SDL for QEMU in Buildroot was rejected upstream because it adds many dependencies:
# https://patchwork.ozlabs.org/patch/770684/
# We are just using the host SDL for now, if it causes too much problems we might remove it.
# libsdl2-dev needs to be installed separatedly from sudo apt-get build-dep qemu
# because Ubuntu 16.04's QEMU uses SDL 1.
$s apt-get install $y build-essential libsdl2-dev
$s apt-get build-dep $y qemu