[oe-commits] [openembedded-core] 104/122: runqemu: Improve relative path handling in qemuconf files

git at git.openembedded.org git at git.openembedded.org
Mon Dec 4 17:26:22 UTC 2017


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

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

commit 61c449857f056d7c6c29530aa11bf8353b113638
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Nov 21 11:37:39 2017 +0000

    runqemu: Improve relative path handling in qemuconf files
    
    If a variable starts with "../", its likely its a path and we want to
    set it to an absolute path relative to the qemuconf file.
    
    This means we don't have to use bitbake as often to figure out variables.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    (cherry picked from commit dfc7940900d798aa47716288338107e1d46a3972)
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 scripts/runqemu | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/runqemu b/scripts/runqemu
index 6ea370d..ef6d5f0 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -726,6 +726,8 @@ class BaseConfig(object):
         cf.read(self.qemuboot)
         for k, v in cf.items('config_bsp'):
             k_upper = k.upper()
+            if v.startswith("../"):
+                v = os.path.abspath(os.path.dirname(self.qemuboot) + "/" + v)
             self.set(k_upper, v)
 
     def validate_paths(self):

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


More information about the Openembedded-commits mailing list