Skip to contentSkip to conversation

test-manual: Add initial YP Compatible documentation

PATCH In review Richard Purdie 3 participants 6 messages Jun 8, 2021 – Jun 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test-manual: Add initial YP Compatible documentation

We need to document the Yocto Project Compatible badging programme. This adds an initial piece of documentation about it from which we can improve as needed.

---
 documentation/test-manual/index.rst           |  1 +
 .../test-manual/yocto-project-compatible.rst  | 52 +++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 documentation/test-manual/yocto-project-compatible.rst
documentation/test-manual/index.rst +1 -0
index d122b5e27..4c590a6aa 100644
@@ -14,6 +14,7 @@ Yocto Project Test Environment Manual
    test-process
    understand-autobuilder
    reproducible-builds
+   yocto-project-compatible
    history
 
 .. include:: /boilerplate.rst
documentation/test-manual/yocto-project-compatible.rst new file +52 -0

52 lines not on this page · raw message

Signature · 1 line
2.30.2
#1 lore raw

thanks Richard for sending this out. A first review with some minor nits.

Quoted 51 lines · Richard Purdie

We need to document the Yocto Project Compatible badging programme. This adds an initial piece of documentation about it from which we can improve as needed.

---
 documentation/test-manual/index.rst           |  1 +
 .../test-manual/yocto-project-compatible.rst  | 52 +++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 documentation/test-manual/yocto-project-compatible.rst
documentation/test-manual/index.rst +1 -0
index d122b5e27..4c590a6aa 100644
@@ -14,6 +14,7 @@ Yocto Project Test Environment Manual
    test-process
    understand-autobuilder
    reproducible-builds
+   yocto-project-compatible
    history
 
 .. include:: /boilerplate.rst
documentation/test-manual/yocto-project-compatible.rst new file +11 -0
new file mode 100644
index 000000000..372b701bc
@@ -0,0 +1,52 @@
+.. SPDX-License-Identifier: CC-BY-SA-2.0-UK
+
+************************
+Yocto Project Compatible
+************************
+
+============
+Introduction
+============
+
+After the introduction of layers to OpenEmbedded, it quickly became clear

that some layers were popular and worked well, others developed a reputation for being 'problematic'. Those were layers which didn't inter-operate well with other layers and tended to assume they controlled all the aspects of the end resulting output. This isn't usually intentional but because they're often developed by developers with a particular focus (e.g. a company's BSP) whilst the end users have a different focus (e.g. integrating that BSP into a product).

documentation/test-manual/yocto-project-compatible.rst new file +2 -0
+
+As a result of noticing patterns like this and friction between layers,
Quoted 8 lines

the project developed the "Yocto Project Compatible" badge programme where layers modelling the best known practises could be marked as being widely compatible with other layers. This takes the form of a set of yes/no binary answer questions where layers can declare if they have met the appropriate criteria. In the second version of the programme, a script was added to make validation easier and clearer, the script is called 'yocto-check-layer' and is available in OpenEmbedded-Core.

Insert link to
https://docs.yoctoproject.org/dev-manual/common-tasks.html?layer#making-sure-your-layer-is-compatible-with-yocto-project

Quoted 38 lines
documentation/test-manual/yocto-project-compatible.rst new file +6 -0
+
+========
+Benefits
+========
+
+The OpenEmbedded Layer model is powerful 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 these together such that the result inter-operates well together. Over time, the project has realised that there were things that work well in layers to allow them to operate together. There were also 'anti-patterns' which stopped layers working well together.

documentation/test-manual/yocto-project-compatible.rst new file +2 -0
+
+The intent of the compatibility programme is simple, if the layer passes

the compatibility tests, it is considered “well behaved” and should operate and cooperate well with other compatible layers.

documentation/test-manual/yocto-project-compatible.rst new file +2 -0
+
+The benefits of compatibility apply from multiple different user and

member perspectives. From a hardware perspective (a BSP layer), compatibility means the hardware can be used in many different products and use cases without impacting the software stacks being run with it. For a company developing a product, compatibility gives you a specification/standard you can require in a contract and then know it will have certain desired characteristics for interoperability. It also puts constraints on how invasive these code bases are into the rest of the system, meaning that multiple different separate hardware support layers can coexist (e.g. for multiple product lines from different manufacturers). This can also influence how easily those system components might be upgraded or maintained for security purposes by one or more parties during the lifecycle of a product through development and widespread use.

documentation/test-manual/yocto-project-compatible.rst new file +6 -0
+
+==================
+Validating a layer
+==================
+
+The badges are available to members of the project or open source
Quoted 4 lines

projects run on a non-commercial basis and are tried to the project member level as a member benefit but anyone can answer the questions and run the script.

tried -> tied

Quoted 8 lines
documentation/test-manual/yocto-project-compatible.rst new file +2 -0
+
+The project encourages all layer maintainers to consider the questions

and the output from the script against their layer as there are often unintentional consequences of the way some layers are constructed and the questions and script are designed to highlight commonly known issues which can often easily be solved leading to easier and wider layer use.

documentation/test-manual/yocto-project-compatible.rst new file +2 -0
+
+It is intended that over time, the tests will evolve as best known
Quoted 6 lines

practices are identified and as new interoperability issues are identified which unnecessarily restrict layer interoperability. If anyone becomes aware of either issue, please do mention it to the project (in our tech calls, on the mailing list or to the TSC). The TSC is holds overall responsibility for the technical criteria used by the programme.

is holds -> holds

Quoted 9 lines
documentation/test-manual/yocto-project-compatible.rst new file +4 -0
+
+Layers are divided into three types:
+
+* "BSP" or "hardware support" layers contain support for particular

pieces of hardware. This would include kernel and boot loader configuration, any recipes needed for firmware/modules needed for the hardware. They would usually correspond to a MACHINE setting.

documentation/test-manual/yocto-project-compatible.rst new file +2 -0
+
+* "distro" layers defined as layers providing configuration options and
Quoted 4 lines

settings such as a choice of init system, compiler/optimisation options or configuration and choices of software components. This would usually correspond to a DSITRO setting.

DISTRO

Quoted 7 lines
documentation/test-manual/yocto-project-compatible.rst new file +2 -0
+
+* "software" layers are usually recipes. A layer might target a

particular graphical UI or software stack component.

documentation/test-manual/yocto-project-compatible.rst new file +4 -0
+
+Key best practises the programme tries to encourage:
+
+* A layer should clearly show who maintains it, where change submissions
Quoted 6 lines

and bug reports should be sent
+* Where multiple types of functionality are present, the layer be internally subdivided into layers to separate these components as users would likely want to use only one of them and separability is a key best practise.

the layer be -> the layer should be?

Quoted 8 lines

+* Adding a layer to a build should not change that build without the user taking some additional step of configuration to active the layer (such as selecting a MACHINE, a DISTRO or a DISTRO_FEATURE)

documentation/test-manual/yocto-project-compatible.rst new file +2 -0
+
+The project does test the compatibility status of the core project layers

on the project autobuilder.

documentation/test-manual/yocto-project-compatible.rst new file +2 -0
+
+The official form to submit compatibility requests with is at
Quoted 4 lines

https://www.yoctoproject.org/ecosystem/branding/compatible-registration/.
Successful applicants can display the appropraiate badge which would be provided to them on success of the application.

:yocto_home: xxx

Quoted 8 lines

+
--
2.30.2

#2 lore raw

Hi Nico,

Thanks for the review!

Quoted 5 lines · Nicolas Dechesne

Insert link
to https://docs.yoctoproject.org/dev-manual/common-tasks.html?layer#making-sure-your-layer-is-compatible-with-yocto-project
<https://docs.yoctoproject.org/dev-manual/common-tasks.html?layer#making-sure-your-layer-is-compatible-with-yocto-project>

Done, in the V2 I'll share soon. However, this feels a bit weird as there is some overlap between both documents. Wouldn't it be better to add this reference at the end of the document instead?

Quoted 3 lines

tried -> tied

Fixed

Quoted 19 lines

+
+The project encourages all layer maintainers to consider the questions and the output from the script against their layer as there are often unintentional consequences of the way some layers are constructed and the questions and script are designed to highlight commonly known issues which can often easily be solved leading to easier and wider layer use.
+
+It is intended that over time, the tests will evolve as best known practices are identified and as new interoperability issues are identified which unnecessarily restrict layer interoperability. If anyone becomes aware of either issue, please do mention it to the project (in our tech calls, on the mailing list or to the TSC). The TSC is holds overall responsibility for the technical criteria used by the programme.

Quoted 1 line

is holds -> holds

Fixed

Quoted 9 lines

+* Where multiple types of functionality are present, the layer be internally subdivided into layers to separate these components as users would likely want to use only one of them and separability is a key best practise.

the layer be -> the layer should be?

Fixed

Quoted 16 lines

+* Adding a layer to a build should not change that build without the user taking some additional step of configuration to active the layer (such as selecting a MACHINE, a DISTRO or a DISTRO_FEATURE) +
+The project does test the compatibility status of the core project layers on the project autobuilder.
+
+The official form to submit compatibility requests with is at
https://www.yoctoproject.org/ecosystem/branding/compatible-registration/
<https://www.yoctoproject.org/ecosystem/branding/compatible-registration/>.
Successful applicants can display the appropraiate badge which would be provided to them on success of the application.

Quoted 1 line

:yocto_home: xxx

Fixed too, thanks!

The V2 for further review is coming next. Thanks in advance :)

Cheers,

Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw
In reply to Richard Purdie

Hi Richard,

Review

Quoted 2 lines · Richard Purdie
(quoted diff) +2 -0
+
+It is intended that over time, the tests will evolve as best known practices are identified and as new interoperability issues are identified which unnecessarily restrict layer interoperability. If anyone becomes aware of either issue, please do mention it to the project (in our tech calls, on the mailing list or to the TSC). The TSC is holds overall responsibility for the technical criteria used by the programme.

Would you have a link to contact the TSC, or at least a description of it? I couldn't find any, and that would be weird to suggest to contact the TSC without such a link.

Thanks in advance,

Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw
Quoted 10 lines · Michael Opdenacker

Hi Richard,

Review

Quoted 2 lines · Richard Purdie
(quoted diff) +2 -0
+
+It is intended that over time, the tests will evolve as best known practices are identified and as new interoperability issues are identified which unnecessarily restrict layer interoperability. If anyone becomes aware of either issue, please do mention it to the project (in our tech calls, on the mailing list or to the TSC). The TSC is holds overall responsibility for the technical criteria used by the programme.

Would you have a link to contact the TSC, or at least a description of it? I couldn't find any, and that would be weird to suggest to contact the TSC without such a link.

[email protected]

https://wiki.yoctoproject.org/wiki/TSC

Cheers,

Richard

#5 lore raw
Quoted 10 lines · Richard Purdie
Quoted 9 lines · Michael Opdenacker

Hi Richard,

Review

Quoted 2 lines · Richard Purdie
(quoted diff) +2 -0
+
+It is intended that over time, the tests will evolve as best known practices are identified and as new interoperability issues are identified which unnecessarily restrict layer interoperability. If anyone becomes aware of either issue, please do mention it to the project (in our tech calls, on the mailing list or to the TSC). The TSC is holds overall responsibility for the technical criteria used by the programme.

Would you have a link to contact the TSC, or at least a description of it? I couldn't find any, and that would be weird to suggest to contact the TSC without such a link.

Quoted 3 lines

[email protected]

https://wiki.yoctoproject.org/wiki/TSC

Thanks! Google didn't find the wiki.

Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com