From: Robert Yang Date: Tue, 11 Apr 2017 09:21:27 +0000 (-0700) Subject: runqemu: run without arguments X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~21666 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ebcb2b6f41420ae3686afad03bb26a68cfacf95;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git runqemu: run without arguments Since we can get MACHINE and others from env vars and "bitbake -e", "runqemu" can work without any arguments. Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- diff --git a/scripts/runqemu b/scripts/runqemu index 6234e811a7b..51ed9de22c9 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -83,6 +83,7 @@ of the following environment variables (in any order): help, -h, --help: print this text Examples: + runqemu runqemu qemuarm runqemu tmp/deploy/images/qemuarm runqemu tmp/deploy/images/qemux86/ @@ -1184,8 +1185,7 @@ class BaseConfig(object): logger.warn("Couldn't run 'bitbake -e' to gather environment information:\n%s" % err.output.decode('utf-8')) def main(): - if len(sys.argv) == 1 or "help" in sys.argv or \ - '-h' in sys.argv or '--help' in sys.argv: + if "help" in sys.argv or '-h' in sys.argv or '--help' in sys.argv: print_usage() return 0 config = BaseConfig()