diff --git a/.gitignore b/.gitignore index 2b7f628098..5639a5425e 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,9 @@ mkpkg-temp /sources /.work +# ccache +/.ccache/ + # backup files *.orig diff --git a/Makefile b/Makefile index 239d56fc2a..7fad4973f7 100644 --- a/Makefile +++ b/Makefile @@ -20,5 +20,8 @@ amlpkg: clean: rm -rf $(BUILD_DIRS)/* $(BUILD_DIRS)/.stamps +distclean: + rm -rf ./.ccache ./$(BUILD_DIRS) + src-pkg: tar cvjf sources.tar.bz2 sources .stamps diff --git a/config/options b/config/options index 0dc3094547..e35229ef70 100644 --- a/config/options +++ b/config/options @@ -78,8 +78,9 @@ fi # Set the maximum size of the files stored in the cache. You can specify a # value in gigabytes, megabytes or kilobytes by appending a G, M or K to the # value. The default is gigabytes. The actual value stored is rounded down to -# the nearest multiple of 16 kilobytes. - CCACHE_CACHE_SIZE="30G" +# the nearest multiple of 16 kilobytes. Keep in mind this per project .ccache +# directory. + CCACHE_CACHE_SIZE="10G" # install devtools on development builds if [ "$LIBREELEC_VERSION" = "devel" ]; then diff --git a/config/path b/config/path index 7d160d4e1d..b64b5b64d1 100644 --- a/config/path +++ b/config/path @@ -239,7 +239,7 @@ HOST_PKG_CONFIG_LIBDIR="$ROOT/$TOOLCHAIN/lib/pkgconfig:$ROOT/$TOOLCHAIN/share/pk HOST_PKG_CONFIG_SYSROOT_DIR="" if [ -z "$CCACHE_DIR" ]; then - export CCACHE_DIR=$HOME/.ccache-libreelec + export CCACHE_DIR=$ROOT/.ccache/$PROJECT.$TARGET_ARCH-$OS_VERSION fi export MAKEFLAGS=-j$CONCURRENCY_MAKE_LEVEL export PKG_CONFIG=$ROOT/$TOOLCHAIN/bin/pkg-config