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
|
/sources
|
||||||
/.work
|
/.work
|
||||||
|
|
||||||
|
# ccache
|
||||||
|
/.ccache/
|
||||||
|
|
||||||
# backup files
|
# backup files
|
||||||
*.orig
|
*.orig
|
||||||
|
|
||||||
|
3
Makefile
3
Makefile
@ -20,5 +20,8 @@ amlpkg:
|
|||||||
clean:
|
clean:
|
||||||
rm -rf $(BUILD_DIRS)/* $(BUILD_DIRS)/.stamps
|
rm -rf $(BUILD_DIRS)/* $(BUILD_DIRS)/.stamps
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
rm -rf ./.ccache ./$(BUILD_DIRS)
|
||||||
|
|
||||||
src-pkg:
|
src-pkg:
|
||||||
tar cvjf sources.tar.bz2 sources .stamps
|
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
|
# 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 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
|
# value. The default is gigabytes. The actual value stored is rounded down to
|
||||||
# the nearest multiple of 16 kilobytes.
|
# the nearest multiple of 16 kilobytes. Keep in mind this per project .ccache
|
||||||
CCACHE_CACHE_SIZE="30G"
|
# directory.
|
||||||
|
CCACHE_CACHE_SIZE="10G"
|
||||||
|
|
||||||
# install devtools on development builds
|
# install devtools on development builds
|
||||||
if [ "$LIBREELEC_VERSION" = "devel" ]; then
|
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=""
|
HOST_PKG_CONFIG_SYSROOT_DIR=""
|
||||||
|
|
||||||
if [ -z "$CCACHE_DIR" ]; then
|
if [ -z "$CCACHE_DIR" ]; then
|
||||||
export CCACHE_DIR=$HOME/.ccache-libreelec
|
export CCACHE_DIR=$ROOT/.ccache/$PROJECT.$TARGET_ARCH-$OS_VERSION
|
||||||
fi
|
fi
|
||||||
export MAKEFLAGS=-j$CONCURRENCY_MAKE_LEVEL
|
export MAKEFLAGS=-j$CONCURRENCY_MAKE_LEVEL
|
||||||
export PKG_CONFIG=$ROOT/$TOOLCHAIN/bin/pkg-config
|
export PKG_CONFIG=$ROOT/$TOOLCHAIN/bin/pkg-config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user