aboutsummaryrefslogtreecommitdiffstats
path: root/build-root/Makefile
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-01-27 09:44:47 -0500
committerGerrit Code Review <gerrit@fd.io>2016-01-27 18:35:14 +0000
commitc42508d1581fc1ad4afe2e234fb1f1f005613eb5 (patch)
tree7cb9bd354ff513b7de2006b77ddffe0164c39522 /build-root/Makefile
parentf46b7e6d7805ab0af8834a68780bd9972ef385fd (diff)
Allow CCACHE_DIR to be overridden, e.g. from .../build-root/build-config.mk
Change-Id: I9f2afa31c061b658e45ebbc16d01a6c118993116 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'build-root/Makefile')
-rw-r--r--build-root/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/build-root/Makefile b/build-root/Makefile
index aa50255b..f8b2105c 100644
--- a/build-root/Makefile
+++ b/build-root/Makefile
@@ -318,10 +318,15 @@ BUILD_DEBUG =
# Message from build system itself (as opposed to make or shell commands)
build_msg_fn = echo "@@@@ $(1) @@@@"
+# Allow CCACHE_DIR to be overridden, e.g. in .../build-root/build-config.mk
+ifeq ($(CCACHE_DIR),)
+ CCACHE_DIR=$(MU_BUILD_ROOT_DIR)/.ccache
+endif
+
# Always prefer our own tools to those installed on system.
# Note: ccache-bin must be before tool bin.
BUILD_ENV = \
- export CCACHE_DIR=$(MU_BUILD_ROOT_DIR)/.ccache ; \
+ export CCACHE_DIR=$(CCACHE_DIR) ; \
export PATH=$(TOOL_INSTALL_DIR)/ccache-bin:$(TOOL_INSTALL_DIR)/bin:$${PATH} ; \
export PATH="`echo $${PATH} | sed -e s/[.]://`" ; \
$(if $(not_native),export CONFIG_SITE=$(MU_BUILD_ROOT_DIR)/config.site ;,) \