[poky] [PATCH 4/8] sanity.bbclass: warn the user if BBPATH contains wrong entries
Andrei Gherzan
andrei at gherzan.ro
Thu Jun 21 14:24:05 PDT 2012
On Fri, Jun 22, 2012 at 12:14 AM, Martin Jansa <martin.jansa at gmail.com>wrote:
> On Fri, Jun 22, 2012 at 12:00:09AM +0300, Andrei Gherzan wrote:
> > In a qemumips build with master poky:
> >
> > WARNING: BBPATH references the current directory, either through an empty
> > entry, or a '.'.
> > This is unsafe and means your layer configuration is adding empty
> elements
> > to BBPATH.
> > Please check your layer.conf files and other BBPATH settings to remove
> the
> > current working directory references.
> >
> > And this is because BBPATH contains:
> >
> /home/agherzan/work/personal/yocto/poky-contrib/meta-yocto::/home/agherzan/work/personal/yocto/poky-contrib/meta
> >
> > Well it's strange that:
> > meta: BBPATH .= ":${LAYERDIR}"
> > meta-yocto: BBPATH := "${LAYERDIR}:${BBPATH}"
> >
> > This explains the way BBPATH above ended
> > like:
> /home/agherzan/work/personal/yocto/poky-contrib/meta-yocto::/home/agherzan/work/personal/yocto/poky-contrib/meta
> >
> > Why don't we assign BBPATH as this in meta:
> > BBPATH .= "${LAYERDIR}"
> >
> > And then in all other layers use: meta-yocto: BBPATH :=
> > "${LAYERDIR}:${BBPATH}". In this way the variable would be correctly
> > generated.
>
> IMHO it's better to change meta-yocto/conf/layer to
> BBPATH .= ":${LAYERDIR}"
> so the BBPATH order is the same as order of layers in bblayers.conf
>
> This wouldn't fix it. As BBPATH would still have an empty value: the first
-> ":bla:bla"
@g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20120622/a5e308ba/attachment.html>
More information about the poky
mailing list