summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Moulding <dan.moulding@rackwareinc.com>2014-03-20 21:08:54 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2014-03-23 19:50:46 (GMT)
commitffe3540efa44ae9f0fd09d4cc3ee73b6bf876eea (patch)
treecd111daae8e57c5dd80ba7e935424f2834d0e51e
parent0610a64cec6febbcb7162abcdc41c7a6ecfea818 (diff)
downloadbuildroot-ffe3540efa44ae9f0fd09d4cc3ee73b6bf876eea.tar.gz
buildroot-ffe3540efa44ae9f0fd09d4cc3ee73b6bf876eea.tar.bz2
ccache: Make the cache directory after ccache is built
This ensures that the cache directory (and all of its ancestor directories) exist. This is a nice thing to do because, if the parent of the cache directory doesn't exist, then ccache will complain that it cannot create the cache directory, causing the build to fail. [Peter: drop BR2_CCACHE conditional, use POST_INSTALL hook] Signed-off-by: Dan Moulding <dan.moulding@rackwareinc.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/ccache/ccache.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/ccache/ccache.mk b/package/ccache/ccache.mk
index c2c9731..650290d 100644
--- a/package/ccache/ccache.mk
+++ b/package/ccache/ccache.mk
@@ -38,6 +38,13 @@ endef
HOST_CCACHE_POST_CONFIGURE_HOOKS += \
HOST_CCACHE_PATCH_CONFIGURATION
+define HOST_CCACHE_MAKE_CACHE_DIR
+ mkdir -p $(BR_CACHE_DIR)
+endef
+
+HOST_CCACHE_POST_INSTALL_HOOKS += \
+ HOST_CCACHE_MAKE_CACHE_DIR
+
$(eval $(host-autotools-package))
ifeq ($(BR2_CCACHE),y)