run: create -F option to run base64 encoded command after busybox init

Fix ./run -h which was showing the build help instead.
This commit is contained in:
Ciro Santilli
2018-04-19 08:57:35 +01:00
parent 9805d333ea
commit 2c084f5fb2
4 changed files with 40 additions and 11 deletions

11
run
View File

@@ -31,7 +31,7 @@ tmux_args=
# just to prevent QEMU from emitting a warning that '' is not valid.
trace_enable=pr_manager_run
vnc=
while getopts a:c:DdE:e:f:G:ghIiKkm:T:U:uVx OPT; do
while getopts a:c:DdE:e:F:f:G:ghIiKkm:T:U:uVx OPT; do
case "$OPT" in
a)
arch="$OPTARG"
@@ -52,10 +52,13 @@ while getopts a:c:DdE:e:f:G:ghIiKkm:T:U:uVx OPT; do
lkmc_eval="$OPTARG"
;;
e)
extra_append="$extra_append $OPTARG"
extra_append="${extra_append} ${OPTARG}"
;;
F)
extra_append_after_dash="${extra_append_after_dash} lkmc_eval_base64=\"$(printf "${OPTARG}" | base64)\""
;;
f)
extra_append_after_dash="$extra_append_after_dash $OPTARG"
extra_append_after_dash="${extra_append_after_dash} ${OPTARG}"
;;
G)
gem5opts="$OPTARG \\
@@ -65,7 +68,7 @@ while getopts a:c:DdE:e:f:G:ghIiKkm:T:U:uVx OPT; do
gem5=true
;;
h)
cat build-usage.adoc 1>&2
cat run-usage.adoc 1>&2
exit
;;
I)