[Buildroot] ccache directory

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Sun Jul 24 11:23:13 UTC 2011

On Thu, Jul 21, 2011 at 7:58 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Le Wed, 20 Jul 2011 22:49:19 +0200,
> Peter Korsgaard <jacmet at uclibc.org> a écrit :
>> Or simply drop the custom ccache location and let people set CCACHE_DIR
>> if they don't like the default (and hence expected) ~/.ccache location.
> That's another possibility, but I find it quite confusing to have some
> parameters set by environment variables, and some other by
> configuration options.

The disadvantage with this particular configuration variable, is that
it requires a forced recompilation of host-ccache in order for changes
to this variable to take effect.

Another solution is to remove the hardcoded cache directory, use the
CCACHE_DIR environment variable, but let buildroot set that variable
based on BR2_CCACHE_DIR (a configuration option). This addresses
Thomas' point regarding mixing environment variables and configuration
options, and my request of being able to change the cache directory
and making sure these changes are automatically in effect.

What do you think?


More information about the buildroot mailing list