Skip to contentSkip to conversation

ccache.bbclass: Allow user to override CCACHE_DIR.

PATCH New Paul Sokolovsky 2 participants 3 messages Feb 8, 2013 – Feb 11, 2013 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 ccache.bbclass: Allow user to override CCACHE_DIR.

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.

---
 meta/classes/ccache.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/ccache.bbclass +1 -1
index cd06a4b..ca3ca43 100644
@@ -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}"
Signature · 1 line
1.7.9.5

A message that is not in the archive (sent off-list or not yet received): 0d914f6415e72c6d9999b0f2f5b3e6c8ec209363.1360332752.git.pfalcon__32328.1499594033$1360345753$gmane$org@users.sourceforge.net

#3 lore raw

Paul Sokolovsky <[email protected]>

Quoted 2 lines · writes:

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.

You change conflicts with

| do_clean[cleandirs] += "${CCACHE_DIR}"

To use ccache, it is the best to avoid this class completely and to remove

| export CCACHE_DISABLE ??= "${@[0,1][d.getVar('CCACHE', True) == '']}"

from bitbake.conf.

Enrico

#4 lore raw

Hello,

Quoted 10 lines · On Sun, 10 Feb 2013 14:48:58 +0100 Enrico Scholz…

Paul Sokolovsky <[email protected]>

Quoted 3 lines · writes:

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.

You change conflicts with

| do_clean[cleandirs] += "${CCACHE_DIR}"

Good catch, thanks.

Signature · 2 lines
Best regards,
 Paul                          mailto:[email protected]