mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
configure: make it work from clean repo
This commit is contained in:
21
configure
vendored
21
configure
vendored
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
all=false
|
||||
apt_get=true
|
||||
baremetal=false
|
||||
baremetal_given=false
|
||||
@@ -8,6 +9,7 @@ buildroot_given=false
|
||||
linux=true
|
||||
linux_given=false
|
||||
interactive_pkgs=libsdl2-dev
|
||||
parsec_benchmark_given=false
|
||||
gem5=false
|
||||
gem5_given=false
|
||||
qemu=true
|
||||
@@ -17,8 +19,11 @@ submodules=
|
||||
y=
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
--all)
|
||||
all=true
|
||||
shift
|
||||
;;
|
||||
--baremetal)
|
||||
baremetal=true
|
||||
baremetal_given=true
|
||||
shift
|
||||
;;
|
||||
@@ -31,7 +36,7 @@ while [ $# -gt 0 ]; do
|
||||
shift
|
||||
;;
|
||||
--parsec-benchmark)
|
||||
submodules="${submodules} parsec-benchmark"
|
||||
parsec_benchmark_given=true
|
||||
shift
|
||||
;;
|
||||
--qemu)
|
||||
@@ -53,15 +58,21 @@ while [ $# -gt 0 ]; do
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if "$gem5_given" && ! "$qemu_given"; then
|
||||
if ! "$all" && "$gem5_given" && ! "$qemu_given"; then
|
||||
qemu=false
|
||||
fi
|
||||
if "$gem5_given"; then
|
||||
if "$all" || "$gem5_given"; then
|
||||
gem5=true
|
||||
fi
|
||||
if "$baremetal_given" && ! "$buildroot_given"; then
|
||||
if "$all" || "$baremetal_given"; then
|
||||
baremetal=true
|
||||
fi
|
||||
if ! "$all" && "$baremetal_given" && ! "$buildroot_given"; then
|
||||
buildroot=false
|
||||
fi
|
||||
if "$all" || "$parsec_benchmark_given"; then
|
||||
submodules="${submodules} parsec-benchmark"
|
||||
fi
|
||||
|
||||
if "$apt_get"; then
|
||||
pkgs="\
|
||||
|
||||
Reference in New Issue
Block a user