Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9463859c authored by eaut's avatar eaut Committed by Steve Kondik
Browse files

kernel.mk: make use of ccache when requested

Change-Id: I9b6e28711bd5f590a76ac2b62a50b1d2de014e3e
parent 10dee11d
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -91,8 +91,18 @@ define clean-module-folder
endef

ifeq ($(TARGET_ARCH),arm)
    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),)
    TARGET_KERNEL_MODULES := no-external-modules