Merge pull request #1948 from marineam/ccache

profiles: tell ccache to rewrite paths relative to $S
This commit is contained in:
Michael Marineau 2016-05-05 12:30:35 -07:00
commit 92059efbe1
2 changed files with 7 additions and 2 deletions

View File

@ -113,8 +113,6 @@ kmake() {
if gcc-specs-pie; then if gcc-specs-pie; then
kernel_cflags="-nopie -fstack-check=no" kernel_cflags="-nopie -fstack-check=no"
fi fi
# this can be removed once it is exported globally again
export CCACHE_BASEDIR="${S}"
emake "--directory=${S}/source" \ emake "--directory=${S}/source" \
ARCH="${kernel_arch}" \ ARCH="${kernel_arch}" \
CROSS_COMPILE="${CHOST}-" \ CROSS_COMPILE="${CHOST}-" \

View File

@ -99,3 +99,10 @@ SYSROOT_WRAPPERS_BIN="/usr/lib/sysroot-wrappers/bin"
if [[ "$PATH" != *"$SYSROOT_WRAPPERS_BIN"* ]]; then if [[ "$PATH" != *"$SYSROOT_WRAPPERS_BIN"* ]]; then
export PATH="$SYSROOT_WRAPPERS_BIN:$PATH" export PATH="$SYSROOT_WRAPPERS_BIN:$PATH"
fi fi
# Improve the chance that ccache is valid across versions by making all
# paths under $S relative to $S, avoiding encoding the package version
# contained in the path into __FILE__ expansions and debug info.
if [[ -z "${CCACHE_BASEDIR}" ]] && [[ -d "${S}" ]]; then
export CCACHE_BASEDIR="${S}"
fi