[OpenWrt-Devel] [PATCH v2] build: improve ccache support

Michael Jones mike at meshplusplus.com
Fri Jun 12 15:10:06 EDT 2020

On Fri, Jun 12, 2020 at 1:44 PM Roman Yeryomin <roman at advem.lv> wrote:

> Set CCACHE_DIR to $(TOPDIR)/.ccache and CCACHE_BASEDIR to $(TOPDIR).
> This allows to do clean and dirclean. Cache hit rate for test build
> after dirclean is ~65%.
> If CCACHE is enabled stats are printed out at the end of building process.
> CCACHE_DIR config variable allows to override default, which could be
> useful
> when sharing cache with many builds.
> cacheclean make target allows to clean the cache.
> Changes from v1:
> - remove ccache directory using CCACHE_DIR variable
> - remove ccache leftovers from sdk and toolchain make files
> - introduce CONFIG_CCACHE_DIR variable
> - introduce cacheclean make target

Wonderful, this solves my use case.

A minor nitpick, but you may want to also add a

I personally will not change it, as I use the value that you are already
setting, but it's something to consider.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200612/52de05ee/attachment.htm>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list