diff options
| author | Antonin Godard <antonin.godard@bootlin.com> | 2026-01-09 10:32:59 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2026-01-26 18:54:18 +0000 |
| commit | ff118ede826a9ae45eb35025a5f7f612880fba01 (patch) | |
| tree | 186f30bddf8915e084188a21b86a73ff87d7c4f9 | |
| parent | d5bcc413d06cfc4cf7369080f1d16743ec38d6f2 (diff) | |
| download | poky-ff118ede826a9ae45eb35025a5f7f612880fba01.tar.gz | |
contributor-guide/recipe-style-guide.rst: explain difference between layer and recipe license(s)
Explain that the LICENSE set in a recipe does not apply to the recipe
file itself, but to the underlying software. The license of the recipe
file is the license provided in the layer itself. Give OpenEmbedded-Core
as an example for this.
Fixes [YOCTO #14410]
(From yocto-docs rev: 6799b1be5d48f4bf5dcd0b16c2dbc2e297d4ecd9)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit b8a56b8b2e8c0417b2f7204f80c79b05d95e9ce4)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | documentation/contributor-guide/recipe-style-guide.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/documentation/contributor-guide/recipe-style-guide.rst b/documentation/contributor-guide/recipe-style-guide.rst index 179c8daa77..737ec86ebe 100644 --- a/documentation/contributor-guide/recipe-style-guide.rst +++ b/documentation/contributor-guide/recipe-style-guide.rst | |||
| @@ -221,6 +221,20 @@ Recipes need to define both the :term:`LICENSE` and | |||
| 221 | ``meta/files/common-licenses/`` or the :term:`SPDXLICENSEMAP` flag names | 221 | ``meta/files/common-licenses/`` or the :term:`SPDXLICENSEMAP` flag names |
| 222 | defined in ``meta/conf/licenses.conf``. | 222 | defined in ``meta/conf/licenses.conf``. |
| 223 | 223 | ||
| 224 | .. note:: | ||
| 225 | |||
| 226 | Setting a :term:`LICENSE` in a recipe applies to the software to be built | ||
| 227 | by this recipe, not to the recipe file itself. The license of recipes, | ||
| 228 | configuration files and scripts should also be clearly specified, for | ||
| 229 | example via comments or via a license found in the :term:`layer` that | ||
| 230 | holds these files. These license files are usually found at the root of | ||
| 231 | the layer. Exceptions should be clearly stated in the layer README or | ||
| 232 | LICENSE file. | ||
| 233 | |||
| 234 | For example, the :term:`OpenEmbedded-Core (OE-Core)` layer provides both | ||
| 235 | the GPL-2.0-only and MIT license files, and a "LICENSE" file to explain | ||
| 236 | how these two licenses are attributed to files found in the layer. | ||
| 237 | |||
| 224 | - :term:`LIC_FILES_CHKSUM`: The OpenEmbedded build system uses this | 238 | - :term:`LIC_FILES_CHKSUM`: The OpenEmbedded build system uses this |
| 225 | variable to make sure the license text has not changed. If it has, | 239 | variable to make sure the license text has not changed. If it has, |
| 226 | the build produces an error and it affords you the chance to figure | 240 | the build produces an error and it affords you the chance to figure |
