summaryrefslogtreecommitdiff
path: root/scripts
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-11 18:10:49 +0100
commit9ebcb2b6f41420ae3686afad03bb26a68cfacf95 (patch)
tree852bb329250a9bad9fc88183189de431606af255 /scripts
parent20008d0bfe2cacecba77e11b0a0faf3d959eaf1e (diff)
downloadopenembedded-core-9ebcb2b6f41420ae3686afad03bb26a68cfacf95.tar.gz
openembedded-core-9ebcb2b6f41420ae3686afad03bb26a68cfacf95.tar.bz2
openembedded-core-9ebcb2b6f41420ae3686afad03bb26a68cfacf95.zip
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 <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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):
help, -h, --help: print this text
Examples:
+ runqemu
runqemu qemuarm
runqemu tmp/deploy/images/qemuarm
runqemu tmp/deploy/images/qemux86/<qemuboot.conf>
@@ -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()