From ae6e1444055e684ae15712eff79d7df06b74d2dc Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Wed, 27 Jul 2022 20:48:49 +0200 Subject: [PATCH] docs/manual/ccache-support.txt: document the new BR2_USE_CCACHE variable Signed-off-by: Thomas Petazzoni Signed-off-by: Yann E. MORIN --- docs/manual/ccache-support.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/manual/ccache-support.txt b/docs/manual/ccache-support.txt index ea64628615..ab4f10be23 100644 --- a/docs/manual/ccache-support.txt +++ b/docs/manual/ccache-support.txt @@ -55,3 +55,15 @@ first. See https://ccache.samba.org/manual.html#_compiling_in_different_directories[the ccache manual's section on "Compiling in different directories"] for more details about this rewriting of absolute paths. + +When +ccache+ is enabled in Buildroot using the +BR2_CCACHE=y+ option: + +* +ccache+ is used during the Buildroot build itself + +* +ccache+ is not used when building outside of Buildroot, for example + when directly calling the cross-compiler or using the SDK + +One can override this behavior using the +BR2_USE_CCACHE+ environment +variable: when set to +1+, usage of ccache is enabled (default during +the Buildroot build), when unset or set to a value different from +1+, +usage of ccache is disabled.