bitbake.conf: define shared PERSISTENT_DIR
authorMartin Jansa <martin.jansa@gmail.com>
Fri, 25 Feb 2011 23:27:16 +0000 (23:27 +0000)
committerMartin Jansa <Martin.Jansa@gmail.com>
Tue, 22 Mar 2011 16:59:55 +0000 (17:59 +0100)
commit4f883343de0427769de3df96ed8adaa589279112
treeb35e1e943e0feb6b9a936b214d5edb2c36592b39
parent4f79b1fea336a531bd3e6f97d151251b3afb2277
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>
conf/bitbake.conf