From aae92fd4e36e6b58cbec83d7d741b5968c953c19 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Mon, 1 May 2017 14:34:14 +0200 Subject: [PATCH] Fix CCACHE support for Makefile --- tulip-chiphd/AndroidKernel.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tulip-chiphd/AndroidKernel.mk b/tulip-chiphd/AndroidKernel.mk index 7115447..2c857b2 100644 --- a/tulip-chiphd/AndroidKernel.mk +++ b/tulip-chiphd/AndroidKernel.mk @@ -14,9 +14,11 @@ KERNEL_TOOLCHAIN_ARCH := $(TARGET_KERNEL_ARCH) KERNEL_EXTRA_FLAGS := ANDROID_TOOLCHAIN_FLAGS="-mno-android -Werror" KERNEL_CROSS_COMP := $(notdir $(TARGET_TOOLS_PREFIX)) -# enable ccache or any other wrapper -ifneq ($(CC_WRAPPER),) -KERNEL_CROSS_COMP := "$(CC_WRAPPER) $(KERNEL_CROSS_COMP)" +# enable ccache +ifneq ($(filter-out false,$(USE_CCACHE)),) +ccache := $(ANDROID_BUILD_TOP)/prebuilts/misc/$(HOST_PREBUILT_TAG)/ccache/ccache +KERNEL_CROSS_COMP := "$(ccache) $(KERNEL_CROSS_COMP)" +ccache := endif #remove time_macros from ccache options, it breaks signing process