[OE-core] [PATCH 0/2] RFC - CCACHE_DIR to not impact sstate

Jason Wessel jason.wessel at windriver.com
Mon May 14 21:50:43 UTC 2012


On 05/14/2012 04:33 PM, Khem Raj wrote:
> On Sun, May 13, 2012 at 7:28 PM, Jason Wessel
> <jason.wessel at windriver.com> wrote:
>> I am not exactly sure how to fix this, so I thought I might ask in the
>> form of a working patch.  The problem is that I want to use an
>> external CCACHE_DIR on some build servers, but use the defaults on
>> others.  Ultimately the sstate sums should be the same in either case,
> hmmm so how do you ensure that both ccache stashes are exactly same ?

Why do they need to be the same?  

The end result of the compiler is the same with ccache, and that is all that matters in this case, meaning you get the same .o with "ccache gcc".  I might have several ccache directories with different sizes on different systems (it takes ~3.4 gigs for a full ccache).

CCACHE_DIR=/tmp/place1 ccache target-gcc ....
CCACHE_DIR=/tmp/place2 ccache target-gcc ....

Regardless of the state of the CCACHE_DIR the .o will be the same.

Jason.




More information about the Openembedded-core mailing list