summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorScott Rifenbark <srifenbark@gmail.com>2018-10-22 17:36:36 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-29 16:55:19 +0000
commit21c7646779302267fb02bb83a12aa601517c0523 (patch)
treef3a3070f07efb8ccfbdc7f5c93e92a10811045a1 /documentation
parent2520246d6781f40e3d1aab13abb5a01dd09a7594 (diff)
downloadpoky-21c7646779302267fb02bb83a12aa601517c0523.tar.gz
ref-manual: Updated SSTATE_MIRRORS variable description
Fixes [YOCTO #11107] Updated the SSTATE_MIRRORS variable description to include explanation of how to use regular expressions to map file locations to server-provided URLs to share sstate information. (From yocto-docs rev: 1357095864ee919f576de8df36f4e177b24fdd22) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/ref-manual/ref-variables.xml17
1 files changed, 16 insertions, 1 deletions
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml
index 1774ba24c0..5490bd3130 100644
--- a/documentation/ref-manual/ref-variables.xml
+++ b/documentation/ref-manual/ref-variables.xml
@@ -13657,7 +13657,7 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
13657 <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link> 13657 <link linkend='var-MIRRORS'><filename>MIRRORS</filename></link>
13658 and <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link> 13658 and <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link>
13659 and points to the cache locations to check for the shared 13659 and points to the cache locations to check for the shared
13660 objects. 13660 state (sstate) objects.
13661 </para> 13661 </para>
13662 13662
13663 <para> 13663 <para>
@@ -13670,6 +13670,21 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
13670 </para> 13670 </para>
13671 13671
13672 <para> 13672 <para>
13673 If you want to use native sstate artifacts that are
13674 provided by a server, you need to configure
13675 <filename>SSTATE_MIRROR</filename> regular expressions
13676 so that the local search paths get mapped to paths
13677 provided by the server.
13678 The server paths must take into account the GCC versions.
13679 For example, the following maps the local search path
13680 <filename>universal-4.9</filename> to the server-provided
13681 path <replaceable>server_url_sstate_path</replaceable>:
13682 <literallayout class='monospaced'>
13683 SSTATE_MIRRORS ?= file://universal-4.9/(.*) http://<replaceable>server_url_sstate_path</replaceable>/universal-4.8/\1 \n
13684 </literallayout>
13685 </para>
13686
13687 <para>
13673 If a mirror uses the same structure as 13688 If a mirror uses the same structure as
13674 <link linkend='var-SSTATE_DIR'><filename>SSTATE_DIR</filename></link>, 13689 <link linkend='var-SSTATE_DIR'><filename>SSTATE_DIR</filename></link>,
13675 you need to add 13690 you need to add