From 48d6a4e2195e5812ae192228da9d723e926801c0 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 29 Nov 2018 14:35:26 -0800 Subject: 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 --- docs/getting-started/image-workflow-cust-build.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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. + -- cgit 1.2.3-korg