xcc: add ccache support

This toolchain Makefile defines CC/CXX directly so we need to add
a USE_CCACHE case here.

Change-Id: Iee8dc6ab030db8dc45b16e21c5b17864e51341b4
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-02-07 09:55:47 -08:00
parent 44a98fb5fd
commit dec83a7ac2

View file

@ -24,8 +24,14 @@ endif
ifeq (${CONFIG_XTENSA},y)
CROSS_COMPILE=${XTENSA_TOOLS_PATH}/bin/$(CROSS_COMPILE_$(ARCH))
ifeq ($(USE_CCACHE),1)
CC=$(CCACHE) ${CROSS_COMPILE}xcc --xtensa-core=$(XTENSA_CORE)
CXX=$(CCACHE) ${CROSS_COMPILE}xc++ --xtensa-core=$(XTENSA_CORE)
else
CC=${CROSS_COMPILE}xcc --xtensa-core=$(XTENSA_CORE)
CXX=${CROSS_COMPILE}xc++ --xtensa-core=$(XTENSA_CORE)
endif
AS=${CROSS_COMPILE}as --xtensa-core=$(XTENSA_CORE)
LD=${CROSS_COMPILE}ld --xtensa-core=$(XTENSA_CORE)
CROSS_COMPILE_TARGET = ${CROSS_COMPILE_TARGET_${ARCH}}