[OE-core] [PATCH v2 1/6] yocto-compat-layer.py: avoid adding layers more than once

Christopher Larson kergoth at gmail.com
Tue Jun 27 22:46:55 UTC 2017


On Tue, Jun 27, 2017 at 8:33 AM, Patrick Ohly <patrick.ohly at intel.com>
wrote:

> add_layer_dependencies() might get called more than once, or one of
> the layer dependencies might already be present. The function should
> not add layers again because doing so can cause warnings like:
>
>   WARNING: Duplicate inclusion for .../meta-openembedded/meta-oe/conf
> /distro/include/meta_oe_security_flags.inc in
> .../meta-openembedded/meta-oe/conf/layer.conf
>
> Signed-off-by: Patrick Ohly <patrick.ohly at intel.com>
> ---
>

I’m curious about why this isn’t either just calling out to `bitbake-layers
add-layer` or using one of the existing functions we have for modifying
bblayers, rather than doing its own +=.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170627/4773d7da/attachment-0002.html>


More information about the Openembedded-core mailing list