Commit ffe3540e authored by Dan Moulding's avatar Dan Moulding Committed by Peter Korsgaard
Browse files

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: default avatarDan Moulding <dan.moulding@rackwareinc.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 0610a64c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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)