一、输入命令:

cbk@YCS:~/work/k6/alps$ ./mk help

Usage: (makeMtk|mk) [options] project actions [modules]

Options:

  -t, -tee      : Print log information on the standard-out.

  -o, -opt=bypass_argument_to_make

                : Pass extra arguments to make.

-h, -help     : Print this message and exit.

Projects:

  one of available projects.

Actions:

  listp, listproject

                : List all available projects.

check-env     : Check if build environment is ready.

  check-dep     : Check feature dependency.

  n, new        : Clean and perform a full build.

  c, clean      : Clean the immediate files(such as, objects, libraries etc.).

  r, remake     : Rebuild(target will be updated if any dependency updats).

  mrproper      : Remove all generated files + config + various backup files in Kbuild process.

  bm_new        : "new" + GNU make's "-k"(keep going when encounter error) feature.

  bm_remake     : "remake" + GNU make's "-k"(keep going when encounter error) feature.

  mm            : Build module through Android native command "mm"

emigen        : Generate EMI setting source code.

  nandgen       : Generate supported NAND flash device list.

  codegen       : Generate trace DB(for META/Cather etc. tools used).

  drvgen        : Generate driver customization source.

  custgen       : Generate customization source.

  javaoptgen    : Generate the global java options.

  ptgen         : Generate partition setting header & scatter file.

  bindergen     : Generate binder related information

sign-image    : Sign all the image generated.

  encrypt-image : Encrypt all the image generated.

  update-api    : Android default build action

                  (be executed if system setting or anything removed from API).

  check-modem   : Check modem image consistency.

  upadte-modem  : Update modem image located in system.img.

  modem-info    : Show modem version

  gen-relkey    : Generate releasekey for application signing.

  check-appres  : Check unused application resource.

sdk           : Build sdk package.

  win_sdk       : Build sdk package with a few Windows tools.

  banyan_addon  : Build MTK sdk addon.

  cts           : Build cts package.

  bootimage     : Build boot image(boot.img).

  cacheimage    : Build cache image(cache.img).

  systemimage   : Build system image(system.img).

  snod          : Build system image without dependency.

                  (that is, ONLY pack the system image, NOT checking its dependencies.)

  recoveryimage : Build recovery image(recovery.img).

  secroimage    : Build secro image(secro.img).

  factoryimage  : Build factory image(factory.img).

  userdataimage : Build userdata image(userdata.img).

  userdataimage-nodeps

                : Build userdata image without dependency.

                  (that is, ONLY pack the userdata image, NOT checking its dependencies.)

  target-files-package

                : Build the target files package.

                  (A zip of the directories that map to the target filesystem.

                   This zip can be used to create an OTA package or filesystem image

                   as a post-build step.)

  updatepackage : Build the update package.

  dist          : Build distribution package.

Modules:

  pl, preloader : Specify to build preloader.

  ub, uboot     : Specify to build uboot.

  k,  kernel    : Specify to build kernel.

  dr, android   : Specify to build android.

  NULL          : Specify to build all components/modules in default.

  k <module path>

                : Specify to build kernel component/module with the source path.

  dr <module name>

                : Specify to build android component/module with module name.

二、Example:

  ./mk -t e1k emigen

                : Generate EMI setting source code.

  ./mk -o=TARGET_BUILD_VARIANT=user e1k n

                : Start a user mode full build.

  ./mk listp    : List all available projects.

  ./mk e1k bootimage

                : Build bootimage for e1k project.

  ./mk e1k bm_new k

                : Build kernel for e1k project.

  ./makeMtk e1k c,bm_remake ub k

                : Clean & Build uboot and kernel for e1k project. 

  ./makeMtk e1k n k kernel/xxx/xxx

                : Build(full build) kernel component/module 

                  under the path "kernel/xxx/xxx" for e1k project.

  ./makeMtk e1k r dr Gallery

                : Rebuild android module named Gallery for e1k project.

  ./makeMtk e1k mm packages/apps/Settings

    : Change Directory to packages/apps/Settings and execute "mm"

三、 当修改一些代码时,使用什么编译命令可以最有效率

1: ./mk n(r) kernel; ./mk bootimage;当修改kernel相关代码时,要使用此命令,具体如下:

     alps/kernel/

     alps/mediatek/platform/mt65xx/kernel/

     alps/mediatek/source/kernel/

     alps/mediatek/customer/mt65xx/kernel/

     alps/mediatek/customer/common/kernel/

     alps/mediatek/customer/$porject_name$/kernel

     ......

2: ./mk n pl  当修改preloader相关代码时,要使用此命令,具体如下:

     alps/mediatek/platform/mt65xx/preloader/

     alps/mediatek/source/preloader/

     alps/mediatek/customer/mt65xx/preloader/

     alps/mediatek/customer/common/preloader/

     alps/mediatek/customer/$porject_name$/kernle

     ......

3: ./mk uboot  当修改uboot相关代码时,要使用此命令,具体如下:

     alps/mediatek/platform/mt65xx/uboot/

     alps/mediatek/source/uboot/

     alps/bootable/bootloader/uboot/

     alps/mediatek/customer/mt65xx/uboot/

     alps/mediatek/customer/common/buoot/

     alps/mediatek/customer/$porject_name$/uboot/

      ......

4: ./mk systemimage 当修改system相关代码时使用此命令,具体如下:

      alps/frameworks/

      alps/packages/

      alps/vendor/

      alps/hardware/

      alps/dalvik/

      ...........

5: ./mk recoverimage  当修改recover相关代码时使用此命令,具体如下:

      alps/bootable/recovery/

      alps/mediatek/customer/$project_name$/recovery/

      ......

6: ./mk factoryimage:  当修改factory相关代码时使用此命令,具体如下:

      alps/mediatek/customer/$project_name$/factory/

      alps/mediatek/customer/common/factory/

      alps/mediatek/source/factory/

      ......

7: ./mk secroimage  当修改secro相关代码时使用此命令,具体如下:

      alps/mediatek/source/secro/

      alps/mediatek/customer/$project_name$/secro/

Mtk Android编译命令的更多相关文章

  1. 【Android】MTK Android 编译命令

    命令格式:./maketek [option] [project] [action] [modules] Option: -t ,-tee :输出log信息到当前终端 -o , -opt=-- : 编 ...

  2. MTK Android 编译命令

    一.Target 编译命令 usage: (makeMtk|mk) [options] project actions [moudles] options:       -t,-tcc         ...

  3. mtk Android 编译命令自定义--添加版本号

    1. alps\build\core\Makefile文件:(参照CUSTOM_BUILD_VERNO) ifeq "" "$(SURPLUS_BUILD_VERNO)& ...

  4. Android系统移植与调试之------->MTK 标准编译命令

    命令格式:./maketek [option] [project] [action] [modules]Option:   -t ,-tee :输出log信息到当前终端   -o , -opt=-- ...

  5. Android 编译命令 make j8 2>&1 | tee build.log 解释

    在编译Android的时候,经常看到这样的命令 make  -j8 2>&1 | tee build.log  其中 make 是编译命令, -j8 这里的 8 指的是线程数量,就是你要 ...

  6. Yocto和Android编译命令的简化和自动完成的实现

    简化编译命令 无论是在Android编译系统中,还是在Yocto编译系统中,要编译一个目标,输入命令都有点费事. Yocto系统: source setup-environment $FOLDER b ...

  7. 理解Android编译命令(转)

    一.引言 关于Android Build系统,这个话题很早就打算整理下,迟迟没有下笔,决定跟大家分享下.先看下面几条指令,相信编译过Android源码的人都再熟悉不过的. source setenv. ...

  8. Android编译命令

    目录 说在前面 编译流程 编译指令 代码编译 代码检索 其他指令 说在前面 从最开始接触Android系统开始,每次进行代码编译都需要网上搜索编译指令.后来大致熟悉了Android的编译体系,加深了对 ...

  9. MTK+Android编译

    1. 修改recovery代码 比如mediatek\custom\itek82_wet_kk\recovery\inc\cust_keys.h ./mk r k ./mk recoveryimage ...

随机推荐

  1. JS 学习笔记--JS中的事件对象基础

    事件:JavaScript中的事件是由访问web页面用户的一系列操作引起的,比如点击鼠标,键盘按键等.当用户执行某些操作的时候再去执行一些代码. 事件模型:内联模型.脚本模型.DOM2模型 内联模型: ...

  2. TestDriven.Net

    转: http://www.cnblogs.com/AlexLiu/archive/2008/12/01/1345002.html

  3. javascript 关于函数的返回值

    在javascript中根据调用方式的不同返回的内容也不同 1.  以函数的形式调用 当以函数的形式调用时, 返回值和函数定义时的 ruturn 有关, return的是数字就number类型, re ...

  4. JavaScript 中的 this

    JavaScript 语言中的 this 由于其运行期绑定的特性,JavaScript 中的 this 含义要丰富得多,它可以是全局对象.当前对象或者任意对象,这完全取决于函数的调用方式.JavaSc ...

  5. Oracle自带的用户

    Oracle安装完毕创建数据库实例的时候,会自动生成三个用户sys,system,scott. sys用户是超级管理员,具有最高权限,充当sysdba角色,可以执行create database,默认 ...

  6. jdom处理的XML Document 和String 之间的相互转化

    package util; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileWriter; ...

  7. HTTP协议header标头详解

    本文根据RFC2616(HTTP/1.1规范),参考 http://www.w3.org/Protocols/rfc2068/rfc2068 http://www.w3.org/Protocols/r ...

  8. SQL Server 基础 之 GROUP BY子句

    GROUP BY 子句用于聚合信息 先看个实例,没有使用 GROUP BY 子句 SELECT SalesOrderID,OrderQty FROM Sales.SalesOrderDetail WH ...

  9. js中的call与apply

    看js权威指南里面关于call与apply方法的说明:我们可以将call()与apply()看作是某个对象的方法,通过调用方法的形式来间接调用函数.这样的解释未免使人糊涂啊.下面说一下自己的见解:其实 ...

  10. mysql 连接数的最大数

    mysql默认最大连接数是100,增加加默认MYSQL连接数的方法有两个 方法一:进入MYSQL安装目录 打开MYSQL配置文件 my.ini(windows) 或 my.cnf(linux环境)查找 ...