mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #433 from zalaare/pr_ccache
libreelec: use build project directory for ccache
This commit is contained in:
commit
ec5e0bc2b4
3
.gitignore
vendored
3
.gitignore
vendored
@ -23,6 +23,9 @@ mkpkg-temp
|
||||
/sources
|
||||
/.work
|
||||
|
||||
# ccache
|
||||
/.ccache/
|
||||
|
||||
# backup files
|
||||
*.orig
|
||||
|
||||
|
3
Makefile
3
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user