diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-21 17:56:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-04 17:24:00 +0000 |
commit | d0640da88e1944ca35202030cdca3f2df0262a75 (patch) | |
tree | 1d26de576ccf56d1cba327770c75b41c97ed3f1c | |
parent | 776fb3184442473ac483ffde468b57dbda910ccb (diff) | |
download | poky-d0640da88e1944ca35202030cdca3f2df0262a75.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: 9870247d0dc33357988d9636c8ff8db35490752e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 33418ed064fe9cff5b4803f09135a81d9170c189)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/runqemu | 2 |
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): | |||
728 | k_upper = k.upper() | 728 | k_upper = k.upper() |
729 | if v.startswith("../"): | 729 | if v.startswith("../"): |
730 | v = os.path.abspath(os.path.dirname(self.qemuboot) + "/" + v) | 730 | v = os.path.abspath(os.path.dirname(self.qemuboot) + "/" + v) |
731 | elif v == ".": | ||
732 | v = os.path.dirname(self.qemuboot) | ||
731 | self.set(k_upper, v) | 733 | self.set(k_upper, v) |
732 | 734 | ||
733 | def validate_paths(self): | 735 | def validate_paths(self): |