diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2011-02-25 23:27:16 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2011-03-22 17:59:55 +0100 |
commit | 4f883343de0427769de3df96ed8adaa589279112 (patch) | |
tree | b35e1e943e0feb6b9a936b214d5edb2c36592b39 /conf/bitbake.conf | |
parent | 4f79b1fea336a531bd3e6f97d151251b3afb2277 (diff) | |
download | openembedded-4f883343de0427769de3df96ed8adaa589279112.tar.gz |
bitbake.conf: define shared PERSISTENT_DIR
* 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 :/
Acked-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'conf/bitbake.conf')
-rw-r--r-- | conf/bitbake.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/bitbake.conf b/conf/bitbake.conf index e57a7ad3da..6946be52fa 100644 --- a/conf/bitbake.conf +++ b/conf/bitbake.conf @@ -298,6 +298,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" |