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

Jaap Crezee jaap at jcz.nl
Sat Jun 6 11:26:29 UTC 2020


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?

regards,

Jaap


More information about the buildroot mailing list