summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2021-11-19 16:56:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-12-13 23:31:34 +0000
commit2b578eae4e50774dd449282beb287e10b0485cbc (patch)
treef9b3f3fb713bc55318ed3552d3a0f536ceb31666 /documentation
parentb7693b7321bbc3f973d0f805a0da0b3469c10e7d (diff)
downloadpoky-2b578eae4e50774dd449282beb287e10b0485cbc.tar.gz
dev-manual: how to purge duplicate sstate cache files
(From yocto-docs rev: 113400eb47c13617f08b415bc9ddb4526429049c) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/dev-manual/common-tasks.rst25
1 files changed, 24 insertions, 1 deletions
diff --git a/documentation/dev-manual/common-tasks.rst b/documentation/dev-manual/common-tasks.rst
index a4c13ee258..e870cdb545 100644
--- a/documentation/dev-manual/common-tasks.rst
+++ b/documentation/dev-manual/common-tasks.rst
@@ -6240,8 +6240,11 @@ Changing the listed common targets is as easy as editing your version of
6240``conf-notes.txt`` in your custom template configuration directory and 6240``conf-notes.txt`` in your custom template configuration directory and
6241making sure you have ``TEMPLATECONF`` set to your directory. 6241making sure you have ``TEMPLATECONF`` set to your directory.
6242 6242
6243Conserving Disk Space
6244=====================
6245
6243Conserving Disk Space During Builds 6246Conserving Disk Space During Builds
6244=================================== 6247-----------------------------------
6245 6248
6246To help conserve disk space during builds, you can add the following 6249To help conserve disk space during builds, you can add the following
6247statement to your project's ``local.conf`` configuration file found in 6250statement to your project's ``local.conf`` configuration file found in
@@ -6255,6 +6258,26 @@ building a recipe once the recipe is built. For more information on
6255:ref:`rm_work <ref-classes-rm-work>` class in the 6258:ref:`rm_work <ref-classes-rm-work>` class in the
6256Yocto Project Reference Manual. 6259Yocto Project Reference Manual.
6257 6260
6261Purging Duplicate Shared State Cache Files
6262-------------------------------------------
6263
6264After multiple build iterations, the Shared State (sstate) cache can contain
6265duplicate cache files for a given package, while only the most recent one
6266is likely to be reusable. The following command purges all but the
6267newest sstate cache file for each package::
6268
6269 sstate-cache-management.sh --remove-duplicated --cache-dir=build/sstate-cache
6270
6271This command will ask you to confirm the deletions it identifies.
6272
6273Note::
6274
6275 The duplicated sstate cache files of one package must have the same
6276 architecture, which means that sstate cache files with multiple
6277 architectures are not considered as duplicate.
6278
6279Run ``sstate-cache-management.sh`` for more details about this script.
6280
6258Working with Packages 6281Working with Packages
6259===================== 6282=====================
6260 6283