Merge pull request #433 from zalaare/pr_ccache

libreelec: use build project directory for ccache
This commit is contained in:
Christian Hewitt 2016-06-25 14:20:27 +04:00 committed by GitHub
commit ec5e0bc2b4
4 changed files with 10 additions and 3 deletions

3
.gitignore vendored
View File

@ -23,6 +23,9 @@ mkpkg-temp
/sources
/.work
# ccache
/.ccache/
# backup files
*.orig

View File

@ -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

View File

@ -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

View File

@ -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