mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 15:01:00 +02:00
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:
parent
73d11051b9
commit
64fe678e86
@ -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}-" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user