diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-07-28 18:50:26 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-08-15 06:18:49 -1000 |
| commit | 21be91b403f3cec5922ffa99a597f4e7f55688de (patch) | |
| tree | 777b8dbd2caacb251dfe968d80cec74786cae393 /documentation/ref-manual/variables.rst | |
| parent | 998d1cf1d9505344b630f9d80918a0e77d5585e1 (diff) | |
| download | poky-21be91b403f3cec5922ffa99a597f4e7f55688de.tar.gz | |
ref-manual: document image-specific variant of INCOMPATIBLE_LICENSE
This has been around without being properly documented since 2019 (!!!),
and is nowadays the preferred method for enforcing license restrictions,
especially since meta-gplv2 is officially obsolete.
(From yocto-docs rev: 40d3cb5257fea3669efe28e534e5f9479a2837b3)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation/ref-manual/variables.rst')
| -rw-r--r-- | documentation/ref-manual/variables.rst | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index fc29e476cd..3f10efabc7 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
| @@ -3845,9 +3845,18 @@ system and gives an overview of their function and contents. | |||
| 3845 | :term:`INCOMPATIBLE_LICENSE` | 3845 | :term:`INCOMPATIBLE_LICENSE` |
| 3846 | Specifies a space-separated list of license names (as they would | 3846 | Specifies a space-separated list of license names (as they would |
| 3847 | appear in :term:`LICENSE`) that should be excluded | 3847 | appear in :term:`LICENSE`) that should be excluded |
| 3848 | from the build. Recipes that provide no alternatives to listed | 3848 | from the build (if set globally), or from an image (if set locally |
| 3849 | in an image recipe). | ||
| 3850 | |||
| 3851 | When the variable is set globally, recipes that provide no alternatives to listed | ||
| 3849 | incompatible licenses are not built. Packages that are individually | 3852 | incompatible licenses are not built. Packages that are individually |
| 3850 | licensed with the specified incompatible licenses will be deleted. | 3853 | licensed with the specified incompatible licenses will be deleted. |
| 3854 | Most of the time this does not allow a feasible build (because it becomes impossible | ||
| 3855 | to satisfy build time dependencies), so the recommended way to | ||
| 3856 | implement license restrictions is to set the variable in specific | ||
| 3857 | image recipes where the restrictions must apply. That way there | ||
| 3858 | are no build time restrictions, but the license check is still | ||
| 3859 | performed when the image's filesystem is assembled from packages. | ||
| 3851 | 3860 | ||
| 3852 | There is some support for wildcards in this variable's value, | 3861 | There is some support for wildcards in this variable's value, |
| 3853 | however it is restricted to specific licenses. Currently only | 3862 | however it is restricted to specific licenses. Currently only |
