aboutsummaryrefslogtreecommitdiff
path: root/package/ccache
diff options
context:
space:
mode:
authorGravatar Tzu-Jung Lee <roylee17@gmail.com>2013-10-10 10:50:57 -0700
committerGravatar Peter Korsgaard <peter@korsgaard.com>2013-10-27 10:30:10 +0100
commitd1bca7c49c5f80673a2ff88bdad798812b09e9f2 (patch)
tree7cab70845770e05bdd5ac1125c7615d7b6c841a6 /package/ccache
parent96f702993cfa4b7e15549faddbc41917663dbe37 (diff)
downloadbuildroot-d1bca7c49c5f80673a2ff88bdad798812b09e9f2.tar.gz
buildroot-d1bca7c49c5f80673a2ff88bdad798812b09e9f2.tar.bz2
ccache: expose control interface via 'make ccache-options'
usage: # set cache limit size make CCACHE_OPTIONS="--max-size=5G" ccache-options # zero statistics counters make CCACHE_OPTIONS="--zero-stats" ccache-options [Peter: drop the redundant ifeq] Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/ccache')
-rw-r--r--package/ccache/ccache.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/ccache/ccache.mk b/package/ccache/ccache.mk
index c5e93857c5..82a53f34c9 100644
--- a/package/ccache/ccache.mk
+++ b/package/ccache/ccache.mk
@@ -44,4 +44,13 @@ $(eval $(host-autotools-package))
ifeq ($(BR2_CCACHE),y)
ccache-stats: host-ccache
$(Q)$(CCACHE) -s
+
+ccache-options: host-ccache
+ifeq ($(CCACHE_OPTIONS),)
+ $(Q)echo "Usage: make ccache-options CCACHE_OPTIONS=\"opts\""
+ $(Q)echo "where 'opts' corresponds to one or more valid ccache options" \
+ "(see ccache help text below)"
+ $(Q)echo
+endif
+ $(Q)$(CCACHE) $(CCACHE_OPTIONS)
endif