MTK compilation command
Directory
1 .......................................................................................... 2
2 new ............................................................................................ 3
3. Update ......................................................................................... 3
4. Remake ......................................................................................... 3
5. Clean ............................................................................................ 3
6. Other commands ................................................................................ 4
2 new:
Function: creates an arm version of the entire project, including images, sounds, strings, and other resources. Clear all target files, library files, and log files during the construction of the project. The new command automatically creates necessary directories, removes temporary files and intermediate scripts, and updates log files.
Brief process description: New-> cleanall-> sysgen-> ckscatter-> mmi_feature_check-> asngen-> codegen-> asnregen-> operator_check_lit-> $ (btld_bin_file)-> Update.
Dependent commands: New depends on the most other commands, including cleanall, sysgen, ckscatter, mmi_feature_check, asngen, codegen, asnregen, operator_check_lite, and update.
Purpose: The new command is the most thorough and longest time-consuming action. Generally, the project owner needs to create a new version of MTK after it is released.
Example: C: bird25_gemini_07brelease> make bird25_gemini_07b GPRS new.
3 Update:
Function: Update updates the arm version of the entire project. This action scans the dependencies between files and libraries in the project. If the dependency changes, a new dependency is created, then, recompile the link based on the new dependency. The update command does not rely on the cleanall command, so it does not delete the target file and library file, nor update the log file and create the target directory, which is similar to the remake command, this is why the execution time is shorter than that of new.
Brief description of the process: Update-> cleanlog-> cleanbin-> mcddll_update-> codegen-> resgen-> cksydrv-> remake.
Dependent commands: cleanlog, cleanbin, mcdll_updata, codegen, resgen, cksydrv, and remake.
Purpose: update is a time-consuming command. It is generally used when drivers or applications are added or deleted.
Example: C: bird25_gemini_07brelease> make bird25_gemini_07b GPRS update. 4 remake:
Function: remake is used to re-compile the arm version of the entire project. This action is only part of the modified re-compilation link. It does not check dependencies. It does not scan resources. It only scans for code changes, changes in re-encoding, and resources and code without changes.
Brief process description: remake-> mcp_check-> cleanlog-> cleanbin-> genverno-> libs-> $ (btld_bin_fike)-> cmgen-> done.
Dependency commands: mcp_check, cleanlog, cleanbin, genverno, Libs, $ (bin_fike), cmgen, and done. The two most important commands are libs, $ (bin_fike ). Libs calls the compiler and connector to compile and connect the C files under each Module Directory into an independent library. $ (Bin_fike) is used to connect the libraries compiled and connected by each module with the libraries in the mtk_lib directory to obtain an image file, then, use the analyticdb tool fromelf to generate a binary file named after the variable bin_file. The file can be downloaded to the hardware board for running.
Purpose: remake is the most common and time-consuming action.
Example: C: bird25_gemini_07brelease> make bird25_gemini_07b GPRS remake.
5 clean:
Function: clears all target files, temporary files, library files, executable files, and updates log files. It can also be used for clearing a module.
Brief process description: Check build root, target folder, comp, Lib, comp log folder-> clean bin folder, Elf, Lis, htm, log files, TST database files, OBJ, lib files.
Dependent commands: cleanlog, cleanbin, cleanmod, cleancodegen, etc.
Purpose: as the instruction on which other commands depend, there is also a class library that clears the project or specified module object.
Example: C: bird25_gemini_07brelease> make bird25_gemini_07b GPRS clean,
C: bird25_gemini_07brelease> make bird25_gemini_07b GPRS clean init.
6. Other commands:
New_shortname: A new PC Simulation Version of the entire project. It calls the VC compiler and linker to obtain a PC simulation version that can run on Windows. MMI application software engineers can check and debug their own applications on the PC without a hardware board.
Codegen_mrm: datebase that generates the trace file required by the modegraph.
Gen_shortname: Generate VC project files.
Re-compile the PC version of the entire project.
Codegen: Create a TST database. The dependent Commands include cleancodegen, asngen, [umts_gen], codegen, asnregen, cleanbin, mcddll_update, and done.
Cleancodegen: delete codegen. Lis.
Resgen: generates MMI resources. It depends on the following commands: code_generate, cleancodegen, asngen, codegen, asnregen, cleanbin, mcddll_update, done.
Cmgen: generate a CMM file.
Sysgen: generate a memory ing file and place it in the customer folder.
Emigen: Generate flash_opt.h, custom_emi.h, custom_emi.c, and custom_switchclock.c files.
Emiclean: Clear EMI settings.
Mmi_feature_check: generates the info. Log File Based on the macro definitions in mmi_features.h and mmi_features_switch.h.
Operator_check: Check whether the macro of customer is modified. If the macro is modified, the corresponding log file is generated.
FOTA: generate the FOTA binary file.
Bootloader: generate a binary file of bootloader.
Ckscatter: Check the scatter File
Mmi_obj_check: Check the running time value, e. g, and the size of the federated element.
Med_mem_check: Check media memory. This command depends on gencustominfo gen_infolog nvram_auto_gen.
Dummy_data_check: Check virtual data.
Viewlog: view log files.
Cksysdrv: Check whether the system driver is full.
Genverno: Generate Verno. c/h.
Mcddll_update: Generate and update the TST mcddll. dll file.
Gen_bl_verno: generate the bootloader version.
Del_fota: Delete the FOTA binary file and the elf, Lis, sym, htm. *. log file.
This article is from: tianqin mobile phone R & D network (mtkmtk.com)-This website is used as a mobile phone
Http://www.mtkmtk.com/html/download/mtkbuild/2010/0107/5155.html: