summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2022-10-28 11:15:38 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-07 21:31:32 +0000
commita6f7c43e9229031483af906d5c119f3a9346b9b2 (patch)
tree8bdae1ae06f35b5efbe82a4cd16813c1c55da614 /documentation
parentd16cdfae31e82e1760e8b04e0d40ab8fedc88b2f (diff)
downloadpoky-a6f7c43e9229031483af906d5c119f3a9346b9b2.tar.gz
ref-manual: variables.rst: document spdx-create class variables
(From yocto-docs rev: fd9ee9e1701a90c19d4957ec387e0ad17757aa06) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/ref-manual/variables.rst82
1 files changed, 82 insertions, 0 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index dc6eccb314..0cc73a234c 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -7284,6 +7284,88 @@ system and gives an overview of their function and contents.
7284 7284
7285 You can specify only a single URL in :term:`SOURCE_MIRROR_URL`. 7285 You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
7286 7286
7287 :term:`SPDX_ARCHIVE_PACKAGED`
7288 This option allows to add to :term:`SPDX` output compressed archives
7289 of the files in the generated target packages.
7290
7291 Such archives are available in
7292 ``tmp/deploy/spdx/MACHINE/packages/packagename.tar.zst``
7293 under the :term:`Build Directory`.
7294
7295 Enable this option as follows::
7296
7297 SPDX_ARCHIVE_PACKAGED = "1"
7298
7299 According to our tests on release 4.1 "langdale", building
7300 ``core-image-minimal`` for the ``qemux86-64`` machine, enabling this
7301 option multiplied the size of the ``tmp/deploy/spdx`` directory by a
7302 factor of 13 (+1.6 GiB for this image), compared to just using the
7303 :ref:`create-spdx <ref-classes-create-spdx>` class with no option.
7304
7305 Note that this option doesn't increase the size of :term:`SPDX`
7306 files in ``tmp/deploy/images/MACHINE``.
7307
7308 :term:`SPDX_ARCHIVE_SOURCES`
7309 This option allows to add to :term:`SPDX` output compressed archives
7310 of the sources for packages installed on the target. It currently
7311 only works when :term:`SPDX_INCLUDE_SOURCES` is set.
7312
7313 This is one way of fulfilling "source code access" license
7314 requirements.
7315
7316 Such source archives are available in
7317 ``tmp/deploy/spdx/MACHINE/recipes/recipe-packagename.tar.zst``
7318 under the :term:`Build Directory`.
7319
7320 Enable this option as follows::
7321
7322 SPDX_INCLUDE_SOURCES = "1"
7323 SPDX_ARCHIVE_SOURCES = "1"
7324
7325 According to our tests on release 4.1 "langdale", building
7326 ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
7327 these options multiplied the size of the ``tmp/deploy/spdx``
7328 directory by a factor of 11 (+1.4 GiB for this image),
7329 compared to just using the :ref:`create-spdx <ref-classes-create-spdx>`
7330 class with no option.
7331
7332 Note that using this option only marginally increases the size
7333 of the :term:`SPDX` output in ``tmp/deploy/images/MACHINE/``
7334 (+ 0.07\% with the tested image), compared to just enabling
7335 :term:`SPDX_INCLUDE_SOURCES`.
7336
7337 :term:`SPDX_INCLUDE_SOURCES`
7338 This option allows to add a description of the source files used to build
7339 the host tools and the target packages, to the ``spdx.json`` files in
7340 ``tmp/deploy/spdx/MACHINE/recipes/`` under the :term:`Build Directory`.
7341 As a consequence, the ``spdx.json`` files under the ``by-namespace`` and
7342 ``packages`` subdirectories in ``tmp/deploy/spdx/MACHINE`` are also
7343 modified to include references to such source file descriptions.
7344
7345 Enable this option as follows::
7346
7347 SPDX_INCLUDE_SOURCES = "1"
7348
7349 According to our tests on release 4.1 "langdale", building
7350 ``core-image-minimal`` for the ``qemux86-64`` machine, enabling
7351 this option multiplied the total size of the ``tmp/deploy/spdx``
7352 directory by a factor of 3 (+291 MiB for this image),
7353 and the size of the ``IMAGE-MACHINE.spdx.tar.zst`` in
7354 ``tmp/deploy/images/MACHINE`` by a factor of 130 (+15 MiB for this
7355 image), compared to just using the
7356 :ref:`create-spdx <ref-classes-create-spdx>` class with no option.
7357
7358 :term:`SPDX_PRETTY`
7359 This option makes the SPDX output more human-readable, using
7360 identation and newlines, instead of the default output in a
7361 single line::
7362
7363 SPDX_PRETTY = "1"
7364
7365 The generated SPDX files are approximately 20% bigger, but
7366 this option is recommended if you want to inspect the SPDX
7367 output files with a text editor.
7368
7287 :term:`SPDXLICENSEMAP` 7369 :term:`SPDXLICENSEMAP`
7288 Maps commonly used license names to their SPDX counterparts found in 7370 Maps commonly used license names to their SPDX counterparts found in
7289 ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP` 7371 ``meta/files/common-licenses/``. For the default :term:`SPDXLICENSEMAP`