Patchwork [1/1] ccache.bbclass: Allow user to override CCACHE_DIR.

login
register
mail settings
Submitter Paul Sokolovsky
Date Feb. 8, 2013, 5:48 p.m.
Message ID <0d914f6415e72c6d9999b0f2f5b3e6c8ec209363.1360332752.git.pfalcon@users.sourceforge.net>
Download mbox | patch
Permalink /patch/44367/
State Accepted
Commit 61e864e2d020c820cf90807b48babee3b24f9446
Headers show

Comments

Paul Sokolovsky - Feb. 8, 2013, 5:48 p.m.
For example, some users may want to use single cache directory (instead
of per-package) with known max size limit, to better control disk usage.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
---
 meta/classes/ccache.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass
index cd06a4b..ca3ca43 100644
--- a/meta/classes/ccache.bbclass
+++ b/meta/classes/ccache.bbclass
@@ -1,5 +1,5 @@ 
 CCACHE = "${@bb.which(d.getVar('PATH', True), 'ccache') and 'ccache '}"
-export CCACHE_DIR = "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}"
+export CCACHE_DIR ?= "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}"
 CCACHE_DISABLE[unexport] = "1"
 
 do_configure[dirs] =+ "${CCACHE_DIR}"