diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-03-16 03:13:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-16 22:11:32 +0000 |
commit | ac451ea84cbb111917331c1126ab591d313e9ead (patch) | |
tree | 9bca9a437df22d2752e885a11045f591d1b1ca6d /scripts/runqemu | |
parent | bbdbdcaf06354933ad3ff0301e4c42ffeb7e3c61 (diff) | |
download | poky-ac451ea84cbb111917331c1126ab591d313e9ead.tar.gz |
runqemu: improve when no machine specified
Fixed:
$ runqemu core-image-minimal
[snip]
Exception: FSTYPE is NULL!
[snip]
Get DEPLOY_DIR_IMAGE from "bitbake -e" to make it work.
[YOCTO #10471]
(From OE-Core rev: ca551b72a020782f164703765b97156000b908d2)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 3e2172434c..cfdb0c53fb 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -443,6 +443,12 @@ class BaseConfig(object): | |||
443 | self.set("DEPLOY_DIR_IMAGE", p) | 443 | self.set("DEPLOY_DIR_IMAGE", p) |
444 | self.check_arg_machine(unknown_arg) | 444 | self.check_arg_machine(unknown_arg) |
445 | 445 | ||
446 | if not (self.get('MACHINE') or self.get('DEPLOY_DIR_IMAGE')): | ||
447 | self.load_bitbake_env() | ||
448 | s = re.search('^DEPLOY_DIR_IMAGE="(.*)"', self.bitbake_e, re.M) | ||
449 | if s: | ||
450 | self.set("DEPLOY_DIR_IMAGE", s.group(1)) | ||
451 | |||
446 | def check_kvm(self): | 452 | def check_kvm(self): |
447 | """Check kvm and kvm-host""" | 453 | """Check kvm and kvm-host""" |
448 | if not (self.kvm_enabled or self.vhost_enabled): | 454 | if not (self.kvm_enabled or self.vhost_enabled): |