ubuntu下mtk6573平台android源码编译命令

初步接触mtk的朋友可能不知道用哪些命令编译源码,或者不太理解形如

# ./makeMtk -t  mphone new

命令是什么意思;

其实很简单;

在源码目录下执行# ./makeMtk -h 即可查看命令参数;  或者./mk  -h

root@andyubuntu-virtual-machine:/home/work/smartphone_mt6573# ./makeMtk -h

/*********************************************************************************

*注意下面这个格式;                                                                                                 *

*********************************************************************************/

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).

  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.

 

  sign-image    : Sign 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.

  gen-relkey    : Generate releasekey for application signing.

 

  sdk           : Build sdk package.

  banyan_addon  : Build MTK sdk addon.

  cts           : Build cts package.

  bootimage     : Build bootimage.

  systemimage   : Build systemimage.

  recoveryimage : Build recoveryimage.

  secroimage    : Build secroimge.

  factoryimage  : Build factoryimage.

  userdataimage : Build userdataimage.

 

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"

================================================================================

mtk6573 android源码编译文档请参看:

http://blog.csdn.net/thinkandchange/article/details/7635144

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值