[oe] [PATCH] bitbake.conf: define shared PERSISTENT_DIR and point it outside TMPDIR

Martin Jansa martin.jansa at gmail.com
Fri Mar 4 08:58:37 UTC 2011


On Fri, Mar 04, 2011 at 12:11:46AM +0000, Richard Purdie wrote:
> On Thu, 2011-03-03 at 07:38 -0700, Tom Rini wrote:
> > On 03/03/2011 12:27 AM, Martin Jansa wrote:
> > > On Fri, Feb 25, 2011 at 04:27:16PM +0100, Martin Jansa wrote:
> > >> * import from poky 6a11cf7dfe930461a6660e3b783b546fa2634900
> > >> * we had CACHE var pointing to machine specific dir since 2006
> > >>    caf077679022f37ce55d758101f130e4e93bd7b5
> > >> * current bitbake is looking for cache dir like this:
> > >>    cachedir = (bb.data.getVar("PERSISTENT_DIR", d, True) or
> > >>                bb.data.getVar("CACHE", d, True))
> > >>    which without PERSISTENT_DIR defined picks machine-specific CACHE dir
> > >>    so LOCALCOUNT numbers in SRCPV keeps rolling with every MACHINE switch
> > >>    in same builddir :/
> > >
> > > ping?
> > >
> > 
> > I'd like Richards comments here.
> 
> The intent was always to have CACHE be machine specific and
> PERSISTENT_DIR not be machine specific. This means all builds share the
> idea of revision numbers yet the main cache is machine specific so you
> don't hit reparses when switching machines unnecessarily.
> 
> So yes, I think the change is valid, I hadn't realised OE didn't have
> that change and I'm happy to ack it...

Can I get at least one more ACK?

And if we all agree on new location
"${TOPDIR}/conf/persistent"
then I would send similar patch to oe-core and move it too

Regards,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110304/589ed3d7/attachment-0002.sig>


More information about the Openembedded-devel mailing list