All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tzu-Jung Lee <roylee17@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4] ccache: expose control interface via 'make ccache-options'
Date: Thu, 10 Oct 2013 12:51:27 -0700	[thread overview]
Message-ID: <CAEvN+1gw9BF6tcATOFJeoRLvVXrR2U7y3jO_KSMhNyz5Ka8Zmg@mail.gmail.com> (raw)
In-Reply-To: <05215539-a7b2-47a5-a319-100742fdd41a@email.android.com>

Hi Thomas,

On Thu, Oct 10, 2013 at 12:45 PM, Thomas De Schampheleire
<patrickdepinguin@gmail.com> wrote:
> Hi Tzu-Jung,
>
> Tzu-Jung Lee <roylee17@gmail.com> wrote:
>>usage:
>>       # set cache limit size
>>       make CCACHE_OPTIONS="--max-size=5G" ccache-options
>>
>>       # zero statistics counters
>>       make CCACHE_OPTIONS="--zero-stats" ccache-options
>>
>>Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com>
>>---
>>Include the useful warning message suggested by Thomas.
>>
>>We might need a separate patch to obsolete the ccache-stats later.
>>
>> docs/manual/ccache-support.txt | 11 +++++++++++
>> package/ccache/ccache.mk       | 11 +++++++++++
>> 2 files changed, 22 insertions(+)
>>
>>diff --git a/docs/manual/ccache-support.txt b/docs/manual/ccache-support.txt
>>index 4969180..fe06a01 100644
>>--- a/docs/manual/ccache-support.txt
>>+++ b/docs/manual/ccache-support.txt
>>@@ -23,3 +23,14 @@ remove this directory.
>>
>> You can get statistics on the cache (its size, number of hits,
>> misses, etc.) by running +make ccache-stats+.
>>+
>>+The make target +ccache-options+ and the +CCACHE_OPTIONS+ variable
>>+provide more generic access to the ccache. For example
>>+
>>+-----------------
>>+# set cache limit size
>>+make CCACHE_OPTIONS="--max-size=5G" ccache-options
>>+
>>+# zero statistics counters
>>+make CCACHE_OPTIONS="--zero-stats" ccache-options
>>+-----------------
>>diff --git a/package/ccache/ccache.mk b/package/ccache/ccache.mk
>>index c5e9385..7b6155d 100644
>>--- a/package/ccache/ccache.mk
>>+++ b/package/ccache/ccache.mk
>>@@ -45,3 +45,14 @@ ifeq ($(BR2_CCACHE),y)
>> ccache-stats: host-ccache
>>       $(Q)$(CCACHE) -s
>> endif
>>+
>>+ifeq ($(BR2_CCACHE),y)
>>+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
>
> Did you see my other comment about combining the ifeq statements of ccache-stats and ccache-options?

Yes, but I think it probably would be better as a separate patch, which:

  1. either remove the ccache-stats code & and manual section
  2. or issue warning about the obsolete usage.

So this patch alone don't affect those are currently using
ccache-stats before they migrate to ccache-options.

thanks.

Roy

  reply	other threads:[~2013-10-10 19:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-18  3:50 [Buildroot] [PATCH 1/1] ccache: expose control interface via 'make ccache-options' Tzu-Jung Lee
2012-06-19 12:51 ` Tzu-Jung Lee
     [not found] ` <CAEvN+1jCAvFYsOkbv4Rf4g7YqZJe4Ty9cwpFMiAUTTAvh7mvQg@mail.gmail.com>
2013-10-07 22:09   ` Tzu-Jung Lee
2013-10-08  6:46     ` Arnout Vandecappelle
2013-10-08 21:31       ` [Buildroot] [PATCH v2] " Tzu-Jung Lee
2013-10-09  6:55         ` Thomas De Schampheleire
2013-10-09 17:18       ` [Buildroot] [PATCH v3] " Tzu-Jung Lee
2013-10-10  7:12         ` Thomas Petazzoni
2013-10-10  7:59         ` Thomas De Schampheleire
2013-10-10 17:50           ` [Buildroot] [PATCH v4] " Tzu-Jung Lee
2013-10-10 19:45             ` Thomas De Schampheleire
2013-10-10 19:51               ` Tzu-Jung Lee [this message]
2013-10-10 20:57                 ` Thomas Petazzoni
2013-10-10 21:01                   ` Tzu-Jung Lee
2013-10-10 21:05                     ` Thomas Petazzoni
2013-10-11  4:52                       ` Thomas De Schampheleire
2013-10-27  9:34             ` Peter Korsgaard
2013-10-08  7:11     ` [Buildroot] [PATCH 1/1] " Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEvN+1gw9BF6tcATOFJeoRLvVXrR2U7y3jO_KSMhNyz5Ka8Zmg@mail.gmail.com \
    --to=roylee17@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.