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 Signed-off-by: Peter Korsgaard --- docs/buildroot.html | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'docs/buildroot.html') diff --git a/docs/buildroot.html b/docs/buildroot.html index f471962ad..b6cf578bd 100644 --- a/docs/buildroot.html +++ b/docs/buildroot.html @@ -29,6 +29,7 @@
  • How Buildroot works
  • Using the uClibc toolchain outside Buildroot
  • Use an external toolchain
  • +
  • Using ccache in Buildroot
  • Location of downloaded packages
  • Adding new packages to Buildroot
  • Creating your own board support
  • @@ -523,9 +524,8 @@ $(ZLIB_DIR)/libz.a: $(ZLIB_DIR)/.configured
    • toolchain (in the 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.
    • + cross-compilation toolchain: binutils, gcc, + gdb, kernel-headers and uClibc.
    • package (in the 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.

      +

      Using ccache in Buildroot

      + +

      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.

      +

      Location of downloaded packages

      It might be useful to know that the various tarballs that are -- cgit v1.2.3