mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Add a shortcute for /eval.sh
Create /eval_base64.sh to overcome quoting and newline limitations. Documente poweroff's failure on readme.
This commit is contained in:
9
run
9
run
@@ -17,9 +17,10 @@ extra_flags=''
|
||||
extra_flags_qemu=''
|
||||
gem5=false
|
||||
gem5opts=''
|
||||
lkmc_eval=''
|
||||
initrd=false
|
||||
root=''
|
||||
while getopts a:c:Dde:G:giKknt:x OPT; do
|
||||
while getopts a:c:DdE:e:G:giKknt:x OPT; do
|
||||
case "$OPT" in
|
||||
a)
|
||||
arch="$OPTARG"
|
||||
@@ -33,6 +34,9 @@ while getopts a:c:Dde:G:giKknt:x OPT; do
|
||||
D)
|
||||
debug_vm='gdb -q -ex start --args'
|
||||
;;
|
||||
E)
|
||||
lkmc_eval="$OPTARG"
|
||||
;;
|
||||
e)
|
||||
extra_append="$extra_append $OPTARG"
|
||||
;;
|
||||
@@ -71,6 +75,9 @@ root_dir="$(pwd)"
|
||||
buildroot_dir="${root_dir}/buildroot"
|
||||
out_dir="${root_dir}/buildroot/output.${arch_dir}~"
|
||||
images_dir="${out_dir}/images"
|
||||
if [ -n "$lkmc_eval" ]; then
|
||||
extra_append="$extra_append init=/eval_base64.sh - lkmc_eval=\"$(printf "$lkmc_eval" | base64)\""
|
||||
fi
|
||||
|
||||
if "$gem5"; then
|
||||
build_dir="${out_dir}/build/gem5-1.0"
|
||||
|
||||
Reference in New Issue
Block a user