MTK6735平台编译笔记:

切换到用户目录:cd /
切换到编译目录:cd home/yz/src/W1
修改用户权限:sudo su
设置编译环境:source build/envsetup.sh
选择编译模式:lunch (eng/user/user-debug)

new命令:

进去原来的模式执行make clean命令
make clean
再source build\envsetup.sh进去相应的模式
make -j36 2>&1 | tee build.log

编译整个项目,不clean:

make -j36 2>&1 | tee build.log

编译指定目录(mmm)命令,只要有XXX.mk文件都可以编译:

mmm packages/apps/setting/

修改了应用,把编译出来的文件(如.apk)重新打包到system.img

make -j36 snod

修改了framework,编译framework

mmm frameworks/base/

//要删掉目录下文件
frameworks/base/docs/
build/tools/droiddoc
find ./ -name ".svn" -type d -exec rm -rf {} \;

make update-api

只编kernel

make -j36 kernel 2>&1 |tee kernel.log
make -j36 bootimage

1、修改开机动画目录:

w2\vendor\mediatek\proprietary\operator\OP02\prebuilt\bootanim\bootanimation\LTE\FWVGA
w1\vendor\mediatek\proprietary\operator\OP02\prebuilt\bootanim\bootanimation\LTE\HD720
删除:
6735_53L1\w1\w1\out\target\product\hct6735_65u_b_l1\obj\media
6735_53L1\w1\w1\out\target\product\hct6735_65u_b_l1\system\media

编译:

make -j36 2>&1 | tee build.log

修改开机logo:

w1\device\haocheng\hct6735_65u_l\ProjectConfig.mk 
搜索BOOT_LOGO = cu_lte_hd720
w1\bootable\bootloader\lk\dev\logo\cu_lte_hd720

w1svn\w1\bootable\bootloader\lk\project\hct6735_65u_l.mk
BOOT_LOGO = cu_lte_hd720

删除:
6735_53L1\w1\w1\out\target\product\hct6735_65u_b_l1\logo.bin
6735_53L1\w1\w1\out\target\product\hct6735_65u_b_l1\lk.bin
6735_53L1\w1\w1\out\target\product\hct6735_65u_b_l1\boot.img
6735_53L1\w1\w1\out\target\product\hct6735_65u_b_l1\obj\BOOTLOADER_OBJ\build-hct6735_65u_b_l1\dev\logo

2、修改开机动画代码目录:

w2\frameworks\base\cmds\bootanimation

OP02目录:

w1\device\haocheng\hct6735_65u_l\ProjectConfig.mk 
搜索OPTR_SPEC_SEG_DEF = OP02_SPEC0200_SEGA
w1\vendor\mediatek\proprietary\operator\OP02\prebuilt\bootanim\bootanimation\Android.mk
    ifeq ($(LCM_HEIGHT), 1280)
        LOCAL_PATH := $(LOCAL_PATH)/HD720
    endif

HD720目录:

w1\vendor\mediatek\proprietary\operator\OP02\prebuilt\bootanim\bootanimation\Android.mk
搜索:
    ifeq ($(LCM_HEIGHT), 1280)
        LOCAL_PATH := $(LOCAL_PATH)/HD720
    endif

你可能感兴趣的:(Android,系统开发,mtk,Android系统,编译)