[Buildroot] [RFC 5/8] ccache: add custom help entries
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Jan 27 21:41:50 UTC 2015
The host-ccache package has some custom targets to get statistics
about ccache or change ccache options. This commit adds a
HOST_CCACHE_HELP_HOOKS to ensure such targets are documented in 'make
host-ccache-help'.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
package/ccache/ccache.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/ccache/ccache.mk b/package/ccache/ccache.mk
index 270ea4b..5f86125 100644
--- a/package/ccache/ccache.mk
+++ b/package/ccache/ccache.mk
@@ -58,6 +58,13 @@ endef
HOST_CCACHE_POST_INSTALL_HOOKS += HOST_CCACHE_DO_INITIAL_SETUP
endif
+define HOST_CCACHE_PACKAGE_HELP
+ @$(call pkg-print-help-opt,ccache-stats,"Show ccache statistics")
+ @$(call pkg-print-help-opt,cache-options,"Update ccache options using CCACHE_OPTIONS variable")
+endef
+
+HOST_CCACHE_HELP_HOOKS += HOST_CCACHE_PACKAGE_HELP
+
$(eval $(host-autotools-package))
ifeq ($(BR2_CCACHE),y)
--
2.1.0
More information about the buildroot
mailing list