Mstar platform compilation instructions

Source: Internet
Author: User

How to join?

1) supports compiling Simulators

2) Emmi versions support make release_ibuild.

32.16each machine package of the network must be installed with incredibuild_target.exe;
4) install incredibuild of version 3.5 and later, and the installation disk should be in NTFS format;
5) versions 2.01.18 and 2.02.33 support distributed compilation under cygwin. The compilation command is make release_ibuild.

6) The incredibuild_target.exe tool is found on the Internet.
7) You can also disable incredibuild_target.exe.
If incredibuild_target.exe is not installed, modify the c: \ Arm \ licenses \ license. dat file of each machine and change all hostid = XXXXXXXXX to: hostid = "any" ts_ OK

The rational use of the target command can reduce the compilation time and improve the problem solving speed. Now I want to summarize the Common commands of target and hope to help you and new people later.
Make release_ibuild: Use increbuild for Distributed compilation and use the server;
Make release_ibuild xrg = 1: This command can directly skip the resource compilation process without compiling resources;
Make release_speed xrg = 1: Same as above;
Make release_speed_cus0: Compile the entire project, but only compile the first resource package;
Make mmi_cus: Compile resources;
Make clean_mmi_cus: Clean resource;
Make mmi_cus0: only compile the first resource package;
Make mmi_cus; Make e2p: use these two commands to directly run the simulator;
Make clean_lib target =: only the library with the Lib name is cleared, for example, make clean_lib target = 3rd;
Sh. /mg. sh XXX: You can use this command to compile a module separately. For example, if we find that the file we changed is in the 3rd directory, we can use Sh. /mg. sh 3rd;
Make release_mmi_app: If you only change the files in the app directory, you can use this command to compile the files. For example, make release_mmi_drv; Make release_mmi_srv; Make release_mmi_3rd;
Make help: if you do not know what command to use, you can use this command for help, or in the project directory... All commands are found in the \ proj \ MAKEFILE file.

Directly decompress cygwinportable.exe to the c root directory. You do not need to install rvct and cygwin separately;
Run cygwin. bat in the C root directory, switch the directory to proj, and run the./TNG/configure. pl Command in the config file of the new project;
Use the make release_speed or make release_build command for new compilation. Generally, the former is used, and the compilation speed is faster;
You cannot directly use the make command for compilation. This will cause the cannot find source of "arm_copro_s" error;
Use the make release_3rd command to compile only the 3rd part, which is faster;
If MMI is modified, run the make release_mmi command;

You can also select the following compilation Command Based on the module section of the modified MMI:
Make release_mmi_app; Make release_mmi_core; release_mmi_mae.

Mstar compilation is slow. Choose modular compilation as much as possible. Make release_speed is slow,
Make release_speed is required only when the options in the make file are modified.

Command to generate the DZ file: Make dz_normal or make dz_redownload

Make mmi_cus: Compile resources; Make release_mmi_srv: Compile mmi_srv

Multiple make commands can be used together with semicolons, for example, make release_mmi_app; Make release_mmi_srv; Make release_3rd

Compile the mstar Simulator:
./TNG/configure. pl
Make clean
Make e2p; Make mmi_cus

Compile mstar mobile phone bin:
./TNG/configure. pl
Make clean
Make release_speed

After cygwin is installed, start it and the virtual directory of cygwin will be entered by default;
To switch to the specified directory as soon as cygwin is started, use the text editor to open the home/. bashrc file in the cygwin installation directory and add the corresponding command at the end of the file!

For example, if cygwinportable.exe is installed by mstar and is installed in the C root directory by default, after the c: \ cygwinportable \ home \. bashrc file,
Add the cd "D: \ v2.04 _ M100 \ proj" command to enable the "cygwin startup, switch to the Directory D: \ v2.04 _ M100 \ proj.

If you do not want to compile resources during mstar compilation, add "xrg = 1" after the compilation command, for example, make speed xrg = 1.

To compile only a folder, run the "Sh./mg. Sh + module" command, for example, sh./mg. Sh 3rd.

Commands compiled by modules are defined in final_product.mak, for example:
Release_mdl
Release_drv
Release_sys
Release_3rd
Release_libs
Release_final
Release_e2p
Release_mmi
Release_mmi_app
Release_mmi_srv
Release_mmi_mae
Release_mmi_mae_porting
Release_mmi_core
Release_mmi_common
Release_mmi_widget
Release_mmi_model
Release_mmi_res
Release_mmi_srvwrapper
Release_mmi_applauncher
Clean
Clean_mmi
Clean_mae
Clean_mmi_cus

Run the following command to package the downloaded file:
Dz_normal
Dz_redownload

Simulator project file: proj \ mstarstudio_up \ mstardeveloper \ xmmi \ mmi_buildall_cus.sln
Run: proj \ mstarstudio_up \ mstardeveloper \ xmmi \ debug \ mstarsimulator.exe
Product: 8533n_mb303av2
Configuration: hvga
Resource: maid

Xrg is a tool for mstar to compile resources.

Buildall is clean all the Cus and then re-compile. It is time-consuming, but it ensures that all modifications are compiled into the cuz file.

Build is not clean. It is much less time-consuming than buildall to compile based on whether there are new changes;
It compares the modification time of XML (image_list.xml, chinese_s.xml, etc.) with the Creation Time of cuz. If the XML is modified, recompile it.
But in many cases, for example, if only the image in the image directory is replaced and the XML file has not been modified, the newly replaced image will not be compiled.
In this case, you only need to use NotePad to open the corresponding XML, add a space to delete it, save it, And then compile it with build.

Mstar resources (text string, image, sound melody, typographical RS, plmn, Font, input method IME, hand-written handwriting, etc.) are all centrally managed by xrg.
Many resources (text string, image, sound melody, and typographical RS) are organized by application applet;
Some resources (such as plmn, Font, IME, and handwriting) are systematic.

Open a project solution, right-click solution, and a "Export Excel (*. XLS )... "and" Import Excel (*. XLS )... ".
The former exports the text string resource of the entire project to an xls file. After modification, the latter can be used for import. This function is useful in some cases.

Model inheritance relationship
Imodel
-- Idatamodel
-- Iimeassistmodel
-- Iinterfacemodel
-- Isoftkeymodel
-- Itextmodel
-- Ilistmodel
---- Iarraymodel
---- Ivectormodel
------ Imenumodel

Inheritance relationship of Widgets
Widgetbaseex_t
-- Containerbase_t
---- Abscontainerbase_t
------ Gadgetcontainer_t
------ _ Softkeyboard_highlightwdg_t
------ Alivewidget_t
------ Animationcontainer_t
------ Define topwdg_t (declare_baseclass_define topwidget)
-------- Aclock1_topwdg_t
-------- Basic1_topwdg_t
-------- Calendardesktopwdg_t
-------- Dclock1_topwdg_t
-------- Fm1_topwdg_t
-------- Infodesktopwdg_t
-------- Mp1_topwdg_t
-------- Notedesktopwdg_t
-------- Opdomaintopwdg_t
-------- Pedometerwdg_t
-------- Petdesktopwdg_t
-------- Profilewdg_t
-------- Searchbench topwdg_t
------ Doubleitemwidget_t
------ _ Eventwidget_t
------ _ Fcdatewidget_t
------ _ Fctimewidget_t
------ _ Mae_glowtextwidget
------ Ifonewidget_t
------ _ Mae_optionmenuwidget
------ _ Mae_popupselectwidget
------ Rootcontainer_t
------ _ Shortcutbarwidget_t
------ _ Mae_slideswitchwidget
------ _ Mae_statusbarwidget
------ Wdgvolume_t
---- Propcontainerbase_t (propcontainer_t)
------ Commonpickitem_t
------ Wdgimagedoubleitem_t
------ _ Imagetextimagewdg_t
------ Inputcandidatewidget_t
------ Propcirclecontainer_t
------ _ Mae_softkeyboardwidget
------ _ Mae_softkeywidget_t
---- Mflcontainer_t
---- Sheetcontainer_t
---- _ Viewercontainer_t
-- Decoratorex_t
---- Gridwdgbase_t
---- Mainmenuanimatedwdg_t
---- Imagewidget_t
---- _ Imeassistwidget_t
---- Inputgridwidget_t
---- Inputhelperwidget_t
---- Menuwidget_t
---- Pickwidget_t
---- _ Ringlistwidget_t
---- Scrollbarwidget_t
---- _ Scrollindicatorwdg_t
---- Siiwdg_t
---- Tabwidget_t
---- _ Titlewidget_t
---- Wdgtransition_t
---- Viewportwdg_t
-- Wdgbasicbmp _t
-- Flip1_twdg_t
-- Glfotolistwdgbase_t
---- Glboxlistwdg_t
---- Glcontactbrowserwdg_t
-- Wdgbitmap_t
-- _ Buttonwidget_t
-- Wdgcanvas_t
-- Caretwidget_t
-- Wdgdateicon_t
-- Wdgdummy_t
-- Wdgfadeout_t
-- Formatinputwidget_t
-- _ Mae_handwritingwdg_t
-- _ Indicatorwidget_st
-- Inputwidget_t
-- Kmx_popupwidget_t
-- Kmx_softkeyboardwidget_t
-- Wdgosd_t
-- Wdgprogress_t
-- _ Pulldownwidget_t
-- _ Statisticschart_widget_t
-- Switchiconwidget_t
-- Textwidget_t
-- Wdgtimerformat_t

0. On the "advanced" tab, select the Flash type used by the project. The 2.04 _ M100 uses NAND.
1. On the download tab, select the \ build \ 8533n_m100 \ out directory generated by compilation.
2. Select e2p and cuz files.
3. Select the CPU type
4. Remove the cell phone to the battery, connect the USB cable, and select the corresponding USB port and speed
5. Click "start" to start the download. the USB download is fast and can be completed within 1 minute.

Advanced Skills:
After compiling with the make release_speed command, you can use make dz_normal to package the above problems to be downloaded into a DZ file.
Then, select DZ file on the download tab, select the USB port, and click "start" to start the download!

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.