aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-21 11:37:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-21 13:10:12 +0000
commitdfc7940900d798aa47716288338107e1d46a3972 (patch)
tree0e65ead6ce6d7e1f9c6e33ff9584ab81619bdee1 /scripts
parente8648a022c93175d84baf3852d4d364b19d8d795 (diff)
downloadopenembedded-core-dfc7940900d798aa47716288338107e1d46a3972.zip
openembedded-core-dfc7940900d798aa47716288338107e1d46a3972.tar.gz
openembedded-core-dfc7940900d798aa47716288338107e1d46a3972.tar.bz2
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@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index ad88da3..b09cf1c 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):