日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > Android >内容正文

Android

Mtk Android编译命令

發(fā)布時(shí)間:2025/4/16 Android 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Mtk Android编译命令 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

一、輸入命令:

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"

?

三、?當(dāng)修改一些代碼時(shí),使用什么編譯命令可以最有效率
1: ./mk n(r) kernel; ./mk bootimage;當(dāng)修改kernel相關(guān)代碼時(shí),要使用此命令,具體如下:
? ? ?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 ?當(dāng)修改preloader相關(guān)代碼時(shí),要使用此命令,具體如下:
? ? ?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 ?當(dāng)修改uboot相關(guān)代碼時(shí),要使用此命令,具體如下:
? ? ?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 當(dāng)修改system相關(guān)代碼時(shí)使用此命令,具體如下:
? ? ? alps/frameworks/
? ? ? alps/packages/
? ? ? alps/vendor/
? ? ? alps/hardware/
? ? ? alps/dalvik/
? ? ? ...........
5: ./mk recoverimage ?當(dāng)修改recover相關(guān)代碼時(shí)使用此命令,具體如下:
? ? ? alps/bootable/recovery/
? ? ? alps/mediatek/customer/$project_name$/recovery/
? ? ? ......
6: ./mk factoryimage: ?當(dāng)修改factory相關(guān)代碼時(shí)使用此命令,具體如下:
? ? ? alps/mediatek/customer/$project_name$/factory/
? ? ? alps/mediatek/customer/common/factory/
? ? ? alps/mediatek/source/factory/
? ? ? ......
7: ./mk secroimage ?當(dāng)修改secro相關(guān)代碼時(shí)使用此命令,具體如下:
? ? ? alps/mediatek/source/secro/
? ? ? alps/mediatek/customer/$project_name$/secro/

總結(jié)

以上是生活随笔為你收集整理的Mtk Android编译命令的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。