diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2011-06-24 15:42:14 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-30 20:52:46 +0100 |
commit | fe03f78fb0bf7d54b9472832e43764e882f918a1 (patch) | |
tree | 79dfcc04e5980403461868c27ca9f61f916a825d /meta/conf/bitbake.conf | |
parent | 43416be5ccb66f93e395fdd8d0e19327f848cbe2 (diff) | |
download | openembedded-core-fe03f78fb0bf7d54b9472832e43764e882f918a1.tar.gz openembedded-core-fe03f78fb0bf7d54b9472832e43764e882f918a1.tar.bz2 openembedded-core-fe03f78fb0bf7d54b9472832e43764e882f918a1.zip |
ccache: Set CCACHE on a per recipe basis
Set 'CCACHE_DIR' in 'bitbake.conf' and create the dirs for every
package before task 'do_configure' started.
[RP: Merge dirs variables into one]
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r-- | meta/conf/bitbake.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index ff2a912a47..38367ddf02 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -386,6 +386,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}" |