From 99d87d41425d5e2d66ff58bd4afc26763bd542c6 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Thu, 1 Dec 2022 15:12:04 +0100 Subject: [PATCH] config/path: add support for build-host local ccache directory settings Signed-off-by: Matthias Reichl --- config/path | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/path b/config/path index 2b0be6cead..28a5bbf88c 100644 --- a/config/path +++ b/config/path @@ -70,6 +70,14 @@ if [ -z "$CCACHE_DIR" ]; then export CCACHE_DIR=$BUILD/.ccache fi +# keep a copy of ccache dir used for toolchain ccache +export BUILD_CCACHE_DIR="${CCACHE_DIR}" + +# local ccache dir in case we build early packages with local ccache +if [ -z "${LOCAL_CCACHE_DIR}" ]; then + export LOCAL_CCACHE_DIR="${BUILD}/.ccache-local" +fi + if [[ -z "$PATH" || ( "$PATH" != "$TOOLCHAIN/bin:$TOOLCHAIN/sbin" && "$PATH" = "${PATH#$TOOLCHAIN/bin:$TOOLCHAIN/sbin:}" ) ]]; then export PATH="$TOOLCHAIN/bin:$TOOLCHAIN/sbin${PATH:+":$PATH"}" fi