diff options
author | Adrian Freihofer <adrian.freihofer@gmail.com> | 2022-10-14 08:52:47 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-09 17:42:14 +0000 |
commit | 290ce3525fc4c5cb9c3f98c7a2c90a5007971b00 (patch) | |
tree | 9e566775227cb636510f957af0e59e347e5a4f74 /meta | |
parent | c3911e12f68c0aebe21267e380e1c287a28c822a (diff) | |
download | poky-290ce3525fc4c5cb9c3f98c7a2c90a5007971b00.tar.gz |
buildconf: compare abspath
We have something like ${TOPDIR}/../../poky/meta in the bblayers.conf
file. This does not work without normalizing the path for comparison.
(From OE-Core rev: 803975aff35c9423f4bde4c0201d0f61242389e0)
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit e0d45bcd34311ae248bac9378f46962198d148ef)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/bblayers/buildconf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/bblayers/buildconf.py b/meta/lib/bblayers/buildconf.py index e07fc534e1..ccab332adf 100644 --- a/meta/lib/bblayers/buildconf.py +++ b/meta/lib/bblayers/buildconf.py | |||
@@ -64,7 +64,7 @@ TEMPLATECONF={} . {}/oe-init-build-env build-try-{}""" | |||
64 | oecore = None | 64 | oecore = None |
65 | 65 | ||
66 | for l in layers: | 66 | for l in layers: |
67 | if l[0] == os.path.abspath(args.layerpath): | 67 | if os.path.abspath(l[0]) == os.path.abspath(args.layerpath): |
68 | targetlayer = l[0] | 68 | targetlayer = l[0] |
69 | if l[1] == 'meta': | 69 | if l[1] == 'meta': |
70 | oecore = os.path.dirname(l[0]) | 70 | oecore = os.path.dirname(l[0]) |