mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-20 16:02:59 +02:00
ccache: Automatically set size to 8GB
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -40,9 +40,6 @@ ifeq "$(PASS)" "1"
|
||||
CFLAGS := $(patsubst -mfunction-return=%,,$(CFLAGS))
|
||||
endif
|
||||
|
||||
# Set max cache size to 5GB
|
||||
CFLAGS += -DDEFAULT_MAXSIZE=5242880
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
4
make.sh
4
make.sh
@@ -520,6 +520,9 @@ prepareenv() {
|
||||
SYSTEM_RELEASE="${SYSTEM_RELEASE} - Development Build: $GIT_BRANCH/$GIT_LASTCOMMIT$GIT_STATUS"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Setup ccache cache size
|
||||
enterchroot ccache --max-size="${CCACHE_CACHE_SIZE}" >/dev/null
|
||||
}
|
||||
|
||||
enterchroot() {
|
||||
@@ -900,6 +903,7 @@ update_contributors() {
|
||||
}
|
||||
|
||||
# Default settings
|
||||
CCACHE_CACHE_SIZE="8G"
|
||||
ENABLE_RAMDISK="auto"
|
||||
|
||||
# Load configuration file
|
||||
|
||||
Reference in New Issue
Block a user