kk:
全编:
./m v28d_v2.1_72kk_qhd_k31_b1b5 eng
单编内核
./mk kst72_cwet_kk r k bootimage
零、命令解释:
make -j8// 八个线程 - 根据cpu几核几线程
make pl// 编译preloader
make lk// 编译lk
make kernel// 编译kernel
make bootimage// 打包boot.img(包含kernel、dts、rootfs、init.**.rc、sepolicy下的te权限文件)
make snod// 打包system.img(包含hal,jni,framework)
make// 全部打包
mmma
2>&1// 将2(输出)重定向输出到1(输入)
不跑脚本全编:source build/envsetup.sh ; lunch full_magc6737m_65_n-user; make update-api 2>&1 | tee update-api.log; make -j8 2>&1 | tee system.log
一、单独编译lk和kernel
1. 找到lunch的项目 -->方便lunch知道是什么项目,与版本(eng/user/userdebug)
vim out/target/product/magc6737m_65_n/previous_build_config.mk
2. copy私有化代码到公共
./x_kst v618_v1.2_hd_oule_p300_gsm4_w15_f135782040_8gb_1d3
3. android编译环境初始化
sou