MTK Android Standard Compilation command

Source: Internet
Author: User

Command format:./maketek [option] [Project] [action] [modules]

Option:


-T,-tee: Output log information to the current terminal


-O,-opt= ...: Compile additional conditions, general use-opt=target_build_variant=user to compile the user board software


-H, Help: Print the assistance information and exit


Project: Project name, for example: BASICOM72_WET_JB3


Action:


N, NEW: Recompile the entire project


C, clean: Cleans up copy files and log information at compile time


R, remake: The entire project is checked for modifications and compiled


LISTP, Listproject: View all of the current project


CodeGen: Generate Database


Nandgen: Generate Nand_device_list.h (for use with NAND flash only)


Check-env: Check if the compilation environment is OK


CHECK-DEP: Checking for functional dependencies


Check-modem: Check Modem


Update-modem: Update the latest modem.img to System.img


MM: Used to compile the APK module, such as:./MK mm Package/apps/deskclok


Emigen: Generating flash-related files (custom_emi.c/.h)


Modules


Compilation module: Preloader, Uboot, kernel, Android


Abbreviation: PL, UB, K, Dr


Other common commands:


./MK $project New first compilation needs to write the name of the project, which can be omitted later


./MK $project R (n) PL (/UB/K/DR) remake or new single module, such as:./MK r UB When compiling kernel, you need to do the package to bootimage operation at the same time, because the kernel part is finally packaged into bootimage And then burn it into the flash


./MK Bootimage/snod/systemimage Packaging Module


./MK Otapackage compiled SD card system upgrade package, generated zip package in out/target/product/project/directory


./MK Banyan_addon compiling the MTK SDK package


Module modification and the corresponding compilation command:


After modifying DWS, first Gencode or through the command./MK drvgen to generate the corresponding. h/.c file, this file will be called by Preloader Uboot kernel and therefore requires new Preloader Uboot kernel and kernel Further needs to be further./MK bootimage Packaging


Preloader Quick Compile:


Modify the following directory or file required./mk r (N) Pl


mediatek/platform/$platform/preloader/...


mediatek/custom/$platform/preloader/...


mediatek/custom/common/preloader/...


mediatek/custom/$project/preloader/...


mediatek/custom/$project the header file under/common/


mediatek/custom/$project/kernel/dct/header file (cust_kpd.h,cust_gpio_usage.h)


Uboot Quick Compile:


Modify the following file or directory required./MK r (N) UB


Bootable/bootloader/uboot/...


mediatek/platform/$platform/uboot/...


mediatek/custom/$platform/uboot/...


Mediatek/custom/common/uboot/...


mediatek/custom/$project/uboot/...


mediatek/custom/$project the header file under/common/


mediatek/custom/$project/kernel/dct/header file (cust_kpd.h,cust_gpio_usage.h)


Mediatek/custom/common/kernel/lcm/inc/lcm_drv.h


Mediatek/custom/common/kernel/leds/inc/cust_leds.h


Kernel Quick Compile:


Modify the following files or directories required./MK r (N) k then execute./MK bootimage packaged into boot.img


kernel/...


mediatek/platform/$platform/kernel/...


mediatek/source/kernel/...


mediatek/custom/$platform/kernel/,.,,


mediatek/custom/common/kernel/...


mediatek/custom/$project/kernel/...


mediatek/custom/$project the header file under/common/


Header file under mediatek/custom/common/hal/


mediatek/custom/$project the header file under/hal/


./MK bootimage


Package Build $product_out/boot.img


Package Build $product_out/ramdisk.img


./MK Recoveryimage


According to the dependence will Mr. Cheng Boot.img


Package Build $product_out/recovery.img


./MK Snod/systemimage-nodeps


Package generates $PRODUCT_OUT/SYSTEM.IMG but does not check for any dependencies


./MK Systemimage


Package build $product_out/system.img Check for any dependencies


./MK Cacheimage


Package Build $product_out/cache.img


./MK Userdataimage


Package Build $product_out/userdata.img


./MK Secroimage


Package Build $product_out/secro.

MTK Android Standard Compilation command

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.