[oe-commits] [openembedded-core] 15/16: runqemu: improve when no machine specified

git at git.openembedded.org git at git.openembedded.org
Thu Mar 16 22:22:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit ca551b72a020782f164703765b97156000b908d2
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Thu Mar 16 03:13:24 2017 -0700

    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]
    
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/runqemu | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/runqemu b/scripts/runqemu
index 3e21724..cfdb0c5 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -443,6 +443,12 @@ class BaseConfig(object):
                         self.set("DEPLOY_DIR_IMAGE", p)
             self.check_arg_machine(unknown_arg)
 
+        if not (self.get('MACHINE') or self.get('DEPLOY_DIR_IMAGE')):
+            self.load_bitbake_env()
+            s = re.search('^DEPLOY_DIR_IMAGE="(.*)"', self.bitbake_e, re.M)
+            if s:
+                self.set("DEPLOY_DIR_IMAGE", s.group(1))
+
     def check_kvm(self):
         """Check kvm and kvm-host"""
         if not (self.kvm_enabled or self.vhost_enabled):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list