diff options
| author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2023-07-31 19:54:16 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-08-02 04:47:13 -1000 |
| commit | fa7dd8ac75a98c04a4ca2cf90882c2b1c27b9679 (patch) | |
| tree | a31418409568265b8d0fabbeb37fd3f75b752185 /documentation/ref-manual/images.rst | |
| parent | 96404a7c4c577fef4416d515fa3f4af96664ff65 (diff) | |
| download | poky-fa7dd8ac75a98c04a4ca2cf90882c2b1c27b9679.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: 4dfef81ac6164764c6541e39a9fef81d49227096)
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/images.rst')
| -rw-r--r-- | documentation/ref-manual/images.rst | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/documentation/ref-manual/images.rst b/documentation/ref-manual/images.rst index 31fb567687..33e5b53d9f 100644 --- a/documentation/ref-manual/images.rst +++ b/documentation/ref-manual/images.rst | |||
| @@ -14,15 +14,17 @@ image you want. | |||
| 14 | Building an image without GNU General Public License Version 3 | 14 | Building an image without GNU General Public License Version 3 |
| 15 | (GPLv3), GNU Lesser General Public License Version 3 (LGPLv3), and | 15 | (GPLv3), GNU Lesser General Public License Version 3 (LGPLv3), and |
| 16 | the GNU Affero General Public License Version 3 (AGPL-3.0) components | 16 | the GNU Affero General Public License Version 3 (AGPL-3.0) components |
| 17 | is only supported for minimal and base images. Furthermore, if you | 17 | is only tested for core-image-minimal image. Furthermore, if you would like to |
| 18 | are going to build an image using non-GPLv3 and similarly licensed | 18 | build an image and verify that it does not include GPLv3 and similarly licensed |
| 19 | components, you must make the following changes in the ``local.conf`` | 19 | components, you must make the following changes in the image recipe |
| 20 | file before using the BitBake command to build the minimal or base | 20 | file before using the BitBake command to build the image: |
| 21 | image:: | ||
| 22 | 21 | ||
| 23 | 1. Comment out the EXTRA_IMAGE_FEATURES line | 22 | INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0*" |
| 24 | 2. Set INCOMPATIBLE_LICENSE = "GPL-3.0* LGPL-3.0* AGPL-3.0*" | ||
| 25 | 23 | ||
| 24 | Alternatively, you can adjust ``local.conf`` file, repeating and adjusting the line | ||
| 25 | for all images where the license restriction must apply: | ||
| 26 | |||
| 27 | INCOMPATIBLE_LICENSE:pn-your-image-name = "GPL-3.0* LGPL-3.0*" | ||
| 26 | 28 | ||
| 27 | From within the ``poky`` Git repository, you can use the following | 29 | From within the ``poky`` Git repository, you can use the following |
| 28 | command to display the list of directories within the :term:`Source Directory` | 30 | command to display the list of directories within the :term:`Source Directory` |
