aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-03-29 15:44:09 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-30 10:14:14 +0100
commit14283700f8ec9dcb29cbc00c92d76173f1601bf5 (patch)
tree3bb86151122acd756c3ae5a81c375c81bfadd06f
parent00b1911c65fa1b21c3dedec40170998573b62178 (diff)
downloadopenembedded-core-contrib-14283700f8ec9dcb29cbc00c92d76173f1601bf5.tar.gz
scripts/lib/compatlayer: detect_layers always use realpath's
If you are using relative paths and change to other folder for execution it will fail, so use realpaths always. [YOCTO #11164] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/compatlayer/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/compatlayer/__init__.py b/scripts/lib/compatlayer/__init__.py
index 58f94b778b..087ac14148 100644
--- a/scripts/lib/compatlayer/__init__.py
+++ b/scripts/lib/compatlayer/__init__.py
@@ -112,6 +112,7 @@ def detect_layers(layer_directories, no_auto):
layers = []
for directory in layer_directories:
+ directory = os.path.realpath(directory)
if directory[-1] == '/':
directory = directory[0:-1]