From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.537.1796232647192769192 for ; Wed, 02 Dec 2026 09:30:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Kt9JVmt1; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.42, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4bb70074ab2so140116545e9.0 for ; Wed, 02 Dec 2026 09:30:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1796232646; x=1796837446; darn=lists.yoctoproject.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=nUcNyw9SATXqCHG9FUGdMuoovkrkdc8Vy4ESfhhft9s=; b=Kt9JVmt1kMt2LrqM+7p5zaxamrkYBJb930HPgbTU3s4ZXpaUf56O4wfOE7Ul67f+ey tVaWtGvsRh0LSl10Xk+aGm+a7w2DzKsvI/3OGrrTca8pvUNl36FWR2OqsZqHAvJ+icz5 F6DqokDZSqZg1sgF4W1J1mPAW1lq93unhDNzI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796232646; x=1796837446; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=nUcNyw9SATXqCHG9FUGdMuoovkrkdc8Vy4ESfhhft9s=; b=CNgHE2Lje7jpiJVB7g3NLZRzuwAFzW6w8oog5Pr4vBx0bvzSRvGREzYokiU7P86pGy ZWsbF6UjEI1xjVO1zK1LDbQ8vI6uALBZSkJEIEgPoXofG+CbQupFCfvzk2je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g0MBzrpsDgsukJBHqefxp6eQyK1AY+NBFJ2FOpTK/3oNF+gUN04ZJ1DuGZTfwBwfRhRNcYjn5N T1v4cHlmyYX+etsC6vw== X-Received: by 2002:a05:600c:46cc:b0:4bb:6f41:399f with SMTP id 5b1f17b1804b1-4bb888236a3mr843504725e9.24.1796232645560; Wed, 02 Dec 2026 09:30:45 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8b0:aba:5f3c:4afb:ca07:c420:e54d? ([2001:8b0:aba:5f3c:4afb:ca07:c420:e54d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b1ed8b6a05sm52212227f8f.43.2026.12.02.09.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 09:30:44 -0800 (PST) Message-ID: <9727e5083660211b7fa5b17ae02ae26acc93db81.camel@linuxfoundation.org> Subject: Re: [docs] [PATCH 01/18] ref-manual/layers.rst: add document From: Richard Purdie To: antonin.godard@bootlin.com, docs@lists.yoctoproject.org Cc: Thomas Petazzoni Date: Wed, 02 Dec 2026 17:30:41 +0000 In-Reply-To: <20261202-layer-conf-changes-v1-1-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> <20261202-layer-conf-changes-v1-1-da34d4c770c6@bootlin.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-10build1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 17:30:54 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10908 On Wed, 2026-12-02 at 15:55 +0100, Antonin Godard via docs wrote: > + > +At a minimum, this file should contain the following variable assignment= s:: > + > +=C2=A0=C2=A0 LAYERNAME =3D "meta-example" > +=C2=A0=C2=A0 LAYERVERSION =3D "1" > +=C2=A0=C2=A0 LAYERDEPENDS =3D "oe-core ..." > +=C2=A0=C2=A0 LAYERSERIES_COMPAT =3D "garburn" Technically, you don't need LAYERVERSION since it defaults to 1. It depends whether this is what is the actual minimal or recommended... > +See each variable's definition in the :doc:`variable glossary > +` for more information. > + > +In addition to these variables: > + > +-=C2=A0 Only the variable prefixes listed in :term:`LAYER_PASSTHROUGH_VA= RS_PREFIXES` > +=C2=A0=C2=A0 are allowed to be set from the :ref:`structure-conf-layer.c= onf` file. The > +=C2=A0=C2=A0 :term:`OpenEmbedded-Core (OE-Core)` layer sets this variabl= e. > + > +=C2=A0=C2=A0 .. note:: > + > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 While not recommended, a layer can overri= de the > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` v= ariable to allow other variables > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 to be set from the :ref:`structure-conf-l= ayer.conf` file. > + > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 This layer must set *the entire list* of = prefixes with a regular ``=3D`` > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 assignment. It also must be the first one= setting the > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` v= ariable in the :term:`BBLAYERS` > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 list. As a consequence, any other stateme= nt made by another layer setting > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 or appending the :term:`LAYER_PASSTHROUGH= _VARS_PREFIXES` variable is > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ignored. I'd like to suggest people use +=3D on the values. This makes it clearer to people it will get appended. > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 If setting a global variable is required,= it is recommended to do so from > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 a distro :term:`configuration file` or fr= om a :term:`configuration > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fragment`. > + > +=C2=A0=C2=A0 .. warning:: > + > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Any other variables set in this file will= have no effect! To set a > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 variable from a layer configuration file,= which only affects the scope of > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 the :term:`metadata` part of the layer, s= ee the > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :ref:`structure-conf-layervars.conf` file= definition. > + > +-=C2=A0 The :ref:`addpylib +=C2=A0=C2=A0 Python Library Code>` directive can be used to make an inte= rnal Python > +=C2=A0=C2=A0 library available to the :term:`metadata`. > + > +.. _structure-conf-layervars.conf: > + > +``conf/layervars.conf`` > +----------------------- > + > +The :ref:`structure-conf-layervars.conf` is, like > +:ref:`structure-conf-layer.conf`, part of the layer's ``conf/`` director= y, and > +can contain variable assignments. Those assignments only affect the > +:term:`metadata` part of the layer itself *without affecting the global = scope*. > + > +For example, if a layer provides a global :doc:`class `, > +but this class only makes sense for the recipes part of the layer, then = one > +could write the following in :ref:`structure-conf-layervars.conf`:: > + > +=C2=A0=C2=A0 INHERIT +=3D "myclass" > + > +This class would be inherited only by the recipes part of the layer cont= aining > +the file, but other recipes *not* part of the layer would not inherit th= at > +class. Should we note it does not apply to bbappend files? > +Layer Metadata > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +A layer can contain various forms of :term:`metadata`. The aim of this s= ection > +is not to explain what each of these types of :term:`metadata` do, but r= ather > +enumerate and link to each part of the documentation associated with the= m: > + > +-=C2=A0 Recipes: see the :ref:`bitbake-user-manual/bitbake-user-manual-i= ntro:Recipes` > +=C2=A0=C2=A0 section for more information. > + > +-=C2=A0 Append files (bbappends): see the :ref:`bitbake:append-bbappend-= files` > +=C2=A0=C2=A0 section for information. > + > +-=C2=A0 Configuration files: > + > +=C2=A0=C2=A0 -=C2=A0 Machine configuration files, see the :ref:`bsp-manu= al/bsp:Hardware > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Configuration Options` section for more i= nformation. > + > +=C2=A0=C2=A0 -=C2=A0 Distro configuration files, see the :doc:`/dev-manu= al/custom-distribution` > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 section for more information. > + > +=C2=A0=C2=A0 -=C2=A0 Configuration Fragments: see the :doc:`/dev-manual/= creating-fragments` > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 section for more information. > + > +-=C2=A0 :doc:`classes `: expected to be found by > +=C2=A0=C2=A0 :term:`BitBake` in any of the ``classes/``, ``classes-globa= l/``, and > +=C2=A0=C2=A0 ``classes-recipe/`` directories at the root of the layer. > + > +=C2=A0=C2=A0 See the :doc:`/ref-manual/classes` section for more informa= tion on classes. > + > +-=C2=A0 Internal Python libraries: see the > +=C2=A0=C2=A0 :ref:`bitbake-user-manual/bitbake-user-manual-metadata:Exte= nding > +=C2=A0=C2=A0 Python Library Code` section for more information. > + > +Additional Information on Layers > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > + > +The BitBake User Manual contains additional information on layers which = can be > +found here: > + > +-=C2=A0 :ref:`bitbake-user-manual/bitbake-user-manual-execution:Locating= and Parsing Recipes`. > +-=C2=A0 :ref:`bitbake-user-manual/bitbake-user-manual-execution:Dynamic = Recipes and Append Files`. > +-=C2=A0 :ref:`bitbake-user-manual/bitbake-user-manual-execution:Parsing = Order And Priorities`. Should we recommend yocto-check-layer here somewhere? Cheers, Richard