Build: Add Custom Toolchain Support
* Many legacy devices don't support 4.8 so we need a 4.7 option and many of the newer devices do better either Linaro 4.8 or SM 4.8-4.10 so this just makes sense. Same flag as KitKat Liquid.
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Change-Id: Ibf5a1204392214244b93316cc05bc715bf3b81bf
Conflicts:
core/tasks/kernel.mk
diff --git a/core/tasks/kernel.mk b/core/tasks/kernel.mk
index f9e458b..5dedc04 100644
--- a/core/tasks/kernel.mk
+++ b/core/tasks/kernel.mk
@@ -135,32 +135,10 @@
ifeq ($(TARGET_ARCH),arm)
ifneq ($(USE_CCACHE),)
- # search executable
- ifeq ($(USE_SYSTEM_CCACHE),)
- ccache :=
- else
- ccache := $(shell which ccache)
- endif
- ifeq ($(ccache),)
- ifneq ($(strip $(wildcard $(ANDROID_BUILD_TOP)/prebuilts/misc/$(HOST_PREBUILT_EXTRA_TAG)/ccache/ccache)),)
- ccache := $(ANDROID_BUILD_TOP)/prebuilts/misc/$(HOST_PREBUILT_EXTRA_TAG)/ccache/ccache
- else
- ifneq ($(strip $(wildcard $(ANDROID_BUILD_TOP)/prebuilts/misc/$(HOST_PREBUILT_TAG)/ccache/ccache)),)
- ccache := $(ANDROID_BUILD_TOP)/prebuilts/misc/$(HOST_PREBUILT_TAG)/ccache/ccache
- endif
- endif
- endif
+ ccache := $(ANDROID_BUILD_TOP)/prebuilts/misc/$(HOST_PREBUILT_TAG)/ccache/ccache
+ # Check that the executable is here.
+ ccache := $(strip $(wildcard $(ccache)))
endif
- ifneq ($(TARGET_KERNEL_CUSTOM_TOOLCHAIN),)
- ifeq ($(HOST_OS),darwin)
- ARM_CROSS_COMPILE:=CROSS_COMPILE="$(ccache) $(ANDROID_BUILD_TOP)/prebuilt/darwin-x86/toolchain/$(TARGET_KERNEL_CUSTOM_TOOLCHAIN)"
- else
- ARM_CROSS_COMPILE:=CROSS_COMPILE="$(ccache) $(ANDROID_BUILD_TOP)/prebuilt/linux-x86/toolchain/$(TARGET_KERNEL_CUSTOM_TOOLCHAIN)"
- endif
- else
- ARM_CROSS_COMPILE:=CROSS_COMPILE="$(ccache) $(ARM_EABI_TOOLCHAIN)/arm-eabi-"
- endif
-
ifneq ($(TARGET_GCC_VERSION_ARM),)
ifeq ($(HOST_OS),darwin)
ARM_CROSS_COMPILE:=CROSS_COMPILE="$(ccache) $(ANDROID_BUILD_TOP)/prebuilts/gcc/darwin-x86/arm/arm-eabi-$(TARGET_GCC_VERSION_ARM)/bin/arm-eabi-"