diff --git a/package/ccache/ccache.mk b/package/ccache/ccache.mk index c2c9731f34..650290dced 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)