cd android-6.0
source ../android_M6.0.1_2.1.0_source/code/M6.0.1_2.1.0/and_patch.sh
c_patch ../android_M6.0.1_2.1.0_source/code/M6.0.1_2.1.0/ imx_M6.0.1_2.1.0
如果以下提示,说明你已经成功打补丁
*****************************************************************
Success: Now you can build the Android code for FSL i.MX platform
*****************************************************************
注: 如果出现git获取不到对应目录的版本号, 可以删除android_M6.0.1_2.1.0_source/code/M6.0.1_2.1.0/baseversion中对应目录的一行,例如: vi ../android_M6.0.1_2.1.0_source/code/M6.0.1_2.1.0/baseversion
然后将204行删除:
cd android-6.0/bootable/bootloader/uboot-imx
export ARCH=arm
export CROSS_COMPILE=/mnt/share/kernel/AndroidSrc/android-6.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
make distclean
make mx6qsabresdandroid_config
make
单独编译uImage镜像
export PATH=android-6.0/bootable/bootloader/uboot-imx/tools:$PATH
cd android-6.0/kernel_imx
export ARCH=arm
export CROSS_COMPILE=/mnt/share/kernel/AndroidSrc/android-6.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
make imx_v7_android_defconfig
make KCFLAGS=-mno-android
make uImage LOADADDR=0x10008000 KCFLAGS=-mno-android