SpreadtrumConfidentialandProprietaryMake/Build环境使用手册Version:0.1.52009-10-21环境使用手册V1.0.0SpreadtrumConfidentialandProprietary2of30修订历史版本日期作者审核说明0.0.12007-12-11Daniel.LuoCreate0.022008-1-31Daniel.Luo增加客户发布及使用内容0.032009-03-10Mingjianliu基于MOCOR_W09.11修改0.042009-03-31Mingjianliu增加多线程编译,Windowscommand编译0.052009-04-09Mingjianliu删除Cygwin相关所有信息0.062009-04-15Mingjianliu编译命令增加5.18特别提醒,新建工程部分增加NV,Resource部分的说明0.072009-04-20Mingjianliu根据评审结果修改0.082009-04-28Mingjianliu增加编译暂停说明;资源编译说明更新,增加编译出错的一个说明0.092009-05-06Mingjianliu增加对VC模拟器编译说明,提醒修改工程0.102009-05-30MingjianliuResource,NV说明更新0.112009-07-08Mingjianliu增加通过复制方式创建新工程说明;增加sourceInsight与CC集成说明;增加全局变量和转义宏的实现区分;增加第三方编译选项说明;更新多套资源编译说明0.122009-08-19Mingjianliu1.第三方逻辑部分独立成一个文件Makefile.third-partyMakefile.third-party2编译APP需要调用tools\DEBUG_TOOL\BMP2Array工具3.增加分布式编译说明.4.鼠标右键增加命令行快捷方式说明5.DOS下输入命令时用Tab键进行命令自动填充6.增加动态生成模拟器部分说明0.132009-08-31Mingjianliu更新3.2统一编译部分关于:makefile宏赋制值的特别说明0.142009-09-24Mingjianliu更新复制方式创建项目编译脚本部分:大工程中增加PRODUCT_BASELIB_DIR变量及使用说明;MS_Customize/source/product/config驱动部分根据工程名字自适应;7.2.4项目修改编译选项注意事项更新;更新NV编译选项说明;增加3.5编译命令最大长度8K限制0.152009-10-21MingjianliuIn分布式编译,路径不能有括号,担搁括号也不可以.Make/Build环境使用手册V1.0.0SpreadtrumConfidentialandProprietary3of30重要声明版权声明本文档中的任何内容受《中华人民共和国著作权法》的保护,版权所有©2006,展讯通信有限公司,保留所有权利,但注明引用其他方的内容除外。商标声明本文档中展讯通信有限公司的产品的所有商标是展讯通信有限公司专有,但注明属于其他公司拥有的商标除外。在提及其他公司及其产品时将使用各自公司所拥有的商标,这种使用的目的仅限于引用。不作保证声明展讯通信有限公司不对此文档中的任何内容作任何明示或暗示的陈述或保证,而且不对特定目的的适销性及适用性或者任何间接、特殊或连带的损失承担任何责任。保密声明本文档(包括任何附件)包含的信息是保密信息。接收人了解其获得的本文档是保密的,除用于规定的目的外不得用于任何目的,也不得将本文档泄露给任何第三方。Make/Build环境使用手册V1.0.0SpreadtrumConfidentialandProprietary4of30目录1说明.....................................................................................................................................62运行环境..............................................................................................................................72.1编译环境及安装相关软件..............................................................................................73编译架构..............................................................................................................................84目录结构及关键脚本..........................................................................................................114.1make/build环境的关键目录结构..................................................................................114.2关键脚本.....................................................................................................................124.2.1Makefile.rules......................................................................................................124.2.2Makefile.modules.................................................................................................134.2.3Makefile.third-party..............................................................................................134.2.4Makefile.verify......................................................................................................134.2.5Makefile...............................................................................................................134.2.6make.bat..............................................................................................................135基本命令............................................................................................................................145.1帮助............................................................................................................................145.2编译参数中projectname与项目编译脚本对应关系.....................................................145.3编译整个项目[update].................................................................................................145.4重新编译整个项目[new]...............................................................................................155.5清除所有编译结果[cleanall].........................................................................................155.6清除模块编译结果.......................................................................................................155.7编译模块.....................................................................................................................155.8生成可执行文件...........................................................................................................155.9编译FDL/bootloader....................................................................................................155.10编译NV.......................................................................................................................155.11编译Resource.............................................................................................................165.12编译手机模拟器工程....................................................................................................176其它命令............................................................................................................................206.1编译Logel工具........................................................................................................