MTK Android 编译命令
生活随笔
收集整理的這篇文章主要介紹了
MTK Android 编译命令
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、Target 編譯命令
usage: (makeMtk|mk) [options] project actions [moudles]
options:
????? -t,-tcc???????????????????????????????????????????????? :print log information to the standard output.
????? -o,-opt=bypass_argument_to_make????? :pass arguments to make
????? -eabi[N]????????????????????????????????????????????? :specify the version of eabi.
?
????? -h,-help?????????????????????????????????????????????? :print this message and exit.
????? -listp,-listproject?????????????????????????????????? :list all available projects.
projects:
????? one of available projects.?
actions:
????? n,new?????????????????????????????????????????????????? :clean and compile.
????? c,clean???????????????????????????????????????????????? :clean the projects.
????? bm_new??????????????????????????????????????????????? :keep going when some targets can't be made.
????? bm_remake?????????????????????????????????????????? :keep going when some targets can't be made.
?
????? emigen???????????????????????????????????????????????? :the emigen process.
????? codegen?????????????????????????????????????????????? :the codegen process.
????? custgen??????????????????????????????????????????????? :generatesome files for customization.
????? javaoptgen ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? :generate the global java options. ? ? ? listproject,listp moudles ? ? ?preloader(or pl) , uboot(or ub),kernel(or k) ,android (or dr)?
eg: ? ? ?./makeMtk?jwton77_ics2 codegen ? ? ?./mk?jwton77_ics2 c r ub android? ? 備注(詳細版本): 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.
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 bootimage.
cacheimage : Build cacheimge.
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.
二、?當修改一些代碼時,使用什么編譯命令可以最有效率
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/
? ? ?.....
????? -t,-tcc???????????????????????????????????????????????? :print log information to the standard output.
????? -o,-opt=bypass_argument_to_make????? :pass arguments to make
????? -eabi[N]????????????????????????????????????????????? :specify the version of eabi.
?
????? -h,-help?????????????????????????????????????????????? :print this message and exit.
????? -listp,-listproject?????????????????????????????????? :list all available projects.
projects:
????? one of available projects.?
actions:
????? n,new?????????????????????????????????????????????????? :clean and compile.
????? c,clean???????????????????????????????????????????????? :clean the projects.
????? bm_new??????????????????????????????????????????????? :keep going when some targets can't be made.
????? bm_remake?????????????????????????????????????????? :keep going when some targets can't be made.
?
????? emigen???????????????????????????????????????????????? :the emigen process.
????? codegen?????????????????????????????????????????????? :the codegen process.
????? custgen??????????????????????????????????????????????? :generatesome files for customization.
????? javaoptgen ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? :generate the global java options. ? ? ? listproject,listp moudles ? ? ?preloader(or pl) , uboot(or ub),kernel(or k) ,android (or dr)?
eg: ? ? ?./makeMtk?jwton77_ics2 codegen ? ? ?./mk?jwton77_ics2 c r ub android? ? 備注(詳細版本): 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.
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 bootimage.
cacheimage : Build cacheimge.
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.
二、?當修改一些代碼時,使用什么編譯命令可以最有效率
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 编译命令的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mtk Android编译命令
- 下一篇: mtk Android 编译命令自定义-