* [PATCH v2 0/4] Integrate ccache-native
@ 2011-06-24 9:53 wenzong.fan
2011-06-24 9:53 ` [PATCH v2 1/4] ccache: Integrate ccache-native to poky wenzong.fan
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: wenzong.fan @ 2011-06-24 9:53 UTC (permalink / raw)
To: openembedded-core
From: Wenzong Fan <wenzong.fan@windriver.com>
1) Add ccache as a native tool and put its recipe files to:
'meta/recipes-devtools/ccache';
2) Set 'CCACHE_DIR' in 'bitbake.conf' and create the dirs for every
package before task 'do_configure' started;
3) Add 'ccache' for all SDK images;
4) Remove duplicate 'ccache.inc' from 'meta/class/'.
The following changes since commit 7cd2ac0e40d854bab9a32512018aff6172500c0e:
Beth Flanagan (1):
common-licenses: Additions and corrections
are available in the git repository at:
git://git.pokylinux.org/poky-contrib wenzong/ccache
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/ccache
Wenzong Fan (4):
ccache: Integrate ccache-native to poky
ccache: Set CCACHE on a per recipe basis
ccache: Add 'ccache' for SDK images
ccache: Remove duplicate 'ccache.inc' from 'meta/class/'
meta/classes/base.bbclass | 1 +
meta/classes/ccache.inc | 11 -----------
meta/conf/bitbake.conf | 1 +
meta/recipes-core/tasks/task-core-sdk.bb | 1 +
meta/recipes-devtools/ccache/ccache.inc | 16 ++++++++++++++++
meta/recipes-devtools/ccache/ccache_3.1.5.bb | 8 ++++++++
6 files changed, 27 insertions(+), 11 deletions(-)
delete mode 100644 meta/classes/ccache.inc
create mode 100644 meta/recipes-devtools/ccache/ccache.inc
create mode 100644 meta/recipes-devtools/ccache/ccache_3.1.5.bb
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/4] ccache: Integrate ccache-native to poky
2011-06-24 9:53 [PATCH v2 0/4] Integrate ccache-native wenzong.fan
@ 2011-06-24 9:53 ` wenzong.fan
2011-06-24 9:53 ` [PATCH v2 2/4] ccache: Set CCACHE on a per recipe basis wenzong.fan
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: wenzong.fan @ 2011-06-24 9:53 UTC (permalink / raw)
To: openembedded-core
From: Wenzong Fan <wenzong.fan@windriver.com>
Add ccache as a native tool and put its recipe files to:
'meta/recipes-devtools/ccache'.
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
meta/recipes-devtools/ccache/ccache.inc | 16 ++++++++++++++++
meta/recipes-devtools/ccache/ccache_3.1.5.bb | 8 ++++++++
2 files changed, 24 insertions(+), 0 deletions(-)
create mode 100644 meta/recipes-devtools/ccache/ccache.inc
create mode 100644 meta/recipes-devtools/ccache/ccache_3.1.5.bb
diff --git a/meta/recipes-devtools/ccache/ccache.inc b/meta/recipes-devtools/ccache/ccache.inc
new file mode 100644
index 0000000..e9f7344
--- /dev/null
+++ b/meta/recipes-devtools/ccache/ccache.inc
@@ -0,0 +1,16 @@
+SUMMARY = "a fast C/C++ compiler cache"
+DESCRIPTION = "ccache is a compiler cache. It speeds up recompilation \
+by caching the result of previous compilations and detecting when the \
+same compilation is being done again. Supported languages are C, C\+\+, \
+Objective-C and Objective-C++."
+HOMEPAGE = "http://ccache.samba.org"
+SECTION = "devel"
+LICENSE = "GPLv3+"
+
+SRC_URI = "http://samba.org/ftp/ccache/ccache-${PV}.tar.gz"
+
+inherit autotools
+
+BBCLASSEXTEND = "native"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
diff --git a/meta/recipes-devtools/ccache/ccache_3.1.5.bb b/meta/recipes-devtools/ccache/ccache_3.1.5.bb
new file mode 100644
index 0000000..9a967b2
--- /dev/null
+++ b/meta/recipes-devtools/ccache/ccache_3.1.5.bb
@@ -0,0 +1,8 @@
+require ccache.inc
+
+PR = "r0"
+LICENSE = "GPLv3+"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=80e92ec45d4fca91f127864fb9e5d932"
+
+SRC_URI[md5sum] = "b1a9684828eae68382d6afc98ce80d24"
+SRC_URI[sha256sum] = "54afc35c672ce451e04a478cfc0eb74c1ba184e27ef24881206602aa0eb94d63"
--
1.7.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 2/4] ccache: Set CCACHE on a per recipe basis
2011-06-24 9:53 [PATCH v2 0/4] Integrate ccache-native wenzong.fan
2011-06-24 9:53 ` [PATCH v2 1/4] ccache: Integrate ccache-native to poky wenzong.fan
@ 2011-06-24 9:53 ` wenzong.fan
2011-06-24 9:53 ` [PATCH v2 3/4] ccache: Add 'ccache' for SDK images wenzong.fan
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: wenzong.fan @ 2011-06-24 9:53 UTC (permalink / raw)
To: openembedded-core
From: Wenzong Fan <wenzong.fan@windriver.com>
Set 'CCACHE_DIR' in 'bitbake.conf' and create the dirs for every
package before task 'do_configure' started.
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
meta/classes/base.bbclass | 1 +
meta/conf/bitbake.conf | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 119b052..40fbb47 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -195,6 +195,7 @@ python base_eventhandler() {
addtask configure after do_unpack do_patch
do_configure[dirs] = "${S} ${B}"
+do_configure[dirs] =+ "${CCACHE_DIR} "
do_configure[deptask] = "do_populate_sysroot"
base_do_configure() {
:
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 6d8a674..d963d2e 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -391,6 +391,7 @@ export PATH
CCACHE = "${@bb.which(bb.data.getVar('PATH', d, 1), 'ccache') and 'ccache '}"
TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
+export CCACHE_DIR = "${TMPDIR}/ccache/${HOST_SYS}/${PN}"
export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
--
1.7.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 3/4] ccache: Add 'ccache' for SDK images
2011-06-24 9:53 [PATCH v2 0/4] Integrate ccache-native wenzong.fan
2011-06-24 9:53 ` [PATCH v2 1/4] ccache: Integrate ccache-native to poky wenzong.fan
2011-06-24 9:53 ` [PATCH v2 2/4] ccache: Set CCACHE on a per recipe basis wenzong.fan
@ 2011-06-24 9:53 ` wenzong.fan
2011-06-24 9:53 ` [PATCH v2 4/4] ccache: Remove duplicate 'ccache.inc' from 'meta/class/' wenzong.fan
2011-06-30 23:25 ` [PATCH v2 0/4] Integrate ccache-native Saul Wold
4 siblings, 0 replies; 6+ messages in thread
From: wenzong.fan @ 2011-06-24 9:53 UTC (permalink / raw)
To: openembedded-core
From: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
meta/recipes-core/tasks/task-core-sdk.bb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-core/tasks/task-core-sdk.bb b/meta/recipes-core/tasks/task-core-sdk.bb
index 4aee0c2..52fdd75 100644
--- a/meta/recipes-core/tasks/task-core-sdk.bb
+++ b/meta/recipes-core/tasks/task-core-sdk.bb
@@ -25,6 +25,7 @@ RDEPENDS_task-core-sdk = "\
coreutils \
cpp \
cpp-symlinks \
+ ccache \
diffutils \
gcc \
gcc-symlinks \
--
1.7.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 4/4] ccache: Remove duplicate 'ccache.inc' from 'meta/class/'
2011-06-24 9:53 [PATCH v2 0/4] Integrate ccache-native wenzong.fan
` (2 preceding siblings ...)
2011-06-24 9:53 ` [PATCH v2 3/4] ccache: Add 'ccache' for SDK images wenzong.fan
@ 2011-06-24 9:53 ` wenzong.fan
2011-06-30 23:25 ` [PATCH v2 0/4] Integrate ccache-native Saul Wold
4 siblings, 0 replies; 6+ messages in thread
From: wenzong.fan @ 2011-06-24 9:53 UTC (permalink / raw)
To: openembedded-core
From: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
meta/classes/ccache.inc | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
delete mode 100644 meta/classes/ccache.inc
diff --git a/meta/classes/ccache.inc b/meta/classes/ccache.inc
deleted file mode 100644
index d830a1b..0000000
--- a/meta/classes/ccache.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-# Make ccache use a TMPDIR specific ccache directory if using the crosscompiler,
-# since it isn't likely to be useful with any other toolchain than the one we just
-# built, and would otherwise push more useful things out of the default cache.
-
-CCACHE_DIR_TARGET = "${TMPDIR}/ccache"
-
-python () {
- if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
- bb.data.setVar('CCACHE_DIR', '${CCACHE_DIR_TARGET}', d)
- bb.data.setVarFlag('CCACHE_DIR', 'export', '1', d)
-}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 0/4] Integrate ccache-native
2011-06-24 9:53 [PATCH v2 0/4] Integrate ccache-native wenzong.fan
` (3 preceding siblings ...)
2011-06-24 9:53 ` [PATCH v2 4/4] ccache: Remove duplicate 'ccache.inc' from 'meta/class/' wenzong.fan
@ 2011-06-30 23:25 ` Saul Wold
4 siblings, 0 replies; 6+ messages in thread
From: Saul Wold @ 2011-06-30 23:25 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 06/24/2011 02:53 AM, wenzong.fan@windriver.com wrote:
> From: Wenzong Fan<wenzong.fan@windriver.com>
>
> 1) Add ccache as a native tool and put its recipe files to:
> 'meta/recipes-devtools/ccache';
>
> 2) Set 'CCACHE_DIR' in 'bitbake.conf' and create the dirs for every
> package before task 'do_configure' started;
>
> 3) Add 'ccache' for all SDK images;
>
> 4) Remove duplicate 'ccache.inc' from 'meta/class/'.
>
> The following changes since commit 7cd2ac0e40d854bab9a32512018aff6172500c0e:
> Beth Flanagan (1):
> common-licenses: Additions and corrections
>
> are available in the git repository at:
>
> git://git.pokylinux.org/poky-contrib wenzong/ccache
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/ccache
>
> Wenzong Fan (4):
> ccache: Integrate ccache-native to poky
> ccache: Set CCACHE on a per recipe basis
> ccache: Add 'ccache' for SDK images
> ccache: Remove duplicate 'ccache.inc' from 'meta/class/'
>
> meta/classes/base.bbclass | 1 +
> meta/classes/ccache.inc | 11 -----------
> meta/conf/bitbake.conf | 1 +
> meta/recipes-core/tasks/task-core-sdk.bb | 1 +
> meta/recipes-devtools/ccache/ccache.inc | 16 ++++++++++++++++
> meta/recipes-devtools/ccache/ccache_3.1.5.bb | 8 ++++++++
> 6 files changed, 27 insertions(+), 11 deletions(-)
> delete mode 100644 meta/classes/ccache.inc
> create mode 100644 meta/recipes-devtools/ccache/ccache.inc
> create mode 100644 meta/recipes-devtools/ccache/ccache_3.1.5.bb
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-06-30 23:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-24 9:53 [PATCH v2 0/4] Integrate ccache-native wenzong.fan
2011-06-24 9:53 ` [PATCH v2 1/4] ccache: Integrate ccache-native to poky wenzong.fan
2011-06-24 9:53 ` [PATCH v2 2/4] ccache: Set CCACHE on a per recipe basis wenzong.fan
2011-06-24 9:53 ` [PATCH v2 3/4] ccache: Add 'ccache' for SDK images wenzong.fan
2011-06-24 9:53 ` [PATCH v2 4/4] ccache: Remove duplicate 'ccache.inc' from 'meta/class/' wenzong.fan
2011-06-30 23:25 ` [PATCH v2 0/4] Integrate ccache-native Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox