[4/4] make.sh: Move ccache's temp directory into /tmp

Message ID 20200310132606.21372-5-michael.tremer@ipfire.org
State Accepted
Commit 36065e4219389acd23a9ba06576075f0740cd307
Headers
Series [1/4] make.sh: Make /tmp a ramdisk if ramdisks are enabled |

Commit Message

Michael Tremer March 10, 2020, 1:26 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 make.sh | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/make.sh b/make.sh
index 188355a0d..9c88592da 100755
--- a/make.sh
+++ b/make.sh
@@ -504,6 +504,7 @@  prepareenv() {
 
 	# Run LFS static binary creation scripts one by one
 	export CCACHE_DIR=$BASEDIR/ccache
+	export CCACHE_TEMPDIR="/tmp"
 	export CCACHE_COMPRESS=1
 	export CCACHE_COMPILERCHECK="string:toolchain-${TOOLCHAINVER} ${BUILD_ARCH}"
 
@@ -575,6 +576,7 @@  enterchroot() {
 		BUILD_ARCH="${BUILD_ARCH}" \
 		BUILD_PLATFORM="${BUILD_PLATFORM}" \
 		CCACHE_DIR=/usr/src/ccache \
+		CCACHE_TEMPDIR="${CCACHE_TEMPDIR}" \
 		CCACHE_COMPRESS="${CCACHE_COMPRESS}" \
 		CCACHE_COMPILERCHECK="${CCACHE_COMPILERCHECK}" \
 		GOCACHE="/usr/src/ccache/go" \
@@ -658,6 +660,7 @@  lfsmake1() {
 	cd $BASEDIR/lfs && env -i \
 		PATH="${TOOLS_DIR}/ccache/bin:${TOOLS_DIR}/bin:$PATH" \
 		CCACHE_DIR="${CCACHE_DIR}" \
+		CCACHE_TEMPDIR="${CCACHE_TEMPDIR}" \
 		CCACHE_COMPRESS="${CCACHE_COMPRESS}" \
 		CCACHE_COMPILERCHECK="${CCACHE_COMPILERCHECK}" \
 		CFLAGS="${CFLAGS}" \