[Android] MTK Android compilation command, androidmtk
Command Format:./maketek [option] [project] [action] [modules]
Option:
-T,-tee: Output log information to the current terminal
-O,-opt = ...... : Compile additional conditions. Generally, use-opt = TARGET_BUILD_VARIANT = user to compile the user board software.
-H, help: print the help information and exit
Project: Project name, for example, basicom72_wet_jb3
Action:
N, new: recompile the entire project
C. clean: clears the file and log information copied during compilation.
R, remake: Check and compile the modified part of the entire project
Listp, listproject: view all current projects
Codegen: Generate database
Nandgen: Generate nand_device_list.h (only for nand flash)
Check-env: check whether the compiling environment is OK.
Check-dep: check functional dependency
Check-modem: check the 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: Generate 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 the name of the project needs to be written in the first compilation, which can be omitted later
. /Mk $ project r (n) pl (/ub/k/dr) remake or new a single module, such :. /mk r ub requires packaging to bootimage at the same time when compiling the kernel, because the kernel is finally packaged into bootimage and then burned into flash.
./Mk bootimage/snod/systemimage packaging Module
./Mk otapackage: Compile and create the SD card system upgrade package. The generated zip package is in the out/target/product/project/directory.
./Mk banyan_addon compile MTK sdk package
Module modification and corresponding compilation commands:
After you modify DWS, run gencode or the command. /mk drvgen to generate the corresponding. h /. c file. This file will be called by preloader uboot kernel. Therefore, the new preloader uboot kernel is required and the kernel must be further called. /mk bootimage Packaging
Rapid compilation of Preloader:
Modify the following directory or file./mk r (n) pl
Mediatek/platform/$ platform/preloader /...
Mediatek/custom/$ platform/preloader /...
Mediatek/custom/common/preloader /...
Mediatek/custom/$ project/preloader /...
Mediatek/custom/$ project/common/header file
Mediatek/custom/$ project/kernel/dct/header file (cust_kpd.h, cust_gpio_usage.h)
Uboot quick Compilation:
Modify the following file or directory./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/common/header file
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
Fast Kernel Compilation:
Modify the following file or directory./mk r (n) k and then run./mk bootimage to package it 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/common/header file
Header file under Mediatek/custom/common/hal/
Mediatek/custom/$ project/hal/header file
./Mk bootimage
Package and generate $ PRODUCT_OUT/boot. img
Package and generate $ PRODUCT_OUT/ramdisk. img
./Mk recoveryimage
Boot. img Based on the dependency
Package and generate $ PRODUCT_OUT/recovery. img
./Mk snod/systemimage-nodeps
Package and generate $ PRODUCT_OUT/system. img without checking any dependencies
./Mk systemimage
Package and generate $ PRODUCT_OUT/system. img to check any dependencies
./Mk cacheimage
Package and generate $ PRODUCT_OUT/cache. img
./Mk userdataimage
Generate $ PRODUCT_OUT/userdata. img
./Mk secroimage
Generate $ PRODUCT_OUT/secro. img
MTK compilation command Problems
When the GPRS communication rule MTK is so compiled. the name of the MAK file is xxx_upls.mak GPRS, which indicates that the communication rule of the system is GPRS, and the compilation rule is xxx gprs new or xxx GSM new in order to facilitate compilation and let developers know that the system is based on communication rules
How many commands are used to compile the android source code?
In mmm package/app/contacts, the contacts in the package/app/contacts directory are compiled into APK, and the last two contacts are not fully written. remoute is mounted to the SD card, push copies objects from a computer to a device.