一、编译前的准备工作:
1、编译相关的工具包:
2、Make/option.mak 中关于 ADS 编译器的路径设置正确
ifeq ($(strip $(COMPILER)),ADS)
DIR_ARM = c:/adsv1_2
DIR_ARM := $(strip $(DIR_ARM))
DIR_TOOL = $(DIR_ARM)/bin
DIR_ARMLIB = $(DIR_ARM)/lib
DIR_ARMINC = $(DIR_ARM)/include
Endif
3、 ADS 的lincense 正确安装。
4、 ADS 需进行升级 升级包为 ADS 1.2 Build 848 patch for Windows.exe
二、MTK编译分资源的编译和代码的编译:
1、资源的编译:
1)、 需要编译资源的情况:在如下的修改情况下,需要重编译资源:
3)、当我们改变了资源,想在PC模拟上看到修改效果时,也需要先执行如上的资源编译命令,再在VC环境下build一下资源,就可以看到效果了。
2、 代码的编译:
有如下的编译命令:
make custom=xxx gprs new
make custom=xxx gprs update
make custom=xxx gprs remake
make custom=xxx gprs clean
几个关键字解释如下:
2) 最后一个关键字:
a. new:不管资源、代码是否有改变,全部重编;
b. update:扫描资源、代码的改变,有改变的重编,无改变的不编;
c. remake:不扫描资源,只扫描代码的改变,有改变的重编,资源和无改变的代码不编;
则编译命令为:make custom=WE3_25_GEMINI gprs new/update/remake/clean