bitbake.conf: Add MACHINE to the CACHE path if set
authorRichard Purdie <richard@openedhand.com>
Mon, 20 Nov 2006 08:54:57 +0000 (08:54 +0000)
committerRichard Purdie <richard@openedhand.com>
Mon, 20 Nov 2006 08:54:57 +0000 (08:54 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@873 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/conf/bitbake.conf

index 08ce44d..2af2abe 100644 (file)
@@ -142,7 +142,7 @@ FILESDIR = "${@bb.which(bb.data.getVar('FILESPATH', d, 1), '.')}"
 ##################################################################
 
 TMPDIR = "${TOPDIR}/tmp"
-CACHE = "${TMPDIR}/cache"
+CACHE = "${TMPDIR}/cache${@['', '/' + str(bb.data.getVar('MACHINE', d, 1))][bool(bb.data.getVar('MACHINE', d, 1))]}"
 DL_DIR = "${TMPDIR}/downloads"
 CVSDIR = "${DL_DIR}/cvs"
 SVNDIR = "${DL_DIR}/svn"