summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/variables.rst
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/ref-manual/variables.rst')
-rw-r--r--documentation/ref-manual/variables.rst53
1 files changed, 53 insertions, 0 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 2e57abe16c..869100ce34 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -7905,6 +7905,31 @@ system and gives an overview of their function and contents.
7905 7905
7906 You can specify only a single URL in :term:`SOURCE_MIRROR_URL`. 7906 You can specify only a single URL in :term:`SOURCE_MIRROR_URL`.
7907 7907
7908 .. note::
7909
7910 If the mirror is protected behind a username and password, the
7911 :term:`build host` needs to be configured so the :term:`build system
7912 <OpenEmbedded Build System>` is able to fetch from the mirror.
7913
7914 The recommended way to do that is by setting the following parameters
7915 in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
7916 directory)::
7917
7918 machine example.com
7919 login <user>
7920 password <password>
7921
7922 This file requires permissions set to ``400`` or ``600`` to prevent
7923 other users from reading the file::
7924
7925 chmod 600 "$HOME/.netrc"
7926
7927 Another method to configure the username and password is from the URL
7928 in :term:`SOURCE_MIRROR_URL` directly, with the ``user`` and ``pswd``
7929 parameters::
7930
7931 SOURCE_MIRROR_URL = "http://example.com/my_source_mirror;user=<user>;pswd=<password>"
7932
7908 :term:`SPDX_ARCHIVE_PACKAGED` 7933 :term:`SPDX_ARCHIVE_PACKAGED`
7909 This option allows to add to :term:`SPDX` output compressed archives 7934 This option allows to add to :term:`SPDX` output compressed archives
7910 of the files in the generated target packages. 7935 of the files in the generated target packages.
@@ -8312,6 +8337,34 @@ system and gives an overview of their function and contents.
8312 file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \ 8337 file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
8313 file://.* file:///some-local-dir/sstate/PATH" 8338 file://.* file:///some-local-dir/sstate/PATH"
8314 8339
8340 .. note::
8341
8342 If the mirror is protected behind a username and password, the
8343 :term:`build host` needs to be configured so the :term:`build system
8344 <OpenEmbedded Build System>` is able to download the sstate cache using
8345 authentication.
8346
8347 The recommended way to do that is by setting the following parameters
8348 in ``$HOME/.netrc`` (``$HOME`` being the :term:`build host` home
8349 directory)::
8350
8351 machine someserver.tld
8352 login <user>
8353 password <password>
8354
8355 This file requires permissions set to ``400`` or ``600`` to prevent
8356 other users from reading the file::
8357
8358 chmod 600 "$HOME/.netrc"
8359
8360 Another method to configure the username and password is from the
8361 URL in :term:`SSTATE_MIRRORS` directly, with the ``user`` and ``pswd``
8362 parameters::
8363
8364 SSTATE_MIRRORS ?= "\
8365 file://.* https://someserver.tld/share/sstate/PATH;user=<user>;pswd=<password>;downloadfilename=PATH \
8366 "
8367
8315 The Yocto Project actually shares the cache data objects built by its 8368 The Yocto Project actually shares the cache data objects built by its
8316 autobuilder:: 8369 autobuilder::
8317 8370