lundi 4 mai 2015

Tutorial:How to use custom cross-compiler topic


Hi. I think that there is a case that we want to use original compiler but also the custom compiler.
Please add following code to BoardConfig.mk.
In this case, version of 5.1.0 can use.

Code:


# Cross Compiler (Please refer TARGET_linux-arm.mk and TARGET_arm.mk )
TARGET_GCC_VERSION_EXP := 5.1.0
KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/linux-x86/arm/arm-eabi-$(TARGET_GCC_VERSION_EXP)/bin
TARGET_KERNEL_CROSS_COMPILE_PREFIX := arm-eabi-


Thank you.

xda-developers