From: Adrian Freihofer Date: Fri, 14 Oct 2022 06:52:47 +0000 (+0200) Subject: buildconf: compare abspath X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~2763 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0d45bcd34311ae248bac9378f46962198d148ef;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Adrian Freihofer Signed-off-by: Alexandre Belloni --- diff --git a/meta/lib/bblayers/buildconf.py b/meta/lib/bblayers/buildconf.py index e07fc534e1f..ccab332adfb 100644 --- a/meta/lib/bblayers/buildconf.py +++ b/meta/lib/bblayers/buildconf.py @@ -64,7 +64,7 @@ TEMPLATECONF={} . {}/oe-init-build-env build-try-{}""" oecore = None for l in layers: - if l[0] == os.path.abspath(args.layerpath): + if os.path.abspath(l[0]) == os.path.abspath(args.layerpath): targetlayer = l[0] if l[1] == 'meta': oecore = os.path.dirname(l[0])