Fix CCACHE support for Makefile

This commit is contained in:
Kamil Trzcinski 2017-05-01 14:34:14 +02:00
parent 9cce6c6d1a
commit aae92fd4e3

View file

@ -14,9 +14,11 @@ KERNEL_TOOLCHAIN_ARCH := $(TARGET_KERNEL_ARCH)
KERNEL_EXTRA_FLAGS := ANDROID_TOOLCHAIN_FLAGS="-mno-android -Werror" KERNEL_EXTRA_FLAGS := ANDROID_TOOLCHAIN_FLAGS="-mno-android -Werror"
KERNEL_CROSS_COMP := $(notdir $(TARGET_TOOLS_PREFIX)) KERNEL_CROSS_COMP := $(notdir $(TARGET_TOOLS_PREFIX))
# enable ccache or any other wrapper # enable ccache
ifneq ($(CC_WRAPPER),) ifneq ($(filter-out false,$(USE_CCACHE)),)
KERNEL_CROSS_COMP := "$(CC_WRAPPER) $(KERNEL_CROSS_COMP)" ccache := $(ANDROID_BUILD_TOP)/prebuilts/misc/$(HOST_PREBUILT_TAG)/ccache/ccache
KERNEL_CROSS_COMP := "$(ccache) $(KERNEL_CROSS_COMP)"
ccache :=
endif endif
#remove time_macros from ccache options, it breaks signing process #remove time_macros from ccache options, it breaks signing process