From patchwork Mon May 14 02:28:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] bitbake.conf: A change to CCACHE_DIR should not change the sstate sum Date: Mon, 14 May 2012 02:28:22 -0000 From: Jason Wessel X-Patchwork-Id: 27543 Message-Id: <1336962502-7271-3-git-send-email-jason.wessel@windriver.com> To: If the location of the CCACHE_DIR changes it should not impact the sstate sum. This allows a build generated with an external CCACHE_DIR to have the same sstate sum as a build that uses the ccache dir located in the temp build area. Signed-off-by: Jason Wessel --- meta/conf/bitbake.conf | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 9f4e4d4..9085779 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -413,6 +413,8 @@ CCACHE = "${@bb.which(d.getVar('PATH', True), 'ccache') and 'ccache '}" TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}" export CCACHE_DIR = "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}" +# The sstate cache dependencies should not depend on the value of CCACHE_DIR +CCACHE_DIR[undep] = "1" 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}"