Skip to content

Commit

Permalink
kernel.mk: make use of ccache when requested
Browse files Browse the repository at this point in the history
Change-Id: I9b6e28711bd5f590a76ac2b62a50b1d2de014e3e
  • Loading branch information
eaut committed Apr 27, 2012
1 parent af59915 commit 0ddf879
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion core/tasks/kernel.mk
Expand Up @@ -91,7 +91,17 @@ define clean-module-folder
endef

ifeq ($(TARGET_ARCH),arm)
ARM_CROSS_COMPILE:=CROSS_COMPILE=$(ARM_EABI_TOOLCHAIN)/arm-eabi-
ifneq ($(USE_CCACHE),)
ccache := $(ANDROID_BUILD_TOP)/prebuilt/$(HOST_PREBUILT_TAG)/ccache/ccache
# Check that the executable is here.
ccache := $(strip $(wildcard $(ccache)))
ifdef ccache
ARM_CROSS_COMPILE:=CROSS_COMPILE="$(ccache) $(ARM_EABI_TOOLCHAIN)/arm-eabi-"
ccache =
else
ARM_CROSS_COMPILE:=CROSS_COMPILE=$(ARM_EABI_TOOLCHAIN)/arm-eabi-
endif
endif
endif

ifeq ($(TARGET_KERNEL_MODULES),)
Expand Down

0 comments on commit 0ddf879

Please sign in to comment.