diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2021-11-19 16:56:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-13 23:31:34 +0000 |
commit | 2b578eae4e50774dd449282beb287e10b0485cbc (patch) | |
tree | f9b3f3fb713bc55318ed3552d3a0f536ceb31666 /documentation | |
parent | b7693b7321bbc3f973d0f805a0da0b3469c10e7d (diff) | |
download | poky-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.rst | 25 |
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 |
6241 | making sure you have ``TEMPLATECONF`` set to your directory. | 6241 | making sure you have ``TEMPLATECONF`` set to your directory. |
6242 | 6242 | ||
6243 | Conserving Disk Space | ||
6244 | ===================== | ||
6245 | |||
6243 | Conserving Disk Space During Builds | 6246 | Conserving Disk Space During Builds |
6244 | =================================== | 6247 | ----------------------------------- |
6245 | 6248 | ||
6246 | To help conserve disk space during builds, you can add the following | 6249 | To help conserve disk space during builds, you can add the following |
6247 | statement to your project's ``local.conf`` configuration file found in | 6250 | statement 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 |
6256 | Yocto Project Reference Manual. | 6259 | Yocto Project Reference Manual. |
6257 | 6260 | ||
6261 | Purging Duplicate Shared State Cache Files | ||
6262 | ------------------------------------------- | ||
6263 | |||
6264 | After multiple build iterations, the Shared State (sstate) cache can contain | ||
6265 | duplicate cache files for a given package, while only the most recent one | ||
6266 | is likely to be reusable. The following command purges all but the | ||
6267 | newest sstate cache file for each package:: | ||
6268 | |||
6269 | sstate-cache-management.sh --remove-duplicated --cache-dir=build/sstate-cache | ||
6270 | |||
6271 | This command will ask you to confirm the deletions it identifies. | ||
6272 | |||
6273 | Note:: | ||
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 | |||
6279 | Run ``sstate-cache-management.sh`` for more details about this script. | ||
6280 | |||
6258 | Working with Packages | 6281 | Working with Packages |
6259 | ===================== | 6282 | ===================== |
6260 | 6283 | ||