[Buildroot] [PATCH v2] ccache: allow dynamic selection of cache directory
Thomas De Schampheleire
patrickdepinguin+buildroot at gmail.com
Tue May 15 19:23:27 UTC 2012
On Tue, May 15, 2012 at 8:57 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Le Tue, 15 May 2012 20:49:35 +0200,
> Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> a écrit :
>
>> > Euh? Why wouldn't we use CCACHE_DIR directly? What's the need of
>> > renaming this environment variable here?
>>
>> Because CCACHE_DIR is already used by gentargets/autotargets...
>
> Where?
>
> $ git grep CCACHE_DIR | cat
> package/ccache/ccache.mk:define HOST_CCACHE_FIX_CCACHE_DIR
> package/ccache/ccache.mk: sed -i 's,getenv("CCACHE_DIR"),"$(CCACHE_CACHE_DIR)",' $(@D)/ccache.c
> package/ccache/ccache.mk: HOST_CCACHE_FIX_CCACHE_DIR
It's not defined directly like that.
ccache is a package in its own right, using autotools.
(package/ccache/ccache.mk).
The variable CCACHE_DIR originates from the following line in
package/pkg-gentargets.mk:
$(2)_DIR = $$(BUILD_DIR)/$$($(2)_BASE_NAME)
Best regards,
Thomas
More information about the buildroot
mailing list