All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bitbake.conf: define shared PERSISTENT_DIR
@ 2011-02-24 15:25 Martin Jansa
  2011-02-24 16:45 ` Martin Jansa
  2011-03-21  9:52 ` [PATCH] bitbake.conf: define shared PERSISTENT_DIR Martin Jansa
  0 siblings, 2 replies; 9+ messages in thread
From: Martin Jansa @ 2011-02-24 15:25 UTC (permalink / raw)
  To: openembedded-devel

* import from poky
  commit 6a11cf7dfe930461a6660e3b783b546fa2634900
  Author: Richard Purdie <rpurdie@linux.intel.com>
  Date:   Sun May 31 22:23:30 2009 +0100
* we had CACHE var pointing to machine specific dir since
  commit caf077679022f37ce55d758101f130e4e93bd7b5
  Author: Richard Purdie <rpurdie@rpsys.net>
  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 <Martin.Jansa@gmail.com>
---
 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




^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-21  9:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-24 15:25 [PATCH] bitbake.conf: define shared PERSISTENT_DIR Martin Jansa
2011-02-24 16:45 ` Martin Jansa
2011-02-25 15:27   ` [PATCH] bitbake.conf: define shared PERSISTENT_DIR and point it outside TMPDIR Martin Jansa
2011-03-03  7:27     ` Martin Jansa
2011-03-03 14:38       ` Tom Rini
2011-03-04  0:11         ` Richard Purdie
2011-03-04  6:10           ` Martin Jansa
2011-03-04  8:58           ` Martin Jansa
2011-03-21  9:52 ` [PATCH] bitbake.conf: define shared PERSISTENT_DIR Martin Jansa

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.