From 9cce6c6d1a611c4eca6056973f0c582d6c877a92 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Mon, 1 May 2017 13:11:51 +0200 Subject: [PATCH] Support ccache for kernel compilation --- tulip-chiphd/AndroidKernel.mk | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tulip-chiphd/AndroidKernel.mk b/tulip-chiphd/AndroidKernel.mk index a6715f2..7115447 100644 --- a/tulip-chiphd/AndroidKernel.mk +++ b/tulip-chiphd/AndroidKernel.mk @@ -14,11 +14,9 @@ KERNEL_TOOLCHAIN_ARCH := $(TARGET_KERNEL_ARCH) KERNEL_EXTRA_FLAGS := ANDROID_TOOLCHAIN_FLAGS="-mno-android -Werror" KERNEL_CROSS_COMP := $(notdir $(TARGET_TOOLS_PREFIX)) -KERNEL_CCACHE :=$(firstword $(TARGET_CC)) -KERNEL_PATH := $(ANDROID_BUILD_TOP)/vendor/pine64/support -ifeq ($(notdir $(KERNEL_CCACHE)),ccache) -KERNEL_CROSS_COMP := "ccache $(KERNEL_CROSS_COMP)" -KERNEL_PATH := $(KERNEL_PATH):$(ANDROID_BUILD_TOP)/$(dir $(KERNEL_CCACHE)) +# enable ccache or any other wrapper +ifneq ($(CC_WRAPPER),) +KERNEL_CROSS_COMP := "$(CC_WRAPPER) $(KERNEL_CROSS_COMP)" endif #remove time_macros from ccache options, it breaks signing process @@ -40,7 +38,6 @@ KERNEL_BLD_FLAGS :=$(KERNEL_BLD_FLAGS) \ O=$(KERNEL_OUT_DIR) \ KERNEL_BLD_ENV := CROSS_COMPILE=$(KERNEL_CROSS_COMP) \ - PATH=$(KERNEL_PATH):$(PATH) \ CCACHE_SLOPPINESS=$(KERNEL_CCSLOP) KERNEL_FAKE_DEPMOD := $(KERNEL_OUT_DIR)/fakedepmod/lib/modules