[OE-core] [PATCH 1/2] ccache: enable max size setup for ccache dir

Burton, Ross ross.burton at intel.com
Fri Jan 13 14:43:01 UTC 2017


On 13 January 2017 at 14:23, Yannick Gicquel <yannick.gicquel at iot.bzh>
wrote:

> +def init_ccache():
> +    # dummy python version
> +    return
> +
> +init_ccache() {
> +    if [ -n "${CCACHE}" ]; then
> +        ${CCACHE} -M ${CCACHE_MAX_SIZE}
> +    fi
> +}
> +
> +do_compile_prepend() {
> +    init_ccache
> +}
>

That is horrible. :)

Is it not possible to just pass -M[size] to ccache every time it's
invoked?  If it needs to be invoked on its own, then a do_compile[postfunc]
or something to trim the size after a build would be neater.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170113/d8cfecbb/attachment-0002.html>


More information about the Openembedded-core mailing list