aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2019-04-26 04:17:16 +0000
committerYousong Zhou <yszhou4tech@gmail.com>2019-04-26 13:09:33 +0000
commitc2fee615ce49332c0cbffc5daf81da2074c622f3 (patch)
treedaddec8d03d326f280f1e026acc0b481d9f69c02
parentd72687854680af889998c89ebbb40812109a6565 (diff)
downloadupstream-c2fee615ce49332c0cbffc5daf81da2074c622f3.tar.gz
upstream-c2fee615ce49332c0cbffc5daf81da2074c622f3.tar.bz2
upstream-c2fee615ce49332c0cbffc5daf81da2074c622f3.zip
scripts/qemustart: add notes on adding new options
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rwxr-xr-xscripts/qemustart5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/qemustart b/scripts/qemustart
index 2d1f476dde..dbb8deddaf 100755
--- a/scripts/qemustart
+++ b/scripts/qemustart
@@ -124,6 +124,11 @@ parse_args() {
o_network=
o_qemu_extra=()
while [ "$#" -gt 0 ]; do
+ # Cmdline options for the script itself SHOULD try to be
+ # prefixed with two dashes to distinguish them from those for
+ # qemu executables.
+ #
+ # Also note that qemu accepts both --opt and -opt
case "$1" in
--kernel) o_kernel="$2"; shift 2 ;;
--rootfs) o_rootfs="$2"; shift 2 ;;