-
- Downloads
build: improve ccache support
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
Signed-off-by:
Roman Yeryomin <roman@advem.lv>
Showing
- .gitignore 1 addition, 0 deletions.gitignore
- Makefile 8 additions, 0 deletionsMakefile
- config/Config-devel.in 7 additions, 0 deletionsconfig/Config-devel.in
- include/host-build.mk 3 additions, 1 deletioninclude/host-build.mk
- include/package.mk 3 additions, 1 deletioninclude/package.mk
- include/toplevel.mk 1 addition, 1 deletioninclude/toplevel.mk
- rules.mk 3 additions, 0 deletionsrules.mk
- target/sdk/Makefile 2 additions, 6 deletionstarget/sdk/Makefile
- target/toolchain/Makefile 1 addition, 1 deletiontarget/toolchain/Makefile
Loading
Please register or sign in to comment