Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Jason Wessel <jason.wessel@windriver.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 0/2] bitbake.conf: gracefully work with ccache environment variables
Date: Mon, 14 May 2012 15:58:45 -0500	[thread overview]
Message-ID: <4FB17205.3000207@windriver.com> (raw)
In-Reply-To: <CAF6bG8dzui=doFHHDoWGYXt45utcPwjY81QQRKrCbgHEpaMBQQ@mail.gmail.com>

On 05/14/2012 12:18 PM, Marko Lindqvist wrote:
> On 14 May 2012 19:09, Jason Wessel <jason.wessel@windriver.com> wrote:
>> The end user of oe-core should be free to turn off ccache, or use an
>> external ccache without impacting the sstate sums.
> 
>  ...
> 
>  External cache makes sense for anything being built by system
> compiler. Caching results of anything produced by OE-built compilers
> to user's normal cache is problematic. Rebuild of the compiler itself
> will invalidate any such cached files, but caching them in first place
> may push more valid results out from the cache. 

This is only an issue if the compiler has changed.  In my case it is
not changing, or at least it should be the same each time.  I use one
external ccache for all the embedded target work on a per build server
basis and have done so for years for non-bitbake environments.  I
would like the same functionality from bitbake based builds.

Right now with the external ccache my kernel compiles alone go from >
6 min down to < 30 seconds, so there is a definite desire on my side
to have this work.


> So you are proposing that user has to opt-out from that behavior (by
> unsetting his normal CCACHE_DIR before running bitbake) and no
> longer opt-in (by adding CCACHE_DIR to whitelist)

The defaults remain the defaults, I am not changing anything to that
end.  I only aim to have configurability via the local.conf for
various use cases surrounding ccache.  As I mentioned before I'll just
submit a new patch to add CCACHE_DIR to the hash whitelist so it is
not in the ssatate sum.  All the other problems were a result of pilot
error.

Cheers,
Jason.





  parent reply	other threads:[~2012-05-14 21:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-14 16:09 [PATCH 0/2] bitbake.conf: gracefully work with ccache environment variables Jason Wessel
2012-05-14 16:09 ` [PATCH 1/2] bitbake.conf: Move default hash policy initialization before conf file inclusion Jason Wessel
2012-05-14 16:09 ` [PATCH 2/2] bitbake.conf: Add CCACHE_DIR to BB_HASHBASE_WHITELIST Jason Wessel
2012-05-14 16:49 ` [PATCH 0/2] bitbake.conf: gracefully work with ccache environment variables Jason Wessel
2012-05-14 17:18 ` Marko Lindqvist
2012-05-14 17:35   ` Chris Larson
2012-05-14 20:58   ` Jason Wessel [this message]
2012-05-14 22:00     ` Marko Lindqvist
2012-05-14 22:24       ` Jason Wessel

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=4FB17205.3000207@windriver.com \
    --to=jason.wessel@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox