All of lore.kernel.org
 help / color / mirror / Atom feed
* [oe-core] [PATCH 1/1] ccache.bbclass: Allow user to override CCACHE_DIR.
       [not found] <cover.1360332752.git.pfalcon@users.sourceforge.net>
@ 2013-02-08 17:48   ` Paul Sokolovsky
       [not found] ` <0d914f6415e72c6d9999b0f2f5b3e6c8ec209363.1360332752.git.pfalcon__32328.1499594033$1360345753$gmane$org@users.sourceforge.net>
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Sokolovsky @ 2013-02-08 14:49 UTC (permalink / raw)
  To: openembedded-devel

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(-)

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}"
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 1/1] ccache.bbclass: Allow user to override CCACHE_DIR.
@ 2013-02-08 17:48   ` Paul Sokolovsky
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Sokolovsky @ 2013-02-08 17:48 UTC (permalink / raw)
  To: openembedded-core

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(-)

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}"
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] ccache.bbclass: Allow user to override CCACHE_DIR.
       [not found] ` <0d914f6415e72c6d9999b0f2f5b3e6c8ec209363.1360332752.git.pfalcon__32328.1499594033$1360345753$gmane$org@users.sourceforge.net>
@ 2013-02-10 13:48   ` Enrico Scholz
  2013-02-11 12:20     ` Paul Sokolovsky
  0 siblings, 1 reply; 4+ messages in thread
From: Enrico Scholz @ 2013-02-10 13:48 UTC (permalink / raw)
  To: openembedded-core

Paul Sokolovsky <pmiscml-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] ccache.bbclass: Allow user to override CCACHE_DIR.
  2013-02-10 13:48   ` Enrico Scholz
@ 2013-02-11 12:20     ` Paul Sokolovsky
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Sokolovsky @ 2013-02-11 12:20 UTC (permalink / raw)
  To: openembedded-core

Hello,

On Sun, 10 Feb 2013 14:48:58 +0100
Enrico Scholz <enrico.scholz@sigma-chemnitz.de> wrote:

> Paul Sokolovsky <pmiscml-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> 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.

-- 
Best regards,
 Paul                          mailto:pmiscml@gmail.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-11 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <cover.1360332752.git.pfalcon@users.sourceforge.net>
2013-02-08 14:49 ` [oe-core] [PATCH 1/1] ccache.bbclass: Allow user to override CCACHE_DIR Paul Sokolovsky
2013-02-08 17:48   ` Paul Sokolovsky
     [not found] ` <0d914f6415e72c6d9999b0f2f5b3e6c8ec209363.1360332752.git.pfalcon__32328.1499594033$1360345753$gmane$org@users.sourceforge.net>
2013-02-10 13:48   ` Enrico Scholz
2013-02-11 12:20     ` Paul Sokolovsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.