summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-04-11 02:21:27 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-12 15:09:57 +0100
commitf2c09f786704568c0c40726cdc3fef760e941d92 (patch)
tree29c7438b21bfe75d33b9983d46a25dd7ae76da1b
parentf6aaba31cf12d339d76ac12f37efcd074312245d (diff)
downloadpoky-f2c09f786704568c0c40726cdc3fef760e941d92.tar.gz
runqemu: run without arguments
Since we can get MACHINE and others from env vars and "bitbake -e", "runqemu" can work without any arguments. (From OE-Core rev: 9ebcb2b6f41420ae3686afad03bb26a68cfacf95) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 6234e811a7..51ed9de22c 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -83,6 +83,7 @@ of the following environment variables (in any order):
83 help, -h, --help: print this text 83 help, -h, --help: print this text
84 84
85Examples: 85Examples:
86 runqemu
86 runqemu qemuarm 87 runqemu qemuarm
87 runqemu tmp/deploy/images/qemuarm 88 runqemu tmp/deploy/images/qemuarm
88 runqemu tmp/deploy/images/qemux86/<qemuboot.conf> 89 runqemu tmp/deploy/images/qemux86/<qemuboot.conf>
@@ -1184,8 +1185,7 @@ class BaseConfig(object):
1184 logger.warn("Couldn't run 'bitbake -e' to gather environment information:\n%s" % err.output.decode('utf-8')) 1185 logger.warn("Couldn't run 'bitbake -e' to gather environment information:\n%s" % err.output.decode('utf-8'))
1185 1186
1186def main(): 1187def main():
1187 if len(sys.argv) == 1 or "help" in sys.argv or \ 1188 if "help" in sys.argv or '-h' in sys.argv or '--help' in sys.argv:
1188 '-h' in sys.argv or '--help' in sys.argv:
1189 print_usage() 1189 print_usage()
1190 return 0 1190 return 0
1191 config = BaseConfig() 1191 config = BaseConfig()