diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2022-11-24 17:50:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-01 19:20:29 +0000 |
commit | 945c669138a76be18c6b4da4f8f907d2a5cfd83f (patch) | |
tree | cebff3cae5021d4fcceb5aa51fce1c2aead97ed2 /documentation/dev-manual/disk-space.rst | |
parent | 6fe3143800925463279d0664fc7f3372b53c6c52 (diff) | |
download | poky-945c669138a76be18c6b4da4f8f907d2a5cfd83f.tar.gz |
manuals: split dev-manual/common-tasks.rst
A 500 KB source file is always harder to manage,
and can have section title conflicts.
So, the "Common Tasks" document is gone and all
its constituents are moved up one level.
You now have 40 chapters in the Development Tasks Manual.
(From yocto-docs rev: 8a45bc469411410020b8e688c137395fcaf3761b)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual/disk-space.rst')
-rw-r--r-- | documentation/dev-manual/disk-space.rst | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/documentation/dev-manual/disk-space.rst b/documentation/dev-manual/disk-space.rst new file mode 100644 index 0000000000..6fa48e1f4a --- /dev/null +++ b/documentation/dev-manual/disk-space.rst | |||
@@ -0,0 +1,40 @@ | |||
1 | .. SPDX-License-Identifier: CC-BY-SA-2.0-UK | ||
2 | |||
3 | Conserving Disk Space | ||
4 | ********************* | ||
5 | |||
6 | Conserving Disk Space During Builds | ||
7 | =================================== | ||
8 | |||
9 | To help conserve disk space during builds, you can add the following | ||
10 | statement to your project's ``local.conf`` configuration file found in | ||
11 | the :term:`Build Directory`:: | ||
12 | |||
13 | INHERIT += "rm_work" | ||
14 | |||
15 | Adding this statement deletes the work directory used for | ||
16 | building a recipe once the recipe is built. For more information on | ||
17 | "rm_work", see the | ||
18 | :ref:`rm_work <ref-classes-rm-work>` class in the | ||
19 | Yocto Project Reference Manual. | ||
20 | |||
21 | Purging Duplicate Shared State Cache Files | ||
22 | ========================================== | ||
23 | |||
24 | After multiple build iterations, the Shared State (sstate) cache can contain | ||
25 | duplicate cache files for a given package, while only the most recent one | ||
26 | is likely to be reusable. The following command purges all but the | ||
27 | newest sstate cache file for each package:: | ||
28 | |||
29 | sstate-cache-management.sh --remove-duplicated --cache-dir=build/sstate-cache | ||
30 | |||
31 | This command will ask you to confirm the deletions it identifies. | ||
32 | |||
33 | .. note:: | ||
34 | |||
35 | The duplicated sstate cache files of one package must have the same | ||
36 | architecture, which means that sstate cache files with multiple | ||
37 | architectures are not considered as duplicate. | ||
38 | |||
39 | Run ``sstate-cache-management.sh`` for more details about this script. | ||
40 | |||