前提是提前编译整个系统。
Preloader模块:
rm -rf out/target/product/len6737t_66_sh_n/obj/PRELOADER_OBJ
编译命令变为:(不再是PDF文档的命令)
mmm vendor/mediatek/proprietary/bootable/bootloader/preloader:pl
编译成功:
len6737t_66_sh_n preloader load
/media/zuoyi/D02497132496FC22/MT6737VCA/XY3701_N0/out/target/product/len6737t_66_sh_n/obj/PRELOADER_OBJ/bin/preloader_len6737t_66_sh_n_LINKED.bin built at
time : 2018年 07月 20日 星期五 10:04:42 CST
img size : 159672 byte
bss size : 0x007ddc byte
dram size : 0x byte
============================================
make: Leaving directory '/media/zuoyi/D02497132496FC22/MT6737VCA/XY3701_N0'
#### make completed successfully (4 seconds) ####
lk模块:
Clean操作
mmm vendor/mediatek/proprietary/bootable/bootloader/lk:clean-lk
执行成功
ninja: Entering directory `.'
[100% 1/1] build clean-lk
make: Leaving directory '/media/zuoyi/D02497132496FC22/MT6737VCA/XY3701_N0'
#### make completed successfully (4 seconds) ####
LK编译操作:
mmm vendor/mediatek/proprietary/bootable/bootloader/lk:lk
编译成功输出:
[100% 3/3] build out/target/product/len6737t_66_sh_n/logo.bin
make: Leaving directory '/media/zuoyi/D02497132496FC22/MT6737VCA/XY3701_N0'
#### make completed successfully (20 seconds) ####
如果不Clean编译 操作成功:
make[1]: Leaving directory '/media/zuoyi/D02497132496FC22/MT6737VCA/XY3701_N0/vendor/mediatek/proprietary/bootable/bootloader/lk'
make: Leaving directory '/media/zuoyi/D02497132496FC22/MT6737VCA/XY3701_N0/vendor/mediatek/proprietary/bootable/bootloader/lk'
make: Leaving directory '/media/zuoyi/D02497132496FC22/MT6737VCA/XY3701_N0'
#### make completed successfully (26 seconds) ####
Kernel模块:
Clean操作
mmm kernel-3.18:clean-kernel
操作成功:
Starting build with ninja
ninja: Entering directory `.'
[100% 1/1] build clean-kernel
make: Leaving directory '/media/zuoyi/D02497132496FC22/MT6737VCA/XY3701_N0'
#### make completed successfully (16 seconds) ####
编译操作:
make -j4 kernel bootimage
操作成功
make[1]: Leaving directory '/media/zuoyi/D02497132496FC22/MT6737VCA/XY3701_N0/out/target/product/len6737t_66_sh_n/obj/KERNEL_OBJ'
make: Leaving directory '/media/zuoyi/D02497132496FC22/MT6737VCA/XY3701_N0/kernel-3.18'
[100% 12/12] Target boot image: out/target/product/len6737t_66_sh_n/boot.img
#### make completed successfully (10:24 (mm:ss)) ####