CN109918080A - A kind of method of configuration tool chain - Google Patents

A kind of method of configuration tool chain Download PDF

Info

Publication number
CN109918080A
CN109918080A CN201910136165.4A CN201910136165A CN109918080A CN 109918080 A CN109918080 A CN 109918080A CN 201910136165 A CN201910136165 A CN 201910136165A CN 109918080 A CN109918080 A CN 109918080A
Authority
CN
China
Prior art keywords
cpu
description file
configuration
chain
catalogue
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
CN201910136165.4A
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.)
Shenzhen Chuanglian Time Technology Co Ltd
Original Assignee
Shenzhen Chuanglian Time 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 Shenzhen Chuanglian Time Technology Co Ltd filed Critical Shenzhen Chuanglian Time Technology Co Ltd
Priority to CN201910136165.4A priority Critical patent/CN109918080A/en
Publication of CN109918080A publication Critical patent/CN109918080A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of method of configuration tool chain, specifically includes the following steps: step a1, in source code catalogue, place description file, configured in the description file comprising Compile toolchain corresponding to different CPU architectures and tools chain;Step a2, in the configuration of engineering plate, CPU architecture used in the plate is selected;Step a3, in Integrated Development Environment, description file of the IDE in the CPU architecture scanning step a1 according to step a2 obtains Compile toolchain and the tools chain configuration of corresponding CPU architecture.The beneficial effects of the present invention are: corresponding with the Compile toolchain and tools chain configuration described in file by making engineering configure the CPU architecture in plate, engineering tools chain can be automatically configured, save the time of configuration tool chain, make engineer that need not grasp the professional knowledge according to CPU configuration tool chain, reduce simultaneously and manually select the possible mistake of tools chain, improves the automatization level of software development.

Description

A kind of method of configuration tool chain
Technical field
The present invention relates to embedded systemic software development technical field, in particular to a kind of method of configuration tool chain.
Background technique
Traditional embedded using other IDE (IDE, Integrated Development Environment) progress When system development, the compiling of engineering and link are completed by tools chain, how correct configuration tool chain, be embedded system One of key job of exploitation.But traditional embedded system development needs to pass through user hand first before creating engineering The tools chain that dynamic selection needs, then creates engineering according to the type of tools chain, finally the parameter of manual configuration tools chain again, such as Set the arch framework of CPU, family, floating-point configuration, big small end etc..
This requires all embedded software developing persons to have quite professional knowledge, even if the developer and not responsible and work The selection of tool chain and configure relevant low level development, such as the technical staff for being mainly responsible for hardware development or pure software is developed, To which increase development difficulty, the cost of human resources of enterprise is which thereby enhanced, and manual configuration tools chain is also easy to malfunction, It increases product and a possibility that defect occurs.
Summary of the invention
To overcome the defect for needing manual configuration tools chain in above-mentioned technology, the present invention proposes a kind of side of configuration tool chain Method, function are achieved by the following technical solution.
A kind of method of configuration tool chain, specifically includes the following steps:
Step a1, in source code catalogue, description file is placed, includes corresponding to different CPU architectures in the description file Compile toolchain and tools chain configuration;
Step a2, in the configuration of engineering plate, CPU architecture used in the plate is selected;
Step a3, in Integrated Development Environment, IDE retouching in the CPU architecture scanning step a1 according to step a2 File is stated, Compile toolchain and the tools chain configuration of corresponding CPU architecture are obtained.
It preferably, include series, family, framework and other compiling options of CPU architecture in the description file.
Preferably, the description file is described by gradation directory, and the description file representative one of innermost layer catalogue is solely Vertical classification.
Preferably, in the step a3, the detailed process of IDE scanning description file is comprised the steps of:
Step b1, the description file of the innermost layer catalogue in scanning file is obtained by recursive mode;
Step b2, the description file of each innermost layer catalogue searched is created into an object, parses innermost layer mesh The result of parsing, is assigned to the relevant parameter of object by the description file of record;
Step b3, scanning and the description file corresponding to the description file of innermost layer catalogue in higher level's catalogue is parsed, and The parsing result of description file in higher level's catalogue is assigned to the relevant parameter of the object of step b2;
Step b4, all objects are added in list, the used CPU architecture of the plate and list object is compared, obtained Take object corresponding to CPU architecture.
It preferably, further include description described in step a21, IDE determination step a1 between the step a2 and step a3 File whether include CPU architecture in step a2 Compile toolchain and tools chain configuration, if so, thening follow the steps a3;If it is not, CPU architecture is then reselected manually.
Preferably, the CPU architecture in the step a2 is CPU architecture corresponding to CPU core.
Preferably, the specific steps of the step a2 are as follows:
Step c1, select plate, and determine the plate whether only one CPU, if so, continue select kernel;If it is not, A CPU is then selected by user manually;
Step c2, determine selected CPU whether only one kernel, if so, continuing step a3;If it is not, then by user A kernel is selected manually, then proceedes to step a3.
The beneficial effects of the present invention are:
By making, engineering configures the Compile toolchain in the CPU architecture in plate and description file and tools chain configuration is opposite It answers, engineering tools chain can have been automatically configured, make engineer that need not grasp the professional knowledge according to CPU configuration tool chain, save The time of configuration tool chain, while reducing and manually selecting the possible mistake of tools chain, improve the automatic of software development Change horizontal.
Detailed description of the invention
Fig. 1 is configuration tool chain flow diagram of the present invention.
Fig. 2 is present invention description document layered catalogue schematic diagram.
Fig. 3 is graphical interfaces schematic diagram when plate selects in the embodiment of the present invention.
Fig. 4 is graphical interfaces schematic diagram when creating plate in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figures 1 to 4, in a particular embodiment, as shown in Figure 1, tools chain configuration flow comprises the steps of:
1., according to the plate that user selects, system determines whether plate has unique corresponding CPU in engineering configuration, If so, executing downwards;If it is not, then selecting one in multiple CPU by user, execute still further below;
2. in engineering configuration process, it has been determined that when the corresponding CPU of plate, system determines whether CPU has unique correspondence Kernel, if so, downwards execute;If it is not, then manually selecting a kernel in multiple kernels by user, execute still further below;
3. system obtains the corresponding CPU architecture of kernel, scans and extract work corresponding with CPU architecture is changed in description file Have chain, automatically configures tools chain.Wherein: description file contains the information such as series, family, framework, the floating-point of CPU architecture, together When contain corresponding tools chain, description file can be provided by CPU manufacturer.
A kind of method of configuration tool chain, specifically includes the following steps:
Step a1, in source code catalogue, description file is placed, includes corresponding to different CPU architectures in the description file Compile toolchain and tools chain configuration;
Step a2, in the configuration of engineering plate, CPU architecture used in the plate is selected;
Step a3, in Integrated Development Environment, IDE retouching in the CPU architecture scanning step a1 according to step a2 File is stated, Compile toolchain and the tools chain configuration of corresponding CPU architecture are obtained.It should be noted that being had in description file There is Compile toolchain corresponding to CPU architecture, IDE can just automatically configure tools chain.For the integrality for further improving the software, Between step a2 and step a3, further include whether description file described in step a21, IDE determination step a1 includes step The Compile toolchain and tools chain of CPU architecture in a2 configure, if so, thening follow the steps a3;If it is not, then needing to reselect manually CPU architecture.
To keep CPU architecture corresponding with description file, describe to contain in file the series of CPU architecture, family, framework and Other configurations option, and tools chain corresponding with the CPU architecture and tools chain configuration.To guarantee described in description file The independence and maintainability of CPU architecture as shown in Fig. 2, description file is described using gradation directory, and use innermost layer Catalogue describes the form of one independent sorting of file representative, when needing to modify a CPU architecture afterwards, need to only modify the CPU The corresponding innermost layer catalogue of framework describes file.
In the implementation process of step a3, the detailed process of IDE scanning description file is comprised the steps of:
Step b1, the description file of the innermost layer catalogue in scanning file is obtained by recursive mode;
Step b2, the description file of each innermost layer catalogue searched is created into an object, parses innermost layer mesh The result of parsing, is assigned to the relevant parameter of object by the description file of record;
Step b3, scanning and the description file corresponding to the description file of innermost layer catalogue in higher level's catalogue is parsed, and The parsing result of description file in higher level's catalogue is assigned to the relevant parameter of the object of step b2;
Step b4, all objects are added in list, the used CPU architecture of the plate and list object is compared, obtained Take object corresponding to CPU architecture.Other step generations that IDE scanning step can also be used those skilled in the art to be readily apparent that It replaces.
As shown in Figure 3 to Figure 4, user is during creating engineering, need to complete to select engineering type, selection plate, Fill in the operations such as engineering name, selection engineered paths, engineering cutting.During selecting plate, other than selecting plate, also Onboard cpu and kernel need to be selected, system passes through the Cpu kernel chosen and obtains corresponding CPU architecture, to obtain in list object The tools chain of configuration, by the tools chain that this confirms, for user when creating engineering, system can automatically configure newly built construction Tools chain manually selects tools chain the step to save, reduces the mistake manually selected, improves the efficiency of software development.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (7)

1. a kind of method of configuration tool chain, which is characterized in that specifically includes the following steps:
Step a1, in source code catalogue, description file is placed, includes volume corresponding to different CPU architectures in the description file Translate tools chain and tools chain configuration;
Step a2, in the configuration of engineering plate, CPU architecture used in the plate is selected;
Step a3, in Integrated Development Environment, description text of the IDE in the CPU architecture scanning step a1 according to step a2 Part obtains Compile toolchain and the tools chain configuration of corresponding CPU architecture.
2. a kind of method of configuration tool chain according to claim 1, which is characterized in that include in the description file Series, family, framework and other compiling options of CPU architecture.
3. a kind of method of configuration tool chain according to claim 2, which is characterized in that the description file passes through layering Catalogue describes, one independent classification of description file representative of innermost layer catalogue.In innermost layer catalogue and Qi Ge higher level's catalogue Configuration file one complete CPU architecture description is described jointly.
4. a kind of method of configuration tool chain according to claim 3, which is characterized in that in the step a3, IDE scanning The detailed process of description file comprises the steps of:
Step b1, the description file of the innermost layer catalogue in scanning file is obtained by recursive mode;
Step b2, the description file of each innermost layer catalogue searched is created into an object, parsing innermost layer catalogue File is described, the result of parsing is assigned to the relevant parameter of object;
Step b3, scanning and the description file corresponding to the description file of innermost layer catalogue in higher level's source code catalogue is parsed, and The parsing result that file is described in every grade of catalogue is assigned to the relevant parameter of the object of step b2;
Step b4, all objects are added in list, the used CPU architecture of the plate and list object is compared, obtain CPU Object corresponding to framework.
5. a kind of method of configuration tool chain described in any one according to claim 1-4, which is characterized in that the step Further include between a2 and step a3
Step a21, description file described in IDE determination step a1 whether include CPU architecture in step a2 compilation tool Chain and tools chain configuration, if so, thening follow the steps a3;If it is not, then reselecting CPU architecture manually.
6. a kind of method of configuration tool chain according to claim 5, which is characterized in that the CPU frame in the step a2 Structure is CPU architecture corresponding to CPU core.
7. a kind of method of configuration tool chain according to claim 6, which is characterized in that the specific steps of the step a2 Are as follows:
Step c1, select plate, and determine the plate whether only one CPU, if so, continue select kernel;If it is not, then by User selectes a CPU manually;
Step c2, determine selected CPU whether only one kernel, if so, continuing step a3;If it is not, then manual by user A kernel is selected, step a3 is then proceeded to.
CN201910136165.4A 2019-02-25 2019-02-25 A kind of method of configuration tool chain Pending CN109918080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910136165.4A CN109918080A (en) 2019-02-25 2019-02-25 A kind of method of configuration tool chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910136165.4A CN109918080A (en) 2019-02-25 2019-02-25 A kind of method of configuration tool chain

Publications (1)

Publication Number Publication Date
CN109918080A true CN109918080A (en) 2019-06-21

Family

ID=66962182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910136165.4A Pending CN109918080A (en) 2019-02-25 2019-02-25 A kind of method of configuration tool chain

Country Status (1)

Country Link
CN (1) CN109918080A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060190933A1 (en) * 2005-02-22 2006-08-24 Ruey-Yuan Tzeng Method and apparatus for quickly developing an embedded operating system through utilizing an automated building framework
US20100281461A1 (en) * 2009-05-04 2010-11-04 Microsoft Corporation Automatic configuration of project system from project capabilities
CN102830981A (en) * 2012-09-12 2012-12-19 上海斐讯数据通信技术有限公司 Implementation method used for embedded system software development tool
CN102902532A (en) * 2012-09-13 2013-01-30 福建升腾资讯有限公司 Tool chain conversion and extension method in integrated development environment
CN103530135A (en) * 2013-10-31 2014-01-22 深圳中兴网信科技有限公司 Proxy service generating device and proxy service generating method
CN103645888A (en) * 2013-10-25 2014-03-19 普华基础软件股份有限公司 System and method for automatically building operation system
CN106598607A (en) * 2016-12-19 2017-04-26 上海鸣啸信息科技股份有限公司 Software development method for embedded passenger information system
CN106843991A (en) * 2016-12-13 2017-06-13 北京元心科技有限公司 Program compiling method and system
CN107741851A (en) * 2017-10-12 2018-02-27 北京元心科技有限公司 Compilation Method, device and the terminal device of compiling system
CN108469952A (en) * 2018-03-16 2018-08-31 祖龙(天津)科技有限公司 A kind of code generating method and kit of management game configuration
CN109117121A (en) * 2018-05-08 2019-01-01 宁波央腾汽车电子有限公司 A kind of AUTOSAR software architecture implementation method
CN109343854A (en) * 2018-09-18 2019-02-15 武汉精立电子技术有限公司 Intelligent automation Compilation Method and system based on zynq system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060190933A1 (en) * 2005-02-22 2006-08-24 Ruey-Yuan Tzeng Method and apparatus for quickly developing an embedded operating system through utilizing an automated building framework
US20100281461A1 (en) * 2009-05-04 2010-11-04 Microsoft Corporation Automatic configuration of project system from project capabilities
CN102830981A (en) * 2012-09-12 2012-12-19 上海斐讯数据通信技术有限公司 Implementation method used for embedded system software development tool
CN102902532A (en) * 2012-09-13 2013-01-30 福建升腾资讯有限公司 Tool chain conversion and extension method in integrated development environment
CN103645888A (en) * 2013-10-25 2014-03-19 普华基础软件股份有限公司 System and method for automatically building operation system
CN103530135A (en) * 2013-10-31 2014-01-22 深圳中兴网信科技有限公司 Proxy service generating device and proxy service generating method
CN106843991A (en) * 2016-12-13 2017-06-13 北京元心科技有限公司 Program compiling method and system
CN106598607A (en) * 2016-12-19 2017-04-26 上海鸣啸信息科技股份有限公司 Software development method for embedded passenger information system
CN107741851A (en) * 2017-10-12 2018-02-27 北京元心科技有限公司 Compilation Method, device and the terminal device of compiling system
CN108469952A (en) * 2018-03-16 2018-08-31 祖龙(天津)科技有限公司 A kind of code generating method and kit of management game configuration
CN109117121A (en) * 2018-05-08 2019-01-01 宁波央腾汽车电子有限公司 A kind of AUTOSAR software architecture implementation method
CN109343854A (en) * 2018-09-18 2019-02-15 武汉精立电子技术有限公司 Intelligent automation Compilation Method and system based on zynq system

Similar Documents

Publication Publication Date Title
US8464208B2 (en) Capturing and utilizing specific module dependency information
CN102609252B (en) Based on the logic menu resource intelligent configuration method measuring instrument
US7665061B2 (en) Code builders
CN1249577C (en) Method and apparatus for interoperation between legacy software and screen reader programs
JP3950938B2 (en) A system that combines document parts and editors in a computer human interface
US9075596B2 (en) Deployment
CN1166115C (en) A management interworking unit and a method for producing such a unit
CN106354646B (en) A method of analysis dump file
CN106502663A (en) A kind of front end project skeleton generating method
CN101256492A (en) Software development method and system for executing model drive structure
WO2022188780A1 (en) Visual software development system, method and apparatus, and computer storage medium
CN113886362A (en) Data storage system and storage method based on workflow engine and low-code platform
CN106325860B (en) A kind of automated maintenance method of space flight embedded software interface data
CN108228190A (en) Continuous integrating and delivery method, system, equipment and computer readable storage medium
CN108228170A (en) A kind of embedded software componentization customizes assemble method
CN107728996A (en) A kind of GIT branch managements method and device
CN1811630A (en) Method and system for converting ladder logic to boolean logic in a process control system
CN106250134A (en) The code automatic generation method of unicity language
CN1744092A (en) Method and system for automatic schedule logic simulation and code coverage rate analysis
CN109918080A (en) A kind of method of configuration tool chain
JP2001325098A (en) Method for preparing application program method for operating database, method for managing item object, method for controlling module operation and computer- readable recording medium recorded with program for realizing operation, management and control methods
CN107656755A (en) The edit methods and device of regulation engine
KR102293274B1 (en) Method and apparatus for constructing test environment
JP2001296996A (en) Automatic generating device of component and expressing method
JPH07160191A (en) Control program design assisting device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination