瀏覽代碼

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>
Richard Purdie 7 年之前
父節點
當前提交
72867393fe
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scripts/runqemu

+ 2 - 0
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):