coreos-kernel: re-enable ccache path rewriting for kernel builds

The current kernel build process expects ccache to be effective but
since setting CCACHE_BASEDIR globally was reverted in 35d8b34a builds
have been uncached any time the source revision changes.

Until it is safe to set CCACHE_BASEDIR globally again we should at least
make use of it for kernel builds.
This commit is contained in:
Michael Marineau 2015-08-27 13:53:06 -07:00
parent 73d11051b9
commit 64fe678e86

View File

@ -93,6 +93,8 @@ 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 \ emake \
ARCH="${kernel_arch}" \ ARCH="${kernel_arch}" \
CROSS_COMPILE="${CHOST}-" \ CROSS_COMPILE="${CHOST}-" \