compile android for x86_64

error:

--------------------------------------------------------------------
ccache: FATAL: Could not find compiler "arm-eabi-gcc" in PATH
--------------------------------------------------------------------


solution:


[root@localhost cm-13-kiwi]# echo $ANDROID_TOOLCHAIN
/opt/android-x86/cm-13-kiwi/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin
[root@localhost cm-13-kiwi]# ls
x86_64-linux-android-gcc
--------------------------------------------------------------------
[root@localhost cm-13-kiwi]# vim build/core/tasks/kernel.mk
--------------------------------------------------------------------
#KERNEL_TOOLCHAIN_PREFIX ?= arm-eabi-                // alter the line
KERNEL_TOOLCHAIN_PREFIX ?= x86_64-linux-android-
--------------------------------------------------------------------


原文地址:https://www.cnblogs.com/ztguang/p/12645343.html