summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-21 17:56:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-21 17:58:41 +0000
commit72867393fe2004ab9f0ee23eb09a975c82938b9e (patch)
tree30cbf826c0f47f93511061e265d70dc91a907077
parent66a34a7bdb83ad971c8842ea031f1b74e8d78cf3 (diff)
downloadopenembedded-core-contrib-72867393fe2004ab9f0ee23eb09a975c82938b9e.tar.gz
runqemu: Also specialcase resolution of '.' to the file's location
Similarly to handling "../", handle "." to resovle to the qemuconf file's current directory. (From OE-Core rev: 33418ed064fe9cff5b4803f09135a81d9170c189) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index b09cf1ceb8..cd9443595b 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -728,6 +728,8 @@ class BaseConfig(object):
k_upper = k.upper()
if v.startswith("../"):
v = os.path.abspath(os.path.dirname(self.qemuboot) + "/" + v)
+ elif v == ".":
+ v = os.path.dirname(self.qemuboot)
self.set(k_upper, v)
def validate_paths(self):