kernel: Use full user defined path to ccache
The built ccache command is now deprecated and spits out errors. ccache is
also no longer used for the full build unless CCACHE_EXEC is defined. Move
the kernel to the same logic in order to actually use ccache and silence
the warnings.
Change-Id: Iccedd9d5868d31060677667cc18810aae0149a26
diff --git a/config/BoardConfigKernel.mk b/config/BoardConfigKernel.mk
index e31d15e..8dab64b 100644
--- a/config/BoardConfigKernel.mk
+++ b/config/BoardConfigKernel.mk
@@ -74,13 +74,9 @@
endif
ifneq ($(USE_CCACHE),)
- # Detect if the system already has ccache installed to use instead of the prebuilt
- CCACHE_BIN := $(shell which ccache)
-
- ifeq ($(CCACHE_BIN),)
- CCACHE_BIN := $(BUILD_TOP)/prebuilts/misc/$(HOST_PREBUILT_TAG)/ccache/ccache
- # Check that the executable is here.
- CCACHE_BIN := $(strip $(wildcard $(CCACHE_BIN)))
+ ifneq ($(CCACHE_EXEC),)
+ # Android 10+ deprecates use of a build ccache. Only system installed ones are now allowed
+ CCACHE_BIN := $(CCACHE_EXEC)
endif
endif