On Thu, Feb 24, 2011 at 04:25:56PM +0100, Martin Jansa wrote: > * import from poky > commit 6a11cf7dfe930461a6660e3b783b546fa2634900 > Author: Richard Purdie <[email protected]> > Date: Sun May 31 22:23:30 2009 +0100 > * we had CACHE var pointing to machine specific dir since > commit caf077679022f37ce55d758101f130e4e93bd7b5 > Author: Richard Purdie <[email protected]> > Date: Mon Nov 20 17:40:20 2006 +0000 > > * 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 :/ > > Signed-off-by: Martin Jansa <[email protected]>
ping? 2nd version which moved it outside TMPDIR [oe] [PATCH] bitbake.conf: define shared PERSISTENT_DIR and point it outside TMPDIR was sort of rejected: http://lists.linuxtogo.org/pipermail/openembedded-core/2011-March/000298.html but this part without moving it outside TMPDIR is still valid and I'll push it after month of review if nobody objects :). > --- > conf/bitbake.conf | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/conf/bitbake.conf b/conf/bitbake.conf > index dcc5c70..53bb7b7 100644 > --- a/conf/bitbake.conf > +++ b/conf/bitbake.conf > @@ -294,6 +294,8 @@ FILESDIR = "${@bb.which(d.getVar('FILESPATH', 1), '.')}" > > TMPDIR = "${TOPDIR}/tmp" > CACHE = "${TMPDIR}/cache${@['', '/' + str(bb.data.getVar('MACHINE', d, > 1))][bool(bb.data.getVar('MACHINE', d, 1))]}" > +# The persistent cache should be shared by all builds > +PERSISTENT_DIR = "${TMPDIR}/cache" > CO_DIR = "${DL_DIR}" > CVSDIR = "${CO_DIR}/cvs" > SVNDIR = "${CO_DIR}/svn" > -- > 1.7.4.1 > -- Martin 'JaMa' Jansa jabber: [email protected]
pgpMGiuCnmkWo.pgp
Description: PGP signature
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
