569db40574
The structure of the buildroot manual is not always clear. There is a large number of chapters, and some chapters seem to overlap. The distinction between general usage and developer information is not always clear. This patch restructures the manual into four large parts: - getting started - user guide - developer guide - appendix Except for the names of these parts, the section names are not yet changed. Content-wise there are no changes yet either. This will be handled in subsequent patches. In order to achieve the introduction of a new level 'parts' above 'chapters', the section indicators (=, ==, ===, ...) of several sections have to be moved one level down. Additionally, the leveloffset indication to asciidoc has to be removed. Finally, to maintain more or less the same level of detail in the table of contents, the toc.section.depth attribute is reduced as well. Note that for some sections, less detail is visible now. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
// -*- mode:doc; -*-
|
|
// vim: set syntax=asciidoc:
|
|
|
|
[[ccache]]
|
|
==== Using +ccache+ in Buildroot
|
|
|
|
http://ccache.samba.org[ccache] is a compiler cache. It stores the
|
|
object files resulting from each compilation process, and is able to
|
|
skip future compilation of the same source file (with same compiler
|
|
and same arguments) by using the pre-existing object files. When doing
|
|
almost identical builds from scratch a number of times, it can nicely
|
|
speed up the build process.
|
|
|
|
+ccache+ support is integrated in Buildroot. You just have to enable
|
|
+Enable compiler cache+ in +Build options+. This will automatically
|
|
build +ccache+ and use it for every host and target compilation.
|
|
|
|
The cache is located in +$HOME/.buildroot-ccache+. It is stored
|
|
outside of Buildroot output directory so that it can be shared by
|
|
separate Buildroot builds. If you want to get rid of the cache, simply
|
|
remove this directory.
|
|
|
|
You can get statistics on the cache (its size, number of hits,
|
|
misses, etc.) by running +make ccache-stats+.
|
|
|
|
The make target +ccache-options+ and the +CCACHE_OPTIONS+ variable
|
|
provide more generic access to the ccache. For example
|
|
|
|
-----------------
|
|
# set cache limit size
|
|
make CCACHE_OPTIONS="--max-size=5G" ccache-options
|
|
|
|
# zero statistics counters
|
|
make CCACHE_OPTIONS="--zero-stats" ccache-options
|
|
-----------------
|