summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Rifenbark <srifenbark@gmail.com>2018-11-29 14:35:26 -0800
committerScott Rifenbark <srifenbark@gmail.com>2018-11-29 14:35:26 -0800
commit48d6a4e2195e5812ae192228da9d723e926801c0 (patch)
tree9b576a3b06853058a5ceca5027fdf96a79aa75ca
parent585389dc83aa377002b75ca348b2d789d0a97776 (diff)
Customizing the AGL Image Build: Added sstate section
Added a new section on how to use an sstate mirror from AGL. Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
-rw-r--r--docs/getting-started/image-workflow-cust-build.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/getting-started/image-workflow-cust-build.md b/docs/getting-started/image-workflow-cust-build.md
index 2e712a5..3b2355b 100644
--- a/docs/getting-started/image-workflow-cust-build.md
+++ b/docs/getting-started/image-workflow-cust-build.md
@@ -117,3 +117,20 @@ For the AGL build you can set the download directory by adding the following to
```bash
DL_DIR = "${HOME}/workspace_agl/downloads"
```
+
+## Using a Shared State (sstate) Mirror
+
+The underlying Yocto Project build system uses Shared State Mirrors to cache
+artifacts from previous builds.
+You can significantly speed up builds and guard against fetcher failures by
+using mirrors.
+To use mirrors, add this line to your `local.conf` file in the Build directory:
+
+```
+SSTATE_MIRRORS_append = " file://.* https://download.automotivelinux.org/sstate-mirror/master/${DEFAULTTUNE}/PATH \n "
+```
+
+You can learn more about shared state and how it is used in the
+"[Shared State Cache](https://yoctoproject.org/docs/2.4.4/ref-manual/ref-manual.html#shared-state-cache)"
+section of the Yocto Project Reference Manual.
+