mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
bitbake: doc: bitbake-user-manual-metadata: document the include_all directive
Document the include_all directive, which can be used to include multiple files present in the same location in different layers. (Bitbake rev: bd41f09c7fa67f917246a740fd4068e4588a1dcd) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
ad09c355d1
commit
00e30f557b
|
@ -900,6 +900,33 @@ definitions::
|
|||
of include . Doing so makes sure that an error is produced if the file cannot
|
||||
be found.
|
||||
|
||||
``include_all`` Directive
|
||||
-------------------------
|
||||
|
||||
The ``include_all`` directive works like the :ref:`include
|
||||
<bitbake-user-manual/bitbake-user-manual-metadata:\`\`include\`\` directive>`
|
||||
directive but will include all of the files that match the specified path in
|
||||
the enabled layers (layers part of :term:`BBLAYERS`).
|
||||
|
||||
For example, let's say a ``maintainers.inc`` file is present in different layers
|
||||
and is conventionally placed in the ``conf/distro/include`` directory of each
|
||||
layer. In that case the ``include_all`` directive can be used to include
|
||||
the ``maintainers.inc`` file for all of these layers::
|
||||
|
||||
include_all conf/distro/include/maintainers.inc
|
||||
|
||||
In other words, the ``maintainers.inc`` file for each layer is included through
|
||||
the :ref:`include <bitbake-user-manual/bitbake-user-manual-metadata:\`\`include\`\` directive>`
|
||||
directive.
|
||||
|
||||
BitBake will iterate through the colon-separated :term:`BBPATH` list to look for
|
||||
matching files to include, from left to right. As a consequence, matching files
|
||||
are included in that order.
|
||||
|
||||
As the ``include_all`` directive uses the :ref:`include
|
||||
<bitbake-user-manual/bitbake-user-manual-metadata:\`\`include\`\` directive>`
|
||||
directive in the background, no error is produced if no files are matched.
|
||||
|
||||
.. _require-inclusion:
|
||||
|
||||
``require`` Directive
|
||||
|
|
Loading…
Reference in New Issue
Block a user