diff options
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/bitbake.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index fbc0ca205a..9b26580f1b 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -414,6 +414,14 @@ export PATH ################################################################## CCACHE ??= "" +# Disable ccache explicitly if CCACHE is null since gcc may be a symlink +# of ccache some distributions (e.g., Fedora 17). +export CCACHE_DISABLE ??= "${@[0,1][d.getVar('CCACHE', True) == '']}" +# Assign CCACHE_DIR a default vaule to fix a bug of ccache 3.1.7, +# since it would always create CCACHE_DIR/.ccache even if +# CCACHE_DISABLE = 1. +export CCACHE_DIR ??= "${@os.getenv('HOME')}" + TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}" export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |