Skip to contentSkip to conversation

Update yocto-check-layer documentation

PATCH Applied Antonin Godard 1 participant 5 messages Sep 26, 2025 – Sep 29, 2025

lore
Share & tools
lore
#0 lore raw

v3 cover Update yocto-check-layer documentation

---
Changes in v3:
- A third patch to update the list of tests.
- Move the --dependency flag before the --machines flag to avoid
confusion.
- Thanks Quentin for the above suggestions. :)
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Mention --dependency
- Pass layer dir as last argument after --
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Antonin Godard (3):
dev-manual/layers.rst: yocto-check-layer: mention --machines and --dependency test-manual/yocto-project-compatible.rst: fix a typo dev-manual/layers.rst: yocto-check-layer: update list of test

 documentation/dev-manual/layers.rst                | 35 ++++++++++++++++++++--
 .../test-manual/yocto-project-compatible.rst       |  2 +-
 2 files changed, 34 insertions(+), 3 deletions(-)

---
base-commit: e77139b5c616e6e5ad436eb91416fd804389425f
change-id: 20250919-update-compatible-doc-651debba8dfa

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>
#1 lore raw

PATCH v3 1/3 dev-manual/layers.rst: yocto-check-layer: mention --machines and --dependency

The yocto-check-layer script should be run with the --machines arguments to test the different machines present in a BSP layer. Mention it in the documentation. The --dependency can also be used so also mention that.

[YOCTO #15974]

---
 documentation/dev-manual/layers.rst | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
documentation/dev-manual/layers.rst +15 -0
index fbf3f1a33..4224a02b2 100644
@@ -376,6 +376,21 @@ directory::
 Be sure to provide the actual directory for your
 layer as part of the command.
 
+You should pass the dependencies of your layer using the ``--dependency``
+argument::
+
+   $ source oe-init-build-env
+   $ yocto-check-layer --dependency <layer1_directory> <layer2_directory> ... -- your_layer_directory
+
+For :term:`BSP <Board Support Package (BSP)>` layers, the ``--machines``
+argument should be passed as part of the command::
+
+   $ source oe-init-build-env
+   $ yocto-check-layer --machines <machine1> <machine2> ... -- your_layer_directory
+
+These machines are the ones present in your BSP layer, in the ``conf/machine/``
+directory.
+
 Entering the command causes the script to determine the type of layer
 and then to execute a set of specific tests against the layer. The
 following list overviews the test:
Signature · 1 line
2.51.0
#2 lore raw

PATCH v3 2/3 test-manual/yocto-project-compatible.rst: fix a typo

In reply to Antonin Godard

Fix a typo in yocto-project-compatible.rst.

---
 documentation/test-manual/yocto-project-compatible.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/test-manual/yocto-project-compatible.rst +1 -1
index 65d924fad9..7a2e00a99e 100644
@@ -38,7 +38,7 @@ Benefits
 and flexible: it gives users the ultimate power to change pretty much any
 aspect of the system but as with most things, power comes with responsibility.
 The Yocto Project would like to see people able to mix and match BSPs with
-distro configs or software stacks and be able to merge succesfully.
+distro configs or software stacks and be able to merge successfully.
 Over time, the project identified characteristics in layers that allow them
 to operate well together. "anti-patterns" were also found, preventing layers
 from working well together.
Signature · 1 line
2.51.0
author Applied
#3 lore raw

Re: [PATCH v3 2/3] test-manual/yocto-project-compatible.rst: fix a typo

Quoted 3 lines · Antonin Godard

Fix a typo in yocto-project-compatible.rst.

Applied, thanks!

[2/3] test-manual/yocto-project-compatible.rst: fix a typo

      commit: a84c234acfedfa714419006c743405e2f9acaedc

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>
#4 lore raw

PATCH v3 3/3 dev-manual/layers.rst: yocto-check-layer: update list of test

In reply to Antonin Godard

Update the lists of tests as found OE-Core as of commit 07747aa7390e ("piglit: rename virtual/opencl-icd to virtual/libopencl1").

Add a link to the test directory in case the list is update, users can still browse through the code.

---
 documentation/dev-manual/layers.rst | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)
documentation/dev-manual/layers.rst +18 -2
index 4224a02b2..cc7103ba6 100644
@@ -392,12 +392,17 @@ These machines are the ones present in your BSP layer, in the ``conf/machine/``
 directory.
 
 Entering the command causes the script to determine the type of layer
-and then to execute a set of specific tests against the layer. The
-following list overviews the test:
+and then to execute a set of specific tests against the layer.
+
+The following list overviews the test:
 
 -  ``common.test_readme``: Tests if a ``README`` file exists in the
    layer and the file is not empty.
 
+-  ``common.test_security``: Tests that the layer has a ``SECURITY.md``
+   (or similar) file, either in the layer itself or at the top of the containing
+   git repository.
+
 -  ``common.test_parse``: Tests to make sure that BitBake can parse the
    files without error (i.e. ``bitbake -p``).
 
@@ -406,6 +411,13 @@ following list overviews the test:
 
 -  ``common.test_world``: Verifies that ``bitbake world`` works.
 
+-  ``common.test_world_inherit_class``: Verifies that ``bitbake world`` works
+   when the :ref:`ref-classes-yocto-check-layer` class is inherited.
+
+-  ``common.test_patches_upstream_status``: Verifies that all the patch files
+   included in the layer contain a
+   :ref:`contributor-guide/recipe-style-guide:Patch Upstream Status`.
+
 -  ``common.test_signatures``: Tests to be sure that BSP and DISTRO
    layers do not come with recipes that change signatures.
 
@@ -431,6 +443,10 @@ following list overviews the test:
 -  ``distro.test_distro_no_set_distros``: Tests to ensure a DISTRO layer
    does not set the distribution when the layer is added.
 
+For a complete list of tests, see the :oe_git:`scripts/lib/checklayer/cases
+</openembedded-core/tree/scripts/lib/checklayer/cases>` directory in
+:term:`OpenEmbedded-Core (OE-Core)`.
+
 Enabling Your Layer
 ===================
 
Signature · 1 line
2.51.0