Fix CCACHE support for Makefile
This commit is contained in:
parent
9cce6c6d1a
commit
aae92fd4e3
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue