From 6044d85fb8c178ac01411964880f9db6ac5044d3 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Wed, 24 Nov 2021 12:51:09 +0100 Subject: [PATCH] docs: Extended "layers" section in the user guide. Adding `.` was not intuitively for me, therefore an explicit comment on how to add both the repo and a subdir might be useful. Signed-off-by: Tobias Schmidl Signed-off-by: Jan Kiszka --- docs/userguide.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/userguide.rst b/docs/userguide.rst index 621ad73..6ef0c3f 100644 --- a/docs/userguide.rst +++ b/docs/userguide.rst @@ -392,6 +392,22 @@ Configuration reference Contains the layers from this repository that should be added to the ``bblayers.conf``. If this is missing or ``None`` or and empty dictionary, the path to the repo itself is added as a layer. + Additionally, ``.`` is a valid value if the repo itself should be added + as a layer. This allows combinations: + + .. code-block:: yaml + + repos: + meta-foo: + url: https://github.com/bar/meta-foo.git + path: layers/meta-foo + refspec: master + layers: + .: + contrib: + + This adds both ``layers/meta-foo`` and ``layers/meta-foo/contrib`` from + the ``meta-foo`` repository to ``bblayers.conf``. * ````: enum [optional] Adds the layer with ```` that is relative to the