From 17b66affdf439ed7c35d2825a1e2bf7967191e14 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni
Date: Tue, 7 Dec 2010 21:09:56 +0100
Subject: ccache: rework ccache management
* ccache is now a normal package (both for the host and the target).
* ccache option is now part of the "Build options" menu. It will
automatically build ccache for the host before building anything,
and will use it to cache builds for both host compilations and
target compilations.
* bump ccache to 3.1.3
Signed-off-by: Thomas Petazzoni ccache
in Buildroot
toolchain/
directory) contains
the Makefiles and associated files for all software related to the
- cross-compilation toolchain: binutils
, ccache
,
- gcc
, gdb
, kernel-headers
and
- uClibc
.binutils
, gcc
,
+ gdb
, kernel-headers
and uClibc
.
package/
directory) contains the
Makefiles and associated files for all user-space tools that Buildroot
@@ -681,6 +681,31 @@ endif
Build options -> Toolchain and header file location options.
This could be useful if the toolchain must be shared with other users.
ccache
in Buildrootccache 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
.
It might be useful to know that the various tarballs that are -- cgit v1.2.3-55-g7522