[Buildroot] make sdk - relocate - ccache not working as expected

Andreas Naumann dev at andin.de
Thu Aug 27 06:05:10 UTC 2020


Hi,


On 06.08.20 16:42, Matthew Weber wrote:
> Thomas / Yann,
> 
> On Sat, Jun 6, 2020 at 6:27 AM Jaap Crezee <jaap at jcz.nl> wrote:
>>
>> Hi Matt, all,
>>
>> On 2020-06-01 13:32, Matthew Weber wrote:
>>> The ccache callback's path is compiled into the toolchain-wrapper, so
>>> you'd have to disable ccache and do a clean build before doing the
>>> make sdk.  Or set the BR_NO_CCACHE=1 environment variable when using
>>> your sdk.  Something I've done in my sdk exports is adjust the
>>> toolchain wrapper before running make sdk. Here's an untested example
>>> of something you could add to your post build script or adjust the
>>> tarball to have this change after make sdk runs.
>>
>> This made me thinking; after doing a search I figured out the following workaround works for me:
>>
>> CCACHE_DIR=<somewhere-the-user-running-under-can-write-to>
>>
>> I consider this a bug in the toolchainwrapper (I guess). What do fellow buildroot users think?
>>
> 
> What do you guys think, as you can see in the previous couple emails
> it seems like it is a bug?  I can send my toolchain wrapper fixup (a
> couple emails earlier in the thread) to be done when someone runs
> `make sdk` that fixes it (or maybe it's just a hack).

Dont know if it's a bug but I use the CCACHE_DIR env successfully. Your 
change just disables ccache altogether does it? I think that's not 
something I'd always want.

regards,
Andi

> 
> Regards,
> Matt
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 



More information about the buildroot mailing list