summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-03-16 03:13:25 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-16 22:11:33 +0000
commit007960738792890fece6cfb0a75f27e7184cadf2 (patch)
treef3eb76899cc052c70444da3161cf8d0861c61877 /scripts
parentac451ea84cbb111917331c1126ab591d313e9ead (diff)
downloadpoky-007960738792890fece6cfb0a75f27e7184cadf2.tar.gz
runqemu: add -h and --help
Fixed: $ runqemu -h runqemu - INFO - Assuming MACHINE = -h runqemu - INFO - Running MACHINE=-h bitbake -e... [snip] Exception: FSTYPE is NULL! [YOCTO #10941] (From OE-Core rev: 6b9dd7a589537b12da648be50298cf7d36461797) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index cfdb0c53fb..17219563a8 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -80,7 +80,7 @@ of the following environment variables (in any order):
80 biosfilename=<filename> - specify bios filename 80 biosfilename=<filename> - specify bios filename
81 qemuparams=<xyz> - specify custom parameters to QEMU 81 qemuparams=<xyz> - specify custom parameters to QEMU
82 bootparams=<xyz> - specify custom kernel parameters during boot 82 bootparams=<xyz> - specify custom kernel parameters during boot
83 help: print this text 83 help, -h, --help: print this text
84 84
85Examples: 85Examples:
86 runqemu qemuarm 86 runqemu qemuarm
@@ -1161,7 +1161,8 @@ class BaseConfig(object):
1161 logger.warn("Couldn't run 'bitbake -e' to gather environment information:\n%s" % err.output.decode('utf-8')) 1161 logger.warn("Couldn't run 'bitbake -e' to gather environment information:\n%s" % err.output.decode('utf-8'))
1162 1162
1163def main(): 1163def main():
1164 if len(sys.argv) == 1 or "help" in sys.argv: 1164 if len(sys.argv) == 1 or "help" in sys.argv or \
1165 '-h' in sys.argv or '--help' in sys.argv:
1165 print_usage() 1166 print_usage()
1166 return 0 1167 return 0
1167 config = BaseConfig() 1168 config = BaseConfig()