CN109117140A - The method and system of more kernel applications are supported in a kind of distributed building - Google Patents

The method and system of more kernel applications are supported in a kind of distributed building Download PDF

Info

Publication number
CN109117140A
CN109117140A CN201810764153.1A CN201810764153A CN109117140A CN 109117140 A CN109117140 A CN 109117140A CN 201810764153 A CN201810764153 A CN 201810764153A CN 109117140 A CN109117140 A CN 109117140A
Authority
CN
China
Prior art keywords
kernel
building
source code
computer
compiling
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
CN201810764153.1A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810764153.1A priority Critical patent/CN109117140A/en
Publication of CN109117140A publication Critical patent/CN109117140A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses the method and system that more kernel applications are supported in a kind of distributed building, and the method includes obtaining the building information of application program;The source code of application program is obtained, and carries out application layer compiling and kernel compiling respectively according to the to acquisite approachs of source code;Application layer is compiled into product and kernel compiling product merges, generates application issued packet.The present invention is before building, analysis needs the kernel version constructed, after getting source code, it is cleverly different using source code to acquisite approachs, building process is divided into application layer and kernel state, and according to the kernel version got, application layer and kernel state code are compiled with different building computers respectively, and merge obtained compiling product, form program publication packet.Obtained program publication packet can support several operation systems kernel, and compatibility is high.

Description

The method and system of more kernel applications are supported in a kind of distributed building
Technical field
The present invention relates to computer software technical field, more kernel application journeys are supported in specifically a kind of distributed building The method and system of sequence.
Background technique
In software development process, application builds are to obtain the committed step of program publication packet.Good program structure Logic is built, can effectively improve the ease for use of software publication packet.
For it is some with operating system bottom more close to software (such as macafee software), certain module therein can The operating system nucleus for different editions can be needed, carries out the compiling that logic is identical, result is different, i.e., in different environment Compiling, finally obtains different compiling products.At the same time, other modules in software, it may not be necessary to so complicated building Logic, only once building can run on the operating system of multiple and different versions.
Complicated to the compilation process of code in the prior art, one operating system needed support of every increase all can be substantially Degree modification compilation process, complicated for operation, the compatibility of installation kit is low.
Summary of the invention
A kind of method and system of the more kernel applications of distributed building support are provided in the embodiment of the present invention, with solution It is certainly directed to different operating system nucleus in the prior art, the compilation process of application program is complicated, and installation kit compatibility is low asks Topic.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
First aspect present invention provides a kind of method that more kernel applications are supported in distributed building, including following step It is rapid:
Obtain the building information of application program;
The source code of application program is obtained, and carries out application layer compiling and kernel volume respectively according to the to acquisite approachs of source code It translates;
Application layer is compiled into product and kernel compiling product merges, generates application issued packet.
With reference to first aspect, in a first possible implementation of that first aspect, the building information of the application program Operating system nucleus version number including participating in building.
With reference to first aspect, in a second possible implementation of that first aspect, by application layer building computer into The compiling of row application layer constructs computer by kernel and carries out kernel compiling.
With reference to first aspect, in a second possible implementation of that first aspect, the kernel building computer includes Several, each kernel building computer is for compiling kernel state source code identical with itself operating system nucleus version.
With reference to first aspect, in first aspect in the third possible implementation, the application layer compiling product includes Application layer program executable file, it includes kernel program executable file that kernel, which compiles product,.
Second aspect of the present invention provides a kind of system that more kernel applications are supported in distributed building, including
Computer is controlled, for obtaining the building information and source code of application program, and according to the to acquisite approachs of source code, Application layer source code and kernel state source code are sent respectively to using layer building computer and kernel building computer;
Kernel constructs computer, for being compiled to kernel state source code, obtains kernel compiling product;
Using layer building computer, for being compiled to application layer source code, the layer that is applied compiles product, in acquisition Core compiles product, and kernel is compiled product and application layer compiling product merging, generates program publication packet.
In conjunction with second aspect, in second aspect in the first possible implementation, the kernel building computer includes Several, each kernel building computer is for compiling kernel state code identical with itself operating system nucleus version.
In conjunction with second aspect, in second aspect in the first possible implementation, the kernel constructs computer and answers It is synchronized and is compiled with layer building computer.
In conjunction with second aspect, in second aspect in the first possible implementation, the application layer building computer is logical It crosses File Transfer Protocol and obtains kernel compiling product.
Third aspect present invention provides a kind of system that more kernel applications are supported in distributed building, including
Computer is controlled, for obtaining the building information and source code of application program, and according to the to acquisite approachs of source code, Application layer source code and kernel state source code are sent respectively to using layer building computer and kernel building computer;
Using layer building computer, for being compiled to application layer source code, the layer that is applied compiles product;
Kernel constructs computer, for being compiled to kernel state source code, obtains kernel compiling product, obtains application layer Product is compiled, and kernel is compiled into product and application layer compiling product merging, generates program publication packet.
The distributed building of second aspect of the present invention and the third aspect supports that the system of more kernel applications can It realizes the method in each implementation of first aspect and first aspect, and obtains identical effect.
The effect provided in summary of the invention is only the effect of embodiment, rather than invents all whole effects, above-mentioned A technical solution in technical solution have the following advantages that or the utility model has the advantages that
1, before building, analysis needs the kernel version constructed, after getting source code, cleverly utilizes source code To acquisite approachs is different, building process is divided into application layer and kernel state, and according to the kernel version got, respectively with different Building computer is compiled application layer and kernel state code, and obtained compiling product is merged, and forms program publication packet. Obtained program publication packet can support several operation systems kernel, and compatibility is high.
2, the compilation process of different building computers is synchronous carries out, and improves the building efficiency of program, and primary building Realization is used for a long time, and without compiling repeatedly, saves the complexity of program construction.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of the method for the invention embodiment;
Fig. 2 is the schematic illustration of the method for the invention specific implementation process;
Fig. 3 is the structural schematic diagram of system of the present invention.
Specific embodiment
In order to clarify the technical characteristics of the invention, below by specific embodiment, and its attached drawing is combined, to this hair It is bright to be described in detail.Following disclosure provides many different embodiments or example is used to realize different knots of the invention Structure.In order to simplify disclosure of the invention, hereinafter the component of specific examples and setting are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relationship between various embodiments and/or setting is discussed.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
As shown in Figure 1, 2, the distributed building of the present invention support more kernel applications method the following steps are included:
S1 obtains the building information of application program;
The building information of application program is to participate in the set of the operating system nucleus version number of building, and building information can lead to Cross control computer read application program configuration file obtain, can also by control computer on dispose Jenkins, and Configuration obtains operating system nucleus edition area in Jenkins.
S2 obtains the source code of application program, and carries out according to the to acquisite approachs of source code application layer compiling and interior respectively Core compiling;
The source code of application program is obtained from source code library, or by local source code update to particular version, the specific version This is usually the latest edition of application program.Computer is controlled when obtaining source code, according to the to acquisite approachs of source code, by source Code is divided into application layer source code and kernel state source code, and is initiated respectively using layer building and kernel building instruction.
Application layer is compiled product and kernel compiling product merges, generates application issued packet by S3.
Using layer building computer and kernel building computer after receiving building instruction, it is compiled simultaneously.Using Layer building computer is used to carry out the compiling of application layer source code, and the layer that is applied compiles product.Kernel constructs computer Several, are indicated with kernel building computer 1, kernel building computer 2 ... kernel building computer n, each kernel respectively Computer is constructed for compiling kernel state source code identical with itself operating system nucleus version, i.e., carries out kernel 1 respectively and compiles It translates, compiling ... the kernel n compiling of kernel 2, obtains respective kernel compiling product, is i.e. kernel 1 compiles product, the compiling production of kernel 2 Object ... kernel n compiles product.
File Transfer Protocol is utilized using layer building computer, as (File Transfer Protocol, file pass FTP Defeated agreement), it obtains kernel and compiles product, and kernel is compiled into product and application layer compiling product merging, generate program publication packet. Control computer receives program publication packet, and export publication building product, publication building product, which contains, to be supported in a variety of The application program installation kit of core.
Application layer compiling product includes application layer program executable file, and kernel compiling product includes that kernel program is executable File.The merging for compiling product and application layer compiling product to kernel can be realized by way of compressing file.
When kernel compiling product and application layer compiling product are obtained and merged, it is not limited to calculate using layer building Any kernel building computer can be selected also to realize in machine.
As shown in figure 3, the system that more kernel applications are supported in the distributed building of the present invention includes control computer 1, answers Computer 3 is constructed with layer building computer 2 and kernel, it includes several that kernel, which constructs computer, is constructed calculate with kernel respectively Machine 31, kernel building computer 32 ... kernel building computer 3n are indicated.
Computer 1 is controlled to the building information and source code for obtaining application program, and according to the acquisition road of source code Application layer source code and kernel state source code are sent respectively to construct computer using layer building computer and kernel by diameter, and Respectively to application layer building computer 2 and the kernel building publication building instruction of computer 3.
Kernel building computer 3 obtains kernel compiling product for being compiled to kernel state source code.Each kernel structure Build computer for compile identical with itself operating system nucleus version kernel state code, obtain respective compiling product, it is interior Core 1 compiles product, kernel 2 compiles product ... kernel n and compiles product.
Using layer building computer 2 for being compiled to application layer source code, the layer that is applied compiles product.
The compiling product that kernel constructs computer is also obtained by File Transfer Protocol using layer building computer 2, and will Application layer compiles product and merges with kernel compiling product, generates program publication packet.
When kernel compiling product and application layer compiling product are obtained and merged, it is not limited to calculate using layer building Any kernel building computer can be selected also to realize in machine.
The above is the preferred embodiment of the present invention, for those skilled in the art, Without departing from the principles of the invention, several improvements and modifications can also be made, these improvements and modifications are also regarded as this hair Bright protection scope.

Claims (10)

1. a kind of method that more kernel applications are supported in distributed building, characterized in that the following steps are included:
Obtain the building information of application program;
The source code of application program is obtained, and carries out application layer compiling and kernel compiling respectively according to the to acquisite approachs of source code;
Application layer is compiled into product and kernel compiling product merges, generates application issued packet.
2. the method that more kernel applications are supported in a kind of distributed building according to claim 1, characterized in that described The building information of application program includes participating in the operating system nucleus version number of building.
3. the method that more kernel applications are supported in a kind of distributed building according to claim 1, characterized in that pass through Application layer compiling is carried out using layer building computer, computer is constructed by kernel and carries out kernel compiling.
4. the method that more kernel applications are supported in a kind of distributed building according to claim 3, characterized in that described It includes several that kernel, which constructs computer, and each kernel building computer is identical as itself operating system nucleus version for compiling Kernel state source code.
5. the method that more kernel applications are supported in a kind of distributed building according to claim 1, characterized in that described Application layer compiling product includes application layer program executable file, and it includes kernel program executable file that kernel, which compiles product,.
6. a kind of system that more kernel applications are supported in distributed building, characterized in that including
Control computer will be answered for obtaining the building information and source code of application program, and according to the to acquisite approachs of source code It is sent respectively to layer source code and kernel state source code using layer building computer and kernel building computer;
Kernel constructs computer, for being compiled to kernel state source code, obtains kernel compiling product;
Using layer building computer, for being compiled to application layer source code, the layer that is applied compiles product, obtains kernel and compiles Product is translated, and kernel is compiled into product and application layer compiling product merging, generates program publication packet.
7. the system that more kernel applications are supported in a kind of distributed building according to claim 6, characterized in that described It includes several that kernel, which constructs computer, and each kernel building computer is identical as itself operating system nucleus version for compiling Kernel state code.
8. the system that more kernel applications are supported in a kind of distributed building according to claim 6 or 7, characterized in that Kernel building computer and application layer building computer synchronize be compiled.
9. the system that more kernel applications are supported in a kind of distributed building according to claim 8, characterized in that described Kernel is obtained by File Transfer Protocol using layer building computer and compiles product.
10. a kind of system that more kernel applications are supported in distributed building, characterized in that including
Control computer will be answered for obtaining the building information and source code of application program, and according to the to acquisite approachs of source code It is sent respectively to layer source code and kernel state source code using layer building computer and kernel building computer;
Using layer building computer, for being compiled to application layer source code, the layer that is applied compiles product;
Kernel constructs computer, for being compiled to kernel state source code, obtains kernel compiling product, obtains application layer compiling Product, and kernel is compiled into product and application layer compiling product merging, generate program publication packet.
CN201810764153.1A 2018-07-12 2018-07-12 The method and system of more kernel applications are supported in a kind of distributed building Pending CN109117140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810764153.1A CN109117140A (en) 2018-07-12 2018-07-12 The method and system of more kernel applications are supported in a kind of distributed building

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810764153.1A CN109117140A (en) 2018-07-12 2018-07-12 The method and system of more kernel applications are supported in a kind of distributed building

Publications (1)

Publication Number Publication Date
CN109117140A true CN109117140A (en) 2019-01-01

Family

ID=64862707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810764153.1A Pending CN109117140A (en) 2018-07-12 2018-07-12 The method and system of more kernel applications are supported in a kind of distributed building

Country Status (1)

Country Link
CN (1) CN109117140A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851138A (en) * 2019-11-06 2020-02-28 山东超越数控电子股份有限公司 BMC software development method for separating kernel and application
CN114296740A (en) * 2021-12-29 2022-04-08 奇安信科技集团股份有限公司 Compiling method and device for product kernel file

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473059A (en) * 2013-09-11 2013-12-25 江苏中科梦兰电子科技有限公司 General purpose operating system capable of supporting multiple system structures
CN103699389A (en) * 2013-12-30 2014-04-02 北京大学 Linux kernel module relation extracting method based on compiling options
US20140123101A1 (en) * 2012-10-30 2014-05-01 Electronics And Telecommunications Research Institute Tool composition for supporting opencl application software development for embedded system and method thereof
CN103853589A (en) * 2014-02-26 2014-06-11 上海爱数软件有限公司 Cross-platform system compiling and building method
CN104572235A (en) * 2014-12-31 2015-04-29 北京奇虎科技有限公司 Compiling method and device for loadable kernel module
CN106648786A (en) * 2016-12-28 2017-05-10 深圳Tcl数字技术有限公司 Android application establishment method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140123101A1 (en) * 2012-10-30 2014-05-01 Electronics And Telecommunications Research Institute Tool composition for supporting opencl application software development for embedded system and method thereof
CN103473059A (en) * 2013-09-11 2013-12-25 江苏中科梦兰电子科技有限公司 General purpose operating system capable of supporting multiple system structures
CN103699389A (en) * 2013-12-30 2014-04-02 北京大学 Linux kernel module relation extracting method based on compiling options
CN103853589A (en) * 2014-02-26 2014-06-11 上海爱数软件有限公司 Cross-platform system compiling and building method
CN104572235A (en) * 2014-12-31 2015-04-29 北京奇虎科技有限公司 Compiling method and device for loadable kernel module
CN106648786A (en) * 2016-12-28 2017-05-10 深圳Tcl数字技术有限公司 Android application establishment method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851138A (en) * 2019-11-06 2020-02-28 山东超越数控电子股份有限公司 BMC software development method for separating kernel and application
CN114296740A (en) * 2021-12-29 2022-04-08 奇安信科技集团股份有限公司 Compiling method and device for product kernel file

Similar Documents

Publication Publication Date Title
US10019339B2 (en) Sequentially constructive model of computation
JP6103647B2 (en) Processor system and accelerator
CN107168698B (en) Automatic compiling method for graphical programming
US20100306750A1 (en) Parallel program generation method
CN114356578B (en) Parallel computing method, device, equipment and medium for natural language processing model
CN102096390A (en) Programmable logic controller, program compiler, compiling system and method
CN109783083A (en) WEB application development approach and its system
CN109117140A (en) The method and system of more kernel applications are supported in a kind of distributed building
CN107015841A (en) The preprocess method and program compiling equipment of a kind of program compiling
JP2022508035A (en) Large-scale model support for deep learning
CN110310638A (en) Throw screen method, apparatus, electronic equipment and computer readable storage medium
CN102880497B (en) Complier and method for reusing and optimizing software management memory
CN105224327B (en) A kind of embedded equipment variable exchanges the transmission offline distribution method in address
US7373481B2 (en) Distributed-structure-based parallel module structure and parallel processing method
Bogdanov et al. DAEDALED: A GUI Tool for the optimization of Smart City LED street lighting networks
CN110362471A (en) Test case processing method, system, terminal and storage medium
Shaikhislamov et al. Survey on software tools that implement deep learning algorithms on intel/x86 and ibm/power8/power9 platforms
Vepsäläinen et al. Tool support for the UML automation profile-for domain-specific software development in manufacturing
CN107817972A (en) Cache code process method, apparatus, storage medium and electronic equipment
CN103823681B (en) Method and device for generating web control
Camurri et al. Describing and performing musical processes by means of Petri nets
CN105357243A (en) Remote interaction method and apparatus with device in the Internet of things
US12039335B2 (en) Schedule instructions of a program of data flows for execution in tiles of a coarse grained reconfigurable array
CN110196846A (en) A kind of general helping method for BS system
Djukić et al. Using action reports for testing meta-models, models, generators and target interpreter in domain-specific modeling

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190101