mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
29 lines
768 B
Bash
Executable File
29 lines
768 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
interactive_pkgs=libsdl2-dev
|
|
y=''
|
|
while getopts t OPT; do
|
|
case "$OPT" in
|
|
t)
|
|
interactive_pkgs=''
|
|
y='-y'
|
|
;;
|
|
esac
|
|
done
|
|
shift $(($OPTIND - 1))
|
|
git submodule update --depth 1 --jobs 4 --init
|
|
cd qemu
|
|
git submodule update --init
|
|
sudo 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.
|
|
sudo apt-get install $y \
|
|
build-essential \
|
|
coreutils \
|
|
$interactive_pkgs \
|
|
;
|
|
sudo apt-get build-dep $y qemu
|