enablke ccache on kernel compile

This commit is contained in:
Mario Fetka 2013-12-11 15:03:22 +01:00
parent 3c81183b9b
commit 425aadf987

View File

@ -403,6 +403,7 @@ else
sys-devel/autoconf sys-devel/autoconf
sys-devel/make sys-devel/make
sys-fs/dosfstools sys-fs/dosfstools
dev-util/ccache
|| ( >=sys-kernel/genkernel-next-5 >=sys-kernel/genkernel-3.4.45-r2 ) || ( >=sys-kernel/genkernel-next-5 >=sys-kernel/genkernel-3.4.45-r2 )
arm? ( dev-embedded/u-boot-tools sys-block/devio ) arm? ( dev-embedded/u-boot-tools sys-block/devio )
amd64? ( sys-apps/v86d ) amd64? ( sys-apps/v86d )
@ -776,6 +777,7 @@ _kernel_src_compile() {
--bootdir="${WORKDIR}"/boot \ --bootdir="${WORKDIR}"/boot \
--mountboot \ --mountboot \
--module-prefix="${WORKDIR}"/lib \ --module-prefix="${WORKDIR}"/lib \
--kernel-cc=/usr/lib/ccache/bin/${CHOST}-gcc \
all || die "genkernel failed" all || die "genkernel failed"
if [ -n "${K_MKIMAGE_KERNEL_ADDRESS}" ]; then if [ -n "${K_MKIMAGE_KERNEL_ADDRESS}" ]; then