Skip to content

Commit

Permalink
Add support for TARGET_KERNEL_CUSTOM_TOOLCHAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziyann authored and andi34 committed Sep 17, 2016
1 parent 1bb1307 commit a5563bc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/tasks/kernel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,15 @@ ifeq ($(TARGET_ARCH),arm)
# Check that the executable is here.
ccache := $(strip $(wildcard $(ccache)))
endif
ARM_CROSS_COMPILE:=CROSS_COMPILE="$(ccache) $(ARM_EABI_TOOLCHAIN)/arm-eabi-"
ifneq ($(TARGET_KERNEL_CUSTOM_TOOLCHAIN),)
ifeq ($(HOST_OS),darwin)
ARM_CROSS_COMPILE:=CROSS_COMPILE="$(ccache) $(ANDROID_BUILD_TOP)/prebuilts/gcc/darwin-x86/arm/$(TARGET_KERNEL_CUSTOM_TOOLCHAIN)/bin/arm-eabi-"
else
ARM_CROSS_COMPILE:=CROSS_COMPILE="$(ccache) $(ANDROID_BUILD_TOP)/prebuilts/gcc/linux-x86/arm/$(TARGET_KERNEL_CUSTOM_TOOLCHAIN)/bin/arm-eabi-"
endif
else
ARM_CROSS_COMPILE:=CROSS_COMPILE="$(ccache) $(ARM_EABI_TOOLCHAIN)/arm-eabi-"
endif
ccache =
endif

Expand Down

0 comments on commit a5563bc

Please sign in to comment.