diff options
| -rw-r--r-- | meta/classes/base.bbclass | 2 | ||||
| -rw-r--r-- | meta/conf/bitbake.conf | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 52f231675c..c82dae83e8 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -194,7 +194,7 @@ python base_eventhandler() { | |||
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | addtask configure after do_unpack do_patch | 196 | addtask configure after do_unpack do_patch |
| 197 | do_configure[dirs] = "${S} ${B}" | 197 | do_configure[dirs] = "${CCACHE_DIR} ${S} ${B}" |
| 198 | do_configure[deptask] = "do_populate_sysroot" | 198 | do_configure[deptask] = "do_populate_sysroot" |
| 199 | base_do_configure() { | 199 | base_do_configure() { |
| 200 | : | 200 | : |
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 | |||
| 386 | CCACHE = "${@bb.which(bb.data.getVar('PATH', d, 1), 'ccache') and 'ccache '}" | 386 | CCACHE = "${@bb.which(bb.data.getVar('PATH', d, 1), 'ccache') and 'ccache '}" |
| 387 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}" | 387 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}" |
| 388 | 388 | ||
| 389 | export CCACHE_DIR = "${TMPDIR}/ccache/${HOST_SYS}/${PN}" | ||
| 389 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | 390 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |
| 390 | export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | 391 | export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |
| 391 | export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | 392 | export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |
