mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
common: factor out common opts to all scripts
This commit is contained in:
16
rungdb
16
rungdb
@@ -6,14 +6,11 @@ lx_symbols="-ex 'lx-symbols ../kernel_module-1.0/' \\
|
||||
"
|
||||
kgdb=false
|
||||
docontinue=true
|
||||
while getopts A:a:b:CgkL:n:X OPT; do
|
||||
while getopts "A:a:b:CgkL:n:X${common_getopts_flags}" OPT; do
|
||||
case "$OPT" in
|
||||
A)
|
||||
after="$OPTARG"
|
||||
;;
|
||||
a)
|
||||
common_arch="$OPTARG"
|
||||
;;
|
||||
b)
|
||||
before="$OPTARG"
|
||||
;;
|
||||
@@ -21,23 +18,14 @@ while getopts A:a:b:CgkL:n:X OPT; do
|
||||
# No Continue.
|
||||
docontinue=false
|
||||
;;
|
||||
g)
|
||||
common_gem5=true
|
||||
;;
|
||||
k)
|
||||
kgdb=true
|
||||
;;
|
||||
L)
|
||||
common_linux_variant="$OPTARG"
|
||||
;;
|
||||
n)
|
||||
common_run_id="$OPTARG"
|
||||
;;
|
||||
X)
|
||||
lx_symbols=
|
||||
;;
|
||||
?)
|
||||
exit 2
|
||||
common_getopts_case "$OPT"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user