[go: up one dir, main page]

CN102831003A - Auxiliary tool set system under MediaTek (MTK) compile environment - Google Patents

Auxiliary tool set system under MediaTek (MTK) compile environment Download PDF

Info

Publication number
CN102831003A
CN102831003A CN2011101580937A CN201110158093A CN102831003A CN 102831003 A CN102831003 A CN 102831003A CN 2011101580937 A CN2011101580937 A CN 2011101580937A CN 201110158093 A CN201110158093 A CN 201110158093A CN 102831003 A CN102831003 A CN 102831003A
Authority
CN
China
Prior art keywords
compiling
engineering
mtk
file
translation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011101580937A
Other languages
Chinese (zh)
Inventor
刘震
蒋建平
倪爱银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI THREE FLAG COMMUNICATION TECHNOLOGY CO LTD
Original Assignee
SHANGHAI THREE FLAG COMMUNICATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI THREE FLAG COMMUNICATION TECHNOLOGY CO LTD filed Critical SHANGHAI THREE FLAG COMMUNICATION TECHNOLOGY CO LTD
Priority to CN2011101580937A priority Critical patent/CN102831003A/en
Publication of CN102831003A publication Critical patent/CN102831003A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention develops an auxiliary tool set system under a MediaTek (MTK) compile environment. By adopting the system, the working efficiency and operation simplicity of the compiling of a single machine for single person and a server shared by a plurality of people. Through the research of the current MTK compiling generating system and the utilization of a high level programming language, an tool set system with an auxiliary property is compiled by using the high level programming language, and therefore the process of judging whether the project of the MTK is compiled in the current operation system is carried out effectively, and the problem of low efficiency caused by repeat and shared resource appeared at the same time is resolved. When the compiling or chaining errors appear, the error message can be found by inputting an order or automatically popping out the error message instead of all means. The invention is more modularized in structure, thus the deleting or adding of functions can be conveniently carried out according to the demand continuously.

Description

MTK translation and compiling environment aid collecting system
Technical field
The present invention relates to the aid collecting system under the relevant translation and compiling environment of MTK, relate in particular to MTK translation and compiling environment aid collecting system, can improve the work efficiency and the operation ease of individual unit and the compiling of many people common server through this system.
Background technology
Tremendous development along with the electronic chip technology; Mobile phone industry also is with rapid changepl. never-ending changes and improvements; MTK be exactly under this environment with its less cost, method for designing is a dark horse with practical technical scheme fast, has captured sizable market share, especially the low and middle-end mobile phone; Therefore, receive the favor of a lot of scheme company.Need the company of software systems research and development the same as other any family; All be to build translation and compiling environment; MTK uses perl+arm+incredibuild to compile, and the use of a lot of companies is the method for carrying out simultaneously through a plurality of users of remote server.Because the use of incredibuild is carried out according to the machine mutual exclusion; Promptly a machine can only be carried out an incredibuild program at the same time, and in case a plurality of projects of main frame compile times simultaneously, the situation of competitive resource can occur; The efficient of compiling can be very slow; Therefore, no matter be that unit uses or server uses, all can there be this efficiency.In addition; Compiling occur wrong in, spend the long time to go to seek the particular location that reports an error, can clean out the information before the incredibuild after especially having the project of waiting in line to compile to catch up with; The situation of log information storage under the corresponding document folder can appear in the version that has; Also be difficult to location mistake fast, even and when can confirm wrong file, all wanting this file of manual unlocking also is pretty troublesome thing at every turn.
Summary of the invention
In order to solve the not high problem of the existing many efficient of MTK platform; Goal of the invention of the present invention is through the research to present MTK compiling generation structure; Utilize high-level programming language to write out to have the tool set system of complementary matter; Whether this system can carry out existing the project of MTK to compile in the current operation system effectively, and avoiding duplicating simultaneously, common source causes the beneath problem of efficient.Can be when compiling occurring or linking mistake through input command or ejection error message automatically; And do not need always to try every means go to search error message; The present invention makes every effort to accomplish structure modularization more, can constantly delete or add function easily according to demand.
The technical solution adopted for the present invention to solve the technical problems is.
MTK translation and compiling environment aid collecting system uses advanced standard c language, accomplishes various operations through under cmd, keying in corresponding order, and the function that is possessed is following:
Whether 1, exist the program that is compiling to judge to current system earlier during program run, if judge the engineering that existence is compiling, will wait for the operation of carrying out this engineering after this project compiling is accomplished again so, concrete decision method is following:
A, at first check value under the make2.pl of current engineering,, can not do the inspection direct compilation of back so, 0 need carry out following work so if be if this value is 1;
The mutex of an overall type can be set when B, software systems work; When other engineering starts its aid system, can at first detect should overall situation mutex; If exist wait is lived,, the software systems end of run can move after should overall situation mutex dischargeing;
If C does not detect above-mentioned overall mutex, two kinds of possibilities are arranged so, one be do not have other engineering in compiling, another is that other engineering is not used this software systems, the method for using system being enumerated for the purpose of the insurance is discerned.Search perl.exe through enumerating process, make.exe finds the back to find the engineering position at make.exe place through the information of enquiry module;
D, the value through De $disable_ib under the engineering location lookup make2.pl that finds if be 1, explain that so current engineering need not use distributed compilation, therefore can continue to carry out the compiling of this project.
What 2, these software systems can be through input command intelligence finds compiling or link wrong and open automatically.Because a lot of files of engineering of MTK and file generate through make and perl file automatically, through analyzing, the file of build and the generating mode of file all are in the correlated variables that is placed in the make file; Therefore to find the log file according to the definition of make file the inside; Then the file of each suffix .log by name is analyzed,, therefore will be carried out recurrence traversal analysis and judgement because a lot of software base can generate the multilayer document directory structure; Searching wrong foundation mainly looks for " Error: " this key word; As long as find this that wrong generation is described, therefore just can so just accomplish identification to current File Open for error file; A lot of troubles have been saved; In addition, can be arranged on through program and find wrong the ejection automatically after compiling is accomplished, work efficiency will further improve like this.
3, this software systems being provided with is directed to and uses the remote desktop server to carry out the domestic and foreign work environment to isolate and make the burning of bin shelves need pass through the solution of the problem that the terminal transmission could use; Read the name such as the VHH_Q1801_D01 of current engineering equally; Carry out record for the time then; Find the bin shelves (reading the modification time of bin shelves) of up-to-date generation then through time ratio, then with engineering name and time combination, like 2011-5-16 17:51 branch; The file name that is combined into so is VHH_Q1801_D01_201105161751; Whether this document folder can be created under the temp file, then with bin shelves (consider NOR Flash and Nand Flash, and usb situation about downloading); Then this document folder is sent on the operable server of appointment, so just accomplished self-propagating work.Directly finding this document to press from both sides at this machine then just can normal downloading.Saved the connecting time for the burning of bin shelves like this, efficient further improves.
4, these software systems are provided with for using SVN to carry out the migration maintenance function of code administration, if server switches, a lot of original SVN of project can't normally use; This problem will be if will be very obvious in the project that many people participate in; Everybody can only draw a code to integrate again again, wastes time and energy, and all is idle work; Ip and the port of this software through configuring server; Carry out attribute for the entries file among the svn and handle, replace legacy server ip and port then and be new server and then recovery file attribute; Completion code that in the short period of time can intelligence be synchronized to new SVN server, so just can continue to submit code to and need not worry to have done one action again.
5, this software system design is that main function performance is encapsulated in the dll file, and module interface is provided, and call when making things convenient for other instrument to need, and new like this to add functional module also simpler, and follow-up function is added to build in order based on this and got final product.
These software systems are with the stored in form of registration table for CONFIG.SYSs such as new legacy server ip and ports, can read and rewrite through importing corresponding order.
This software systems utility command row form is operated, and concrete form is following:
Ibutool.exe [parameter 1] [value 1] [value 2]
The parameter of wherein supporting at present and the corresponding relation of value are following:
[help] or-show help information
Whether [cs]-inspection can directly move, and overall mutex is set
[log] or [l]-search mistake
[trans] or [t] [num] – sends to the num server with the bin shelves
[setns] [ip] [port]-new server is set to ip:port
[setos] [ip] [port]-legacy server is set to ip:port
[lt] [num]-search mistake and automatically the bin shelves are sent to the num server
When later stage coding during, can consider directly to add the perl script and realize once more and develop above-mentioned with the thinking maturation.

Claims (6)

1.MTK translation and compiling environment aid collecting system; Utilize higher level lanquage standard c language; Accomplish various operations through under cmd, keying in corresponding order, it is characterized in that: whether exist the program that is compiling to judge to current system earlier during described program run, if judge the engineering that existence is compiling; Will wait for the operation of carrying out this engineering after this project compiling is accomplished again so, concrete decision method is following:
A, at first check value under the make2.pl of current engineering,, can not do the inspection direct compilation of back so, 0 need carry out following work so if be if this value is 1;
The mutex of an overall type can be set when B, software systems work; When other engineering starts its aid system, can at first detect should overall situation mutex; If exist wait is lived,, the software systems end of run can move after should overall situation mutex dischargeing;
If C does not detect above-mentioned overall mutex; Two kinds of possibilities are arranged so, and one is not have other engineering in compiling, and another is that other engineering is not used this software systems; The method of for the purpose of the insurance using system being enumerated is discerned; Search perl.exe through enumerating process, make.exe finds the back to find the engineering position at make.exe place through the information of enquiry module;
D, the value through De $disable_ib under the engineering location lookup make2.pl that finds if be 1, explain that so current engineering need not use distributed compilation, therefore can continue to carry out the compiling of this project.
2. MTK translation and compiling environment aid collecting system according to claim 1; It is characterized in that: what described these software systems can be through input command intelligence finds compiling or link wrong and open automatically; Because a lot of files of engineering of MTK and file generate through make and perl file automatically; Through analyzing, the file of build and the generating mode of file all are in the correlated variables that is placed in the make file, therefore will find the log file according to the definition of make file the inside; File analysis to each suffix .log by name can accurate recognition go out whether to exist the engineering that possibly cause compiling conflict then; If exist, after reasonably these engineering compiling of wait were accomplished, the side can proceed.
3. MTK translation and compiling environment aid collecting system according to claim 1; It is characterized in that: described through programming can be accurately the position of finding the engineering compiling result of intelligence, and can open compiling automatically through input command and make mistakes or link the log file of makeing mistakes.
4. MTK translation and compiling environment aid collecting system according to claim 1 is characterized in that: the described isolation mech isolation tests that are directed against a lot of through transfer server, a kind of method that is bundled to automatically under the given server file is provided, and do not need manual transfer.
5. MTK translation and compiling environment aid collecting system according to claim 1; It is characterized in that: described handoff migration to the SVN server; Just can the engineering on the old server be switched on the new server automatically through input command, can continue like this to use.
6. MTK translation and compiling environment aid collecting system according to claim 1 is characterized in that: described main modular is encapsulated among the DLL, is convenient to transplant and the calling of other system.
CN2011101580937A 2011-06-14 2011-06-14 Auxiliary tool set system under MediaTek (MTK) compile environment Pending CN102831003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101580937A CN102831003A (en) 2011-06-14 2011-06-14 Auxiliary tool set system under MediaTek (MTK) compile environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101580937A CN102831003A (en) 2011-06-14 2011-06-14 Auxiliary tool set system under MediaTek (MTK) compile environment

Publications (1)

Publication Number Publication Date
CN102831003A true CN102831003A (en) 2012-12-19

Family

ID=47334152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101580937A Pending CN102831003A (en) 2011-06-14 2011-06-14 Auxiliary tool set system under MediaTek (MTK) compile environment

Country Status (1)

Country Link
CN (1) CN102831003A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294754A (en) * 2016-08-11 2017-01-04 武汉科优达科技有限公司 A kind of system and method realizing the quick typing of course content
CN112631599A (en) * 2020-12-09 2021-04-09 潍柴动力股份有限公司 Compiling method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162427A (en) * 2006-10-13 2008-04-16 联发科技股份有限公司 System and method for generating embedded target image
CN101776990A (en) * 2009-01-13 2010-07-14 联发科技股份有限公司 Firmware extension method and firmware generator
CN101963915A (en) * 2010-09-25 2011-02-02 中兴通讯股份有限公司 Building method of compilation and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162427A (en) * 2006-10-13 2008-04-16 联发科技股份有限公司 System and method for generating embedded target image
CN101776990A (en) * 2009-01-13 2010-07-14 联发科技股份有限公司 Firmware extension method and firmware generator
CN101963915A (en) * 2010-09-25 2011-02-02 中兴通讯股份有限公司 Building method of compilation and system thereof

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
QIKAIBINGLAN: "IncrediBuild联合编译的使用", 《HTTP://BLOG.CSDN.NET/QIKAIBINGLAN/ARTICLE/DETAILS/5443851》 *
SLJ082370222: "MTK编译环境", 《HTTP://WWW.360DOC.COM/CONTENT/10/0719/17/2187025_40118928.SHTML》 *
WEILIJI: "mtk 分布式编译", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_6B9F3C1F0100PB7W.HTML》 *
ZXG623: "MTK 编译详解以及IncrediBuild联合编译的使用默认分类", 《HTTP://BLOG.CHINAUNIX.NET/UID-11848011-ID-96449.HTML》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294754A (en) * 2016-08-11 2017-01-04 武汉科优达科技有限公司 A kind of system and method realizing the quick typing of course content
CN112631599A (en) * 2020-12-09 2021-04-09 潍柴动力股份有限公司 Compiling method, device and storage medium
CN112631599B (en) * 2020-12-09 2024-03-19 潍柴动力股份有限公司 Compilation method, device and storage medium

Similar Documents

Publication Publication Date Title
Fan et al. Migrating monolithic mobile application to microservice architecture: An experiment report
CN103019928B (en) A kind of automated testing method and system
JP4541418B2 (en) Programmable controller peripheral device, replacement method and program
CN107315689B (en) Automatic regression testing method based on Git code file retrieval granularity
CN113706110B (en) FPGA test tool integrated test management platform
CN104063325A (en) Automatic generation device and method for test cases of embedded software
CN102135938A (en) Software product testing method and system
CN104123381A (en) Automatic matching method of hardware board card
CN102902778A (en) Query sentence optimization device and query sentence optimization method
CN101944128A (en) Data export and import method and device
CN101236503A (en) Hot-deployment entity component
CN104679500A (en) Automatic generation realizing method and device for entity classes
CN102663067B (en) File opening method based on Linux operating system terminal
CN102609357B (en) Method for dynamically building test cases for automatic testing meeting AUTOSAR (automotive open system architecture) standards
CN102722368B (en) Plug-in software designing method based on document tree and message pump
CN106095678A (en) Automatization's result inspection method of data bank service operation under windows platform
CN102902768B (en) File content searching and displaying method and system
CN104980552A (en) Method and system for realizing automatic test of Android mobile terminal
CN102831003A (en) Auxiliary tool set system under MediaTek (MTK) compile environment
CN101425064A (en) Test log processing method and system
CN114969215A (en) Method for automatically loading data in batches on data warehouse source layer and related equipment
CN104991810A (en) Method and processing system for automatically adding APK into Android system
CN105843899A (en) Automatic big-data analysis method and system capable of simplifying programming
CN103927212A (en) Method and device for automatically analyzing source file information
CN110750310B (en) Binary and source code switching method based on IOS system componentization development

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121219

WD01 Invention patent application deemed withdrawn after publication