aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
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-12-04 17:14:35 +0000
commit9870247d0dc33357988d9636c8ff8db35490752e (patch)
tree7a4ee31c3e921b3b19588f46c0169b1e351424a7 /scripts
parent0abd3c25cb2a9a9be9dc650a1600d3902d5779a9 (diff)
downloadopenembedded-core-9870247d0dc33357988d9636c8ff8db35490752e.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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 33418ed064fe9cff5b4803f09135a81d9170c189) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index ef6d5f0012..7228384271 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):