mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
Create the cli.gitignore mechanism to pass extra default cli options
Document that X11 mouse is not moving. Convert x='' to x= on all scripts, and also fix case ;; indentations. Add dummy value to QEMU's -trace enable= to prevent warning. Expand built-in package choice rationale.
This commit is contained in:
24
run
24
run
@@ -1,11 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
. common
|
||||
set -- ${cli_run:-} "$@"
|
||||
|
||||
# CLI handling.
|
||||
arch=x86_64
|
||||
cpus=1
|
||||
debug_vm=''
|
||||
debug_vm=
|
||||
debug=false
|
||||
kgdb=false
|
||||
kvm=false
|
||||
@@ -14,18 +15,20 @@ kvm=false
|
||||
# nokaslr: https://unix.stackexchange.com/questions/397939/turning-off-kaslr-to-debug-linux-kernel-using-qemu-and-gdb
|
||||
# Turned on by default since v4.12
|
||||
extra_append='nokaslr norandmaps printk.devkmsg=on printk.time=y'
|
||||
extra_append_after_dash=''
|
||||
extra_flags=''
|
||||
extra_flags_qemu=''
|
||||
extra_append_after_dash=
|
||||
extra_flags=
|
||||
extra_flags_qemu=
|
||||
gem5=false
|
||||
gem5opts=''
|
||||
lkmc_eval=''
|
||||
gem5opts=
|
||||
lkmc_eval=
|
||||
initrd=false
|
||||
initramfs=false
|
||||
memory=256M
|
||||
nographic=true
|
||||
root=''
|
||||
trace_enable=''
|
||||
root=
|
||||
# A dummy value that is already turned on by default and does not produce large output,
|
||||
# just to prevent QEMU from emitting a warning that '' is not valid.
|
||||
trace_enable=pr_manager_run
|
||||
while getopts a:c:DdE:e:f:G:ghIiKkm:T:x OPT; do
|
||||
case "$OPT" in
|
||||
a)
|
||||
@@ -59,7 +62,7 @@ while getopts a:c:DdE:e:f:G:ghIiKkm:T:x OPT; do
|
||||
h)
|
||||
cat build-usage.adoc 1>&2
|
||||
exit
|
||||
;;
|
||||
;;
|
||||
I)
|
||||
initramfs=true
|
||||
;;
|
||||
@@ -85,6 +88,9 @@ while getopts a:c:DdE:e:f:G:ghIiKkm:T:x OPT; do
|
||||
x)
|
||||
nographic=false
|
||||
;;
|
||||
?)
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
done
|
||||
shift "$(($OPTIND - 1))"
|
||||
|
||||
Reference in New Issue
Block a user