Hi Adrian,
Adrian Freihofer <[email protected]> escreveu no dia sexta,
14/10/2022 à(s) 07:53:
> 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 <[email protected]>
> ---
> meta/lib/bblayers/buildconf.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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-{}"""
> 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]
>
Maybe can be better to have the abspath of layerpath in targetlayer
layerpath = os.path.abspath(args.layerpath)
if os.path.abspath(l[0]) == layerpath:
targetlayer = layerpath
Jose
if l[1] == 'meta':
> oecore = os.path.dirname(l[0])
> --
> 2.37.3
>
>
>
>
>
--
Best regards,
José Quaresma
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#171728):
https://lists.openembedded.org/g/openembedded-core/message/171728
Mute This Topic: https://lists.openembedded.org/mt/94321973/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-