diff options
author | 2018-11-29 14:35:26 -0800 | |
---|---|---|
committer | 2018-11-29 14:35:26 -0800 | |
commit | 48d6a4e2195e5812ae192228da9d723e926801c0 (patch) | |
tree | 9b576a3b06853058a5ceca5027fdf96a79aa75ca /docs | |
parent | 585389dc83aa377002b75ca348b2d789d0a97776 (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>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/getting-started/image-workflow-cust-build.md | 17 |
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. + |