summaryrefslogtreecommitdiffstats
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:11:03 +0000
commit3ee7dcf68b95d5ec652abba099f1ad0a03513622 (patch)
tree3cc708bf4c3710360ad2cbb5e2a989dc0e6655d6 /scripts
parent3acd0bf832066b82a28556a8c6e37513eb54969e (diff)
downloadpoky-3ee7dcf68b95d5ec652abba099f1ad0a03513622.tar.gz
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. (From OE-Core rev: dfc7940900d798aa47716288338107e1d46a3972) 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 ad88da38df..b09cf1ceb8 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -726,6 +726,8 @@ class BaseConfig(object):
726 cf.read(self.qemuboot) 726 cf.read(self.qemuboot)
727 for k, v in cf.items('config_bsp'): 727 for k, v in cf.items('config_bsp'):
728 k_upper = k.upper() 728 k_upper = k.upper()
729 if v.startswith("../"):
730 v = os.path.abspath(os.path.dirname(self.qemuboot) + "/" + v)
729 self.set(k_upper, v) 731 self.set(k_upper, v)
730 732
731 def validate_paths(self): 733 def validate_paths(self):