一、输入命令:

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. Phyre LCUE with YEBIS cause issues about GS

    when LCUE enabled in phyreEngine when Yebis integrated and render there are two mainloopdraws in one ...

  2. POJ 1700 Crossing River (贪心)

    Crossing River Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 9585 Accepted: 3622 Descri ...

  3. ISIN编码

    国际证券识别编码(ISIN编码)是由国际标准化组织(ISO)制定的证券编码标准,并在<证券及相关金融工具-国际证券识别编码体系>(ISO6166)中正式发布.ISO6166主要规定了ISI ...

  4. cf div2 239 D

    D. Long Path time limit per test 1 second memory limit per test 256 megabytes input standard input o ...

  5. isMobile 一个简单的JS库,用来检测移动设备

    点这里 github地址:https://github.com/kaimallea/isMobile Example Usage I include the minified version of t ...

  6. C# 匿名方法 1027

    class Program { static void Main(string[] args) { SorAndShowFiles("Sorted by name", delega ...

  7. ***PHP preg_match正则表达式的使用

    第一,让我们看看两个特别的字符:‘^’和‘$’他们是分别用来匹配字符串的开始和结束,以下分别举例说明 : "^The": 匹配以 "The"开头的字符串; &q ...

  8. poj 2599 A funny game 博弈论

    思路:无向图,走过的点不能在走.dfs搞定…… 再就是后继中有必败点的为必胜点! 代码如下: #include<iostream> #include<cstdio> #incl ...

  9. HDU 5596/BestCoder Round #66 (div.2) GTW likes math 签到

    GTW likes math  Memory Limit: 131072/131072 K (Java/Others) 问题描述 某一天,GTW听了数学特级教师金龙鱼的课之后,开始做数学<从自主 ...

  10. pku 1182(种类并查集)

    题目链接:http://poj.org/problem?id=1182 解题思路来自discuss:http://poj.org/showmessage?message_id=152847 #incl ...