From dfa9d4a4cb7fc9a560f214cedc8b75d13778f67f Mon Sep 17 00:00:00 2001 From: zalaare Date: Wed, 8 Jun 2016 16:28:19 +0000 Subject: [PATCH 1/3] libreelec: use separate ccache location [project+arch+major_version] --- .gitignore | 3 +++ config/path | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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/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 From cc8b88014df290ae688940f2e6a54dd60e350b76 Mon Sep 17 00:00:00 2001 From: zalaare Date: Wed, 8 Jun 2016 20:11:58 +0000 Subject: [PATCH 2/3] libreelec: lower CCACHE_CACHE_SIZE limit to 10GB --- config/options | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 From 08f24bb042e404f280ba55723167f7ac57d02130 Mon Sep 17 00:00:00 2001 From: zalaare Date: Wed, 8 Jun 2016 21:37:11 +0000 Subject: [PATCH 3/3] libreelec: `make distclean` removes .ccache + build.* dirs --- Makefile | 3 +++ 1 file changed, 3 insertions(+) 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