CN113835711B - Compiling control method and device of source code package of operating system, storage medium and equipment - Google Patents

Compiling control method and device of source code package of operating system, storage medium and equipment Download PDF

Info

Publication number
CN113835711B
CN113835711B CN202111110249.4A CN202111110249A CN113835711B CN 113835711 B CN113835711 B CN 113835711B CN 202111110249 A CN202111110249 A CN 202111110249A CN 113835711 B CN113835711 B CN 113835711B
Authority
CN
China
Prior art keywords
source code
operating system
current
version
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.)
Active
Application number
CN202111110249.4A
Other languages
Chinese (zh)
Other versions
CN113835711A (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111110249.4A priority Critical patent/CN113835711B/en
Publication of CN113835711A publication Critical patent/CN113835711A/en
Application granted granted Critical
Publication of CN113835711B publication Critical patent/CN113835711B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a compiling control method, a compiling control device, a storage medium and equipment of an operating system source code package. The method comprises the following steps: screening a source code packet to be compiled of the current version of operating system; generating a compiling task of the current version operating system according to the source code package to be compiled; and compiling the source code package to be compiled corresponding to the current version operating system according to the compiling task to obtain a compiling result of the source code package to be compiled corresponding to the current version operating system. The application realizes the screening of the source code packets to be compiled, filters out some source code packets which do not need to be compiled, improves the efficiency of the whole compiling process and saves the time of the whole compiling process.

Description

Compiling control method and device of source code package of operating system, storage medium and equipment
Technical Field
The present application relates to the field of computer systems, and in particular, to a method and apparatus for controlling compilation of source code packages of an operating system, a storage medium, and a computer device.
Background
With the development of information technology, especially the development of mobile internet, the problems caused by using foreign operating systems are increasing, especially the information security, more and more people are realizing the importance of the development of domestic operating systems, and at present, china is also developing domestic operating systems, so the construction of operating systems is very important. When the operating system is built, the source code package of the operating system needs to be compiled, and the compiling process can influence the building efficiency of the operating system.
At present, the operating system is generally built by adopting some external tools to assist in compiling the system, and the most common is a koji compiling system. In the traditional technical scheme, when the source code package is compiled by utilizing the koji compiling system, the compiling process is generally time-consuming, and under the condition that the source code package is very large, the whole compiling process time is very long, and the compiling efficiency is correspondingly very low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for compiling an operating system source code package.
A compiling control method of an operating system source code package includes:
screening a source code packet to be compiled of the current version of operating system;
generating a compiling task of the current version of operating system according to the source code package to be compiled;
and compiling the source code package to be compiled corresponding to the current version operating system according to the compiling task to obtain the compiling result of the source code package to be compiled corresponding to the current version operating system.
In one embodiment, the filtering the source code packet to be compiled of the current version of operating system includes:
acquiring first identification information of a current source code packet of a current version operating system;
Comparing the first identification information of the current source code package of the current version operating system with the first identification information of the source code package of the historical version operating system;
when the first identification information of the source code package of the historical version operating system is not consistent with the first identification information of the current source code package of the current version operating system, determining the current source code package of the current version operating system as the source code package to be compiled.
In one embodiment, the method further comprises:
when the first identification information of the target source code packet exists in the source code packet of the historical version operating system and the first identification information of the current source code packet of the current version operating system are consistent, acquiring a compiling result of the target source code packet;
and when the compiling result of the target source code package is that the compiling fails, determining the current source code package of the current version operating system as the source code package to be compiled.
In one embodiment, the method further comprises:
when the compiling result of the target source code package is that the compiling is successful, obtaining second identification information of the current source code package of the current version operating system;
the second identification information of the current source code package of the current version operating system and a target label which is created for the current version operating system in advance are associated and stored in a preset database;
Acquiring a next source code packet of the current version operating system, wherein the next source code packet of the current version operating system is the current source code packet, and re-executing the step of acquiring the first identification information of the current source code packet of the current version operating system.
In one embodiment, the method further comprises:
constructing a total compiling result of the current version operating system according to the compiling result of each source code package to be compiled of the current version operating system;
the total compiling result and the target label are stored in the preset database in an associated mode;
when an acquisition request of a total compiling result of a current version operating system sent by a terminal is received, acquiring the total compiling result corresponding to the current version operating system from a preset database according to a target tag carried in the acquisition request;
and sending the total compiling result corresponding to the current version operating system to the terminal so that the terminal builds the current version operating system according to the total compiling result corresponding to the current version operating system.
In one embodiment, the first identification information of the current source code packet of the current version operating system includes a name of the current source code packet of the current version operating system, a first version identifier, and a second version identifier, and comparing the first identification information of the current source code packet of the current version operating system with the first identification information of the source code packet of the historical version operating system includes:
Comparing the name of the current source code package, the first version identifier and the second version identifier of the current version operating system with the name of the source code package, the first version identifier and the second version identifier of the historical version operating system respectively;
the method further comprises the steps of:
when the name, the first version identifier and the second version identifier of the target source code packet are respectively consistent with the name, the first version identifier and the second version identifier of the current source code packet of the current version operating system, determining that first identification information of the target source code packet in the source code packet of the historical version operating system is consistent with first identification information of the current source code packet of the current version operating system.
In one embodiment, the generating the compiling task of the current version of the operating system according to the source code package to be compiled includes:
generating compiling tasks corresponding to the source code packages to be compiled according to the source code packages to be compiled respectively;
compiling the source code package to be compiled corresponding to the current version operating system according to the compiling task to obtain the compiling result of the source code package to be compiled corresponding to the current version operating system, wherein the compiling result comprises the following steps:
and compiling the compiling tasks corresponding to the source code packages to be compiled respectively to obtain the compiling results of the source code packages to be compiled corresponding to the operating system of the current version.
A compilation control device for an operating system source code package, the device comprising:
the searching module is used for screening a source code packet to be compiled of the current version of operating system;
the generation module is used for generating a compiling task of the current version of operating system according to the source code package to be compiled;
and the control module is used for compiling the source code package to be compiled corresponding to the current version operating system according to the compiling task to obtain the compiling result of the source code package to be compiled corresponding to the current version operating system.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of any of the methods of the embodiments described above when the computer program is executed by the processor.
A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of any of the methods of the embodiments described above.
The compiling control method, the compiling control device, the computer equipment and the storage medium of the source code package of the operating system are used for screening the source code package to be compiled of the operating system of the current version; the source code package to be compiled is compiled to obtain a compiling result, so that the source code package to be compiled is screened, some source code packages which do not need to be compiled are filtered, the efficiency of the whole compiling process is improved, the time of the whole compiling process is saved, and the problems of low compiling efficiency and long compiling time caused by the fact that all source code packages need to be compiled in the prior art are solved.
Drawings
FIG. 1 is an application environment diagram of a compilation control method of an operating system source code package in an exemplary embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for compiling control of an operating system source code package according to an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of a summary flow chart of the compiling results of each source code package to be compiled of the current version of the operating system according to an exemplary embodiment of the present application;
FIG. 4 is a block diagram illustrating a compilation control device for source code packages of an operating system according to an exemplary embodiment of the present application;
fig. 5 is an internal structural view of a computer device provided in an exemplary embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Referring to fig. 1, fig. 1 is a schematic view of an application environment of a compiling control method for an operating system source code package according to an exemplary embodiment of the present application. As shown in fig. 1, the application environment includes a server 100 and a terminal 101, and the server 100 and the terminal 101 may be connected in a communicable manner through a network 102, so as to implement the compiling control method of the source code package of the operating system in the present application.
The server 100 is used for screening a source code packet to be compiled of the current version of operating system; generating a compiling task of the current version of operating system according to the source code package to be compiled; and compiling the corresponding source code package of the current version operating system according to the compiling task to obtain the compiling result of the corresponding source code package of the current version operating system. The server 100 is further configured to receive an acquisition request of a total compiling result of the current version operating system sent by the terminal 101; acquiring the compiling result of each source code packet corresponding to the current version of operating system from a preset database according to the target label carried in the acquiring request; and sending the compiling result of each source code packet corresponding to the current version operating system to the terminal 101, so that the terminal 101 builds the current version operating system according to the compiling result of each source code packet corresponding to the current version operating system. The server 100 may be implemented as a stand-alone server or as a server cluster including a plurality of servers.
The terminal 101 is configured to send an acquisition request of a total compiling result of the current version operating system to the server 100; receiving a compiling result of each source code packet corresponding to the current version operating system fed back by the server 100; and constructing the current version operating system according to the compiling result of each source code package corresponding to the current version operating system. The terminal 101 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
Network 102 is used to implement a network connection between terminal 101 and server 100. In particular, network 102 may comprise various types of wired or wireless networks.
In one embodiment, as shown in fig. 2, a compiling control method for an operating system source code package is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
s11, screening a source code packet to be compiled of the operating system of the current version.
In the application, the source code package to be compiled is a source code package which is screened from all source code packages of the current version of operating system and needs to be compiled. Specifically, the present application may include a plurality of historical version operating systems and a current version operating system. Each version of the operating system can comprise a plurality of source code packages, when compiling, the source code packages need to be screened, the source code packages needing to be compiled are determined, the source code packages needing not to be compiled are filtered, and the source code packages needing to be compiled are equivalent to the source code packages to be compiled.
In one embodiment, the filtering the source code packet to be compiled of the current version of operating system may include:
acquiring first identification information of a current source code packet of the current version operating system;
Comparing the first identification information of the current source code package of the current version operating system with the first identification information of the source code package of the historical version operating system;
when the first identification information of the source code package of the historical version operating system is not consistent with the first identification information of the current source code package of the current version operating system, determining the current source code package of the current version operating system as the source code package to be compiled.
The current source code packet is one of all source code packets of the current version operating system. The first identification information is information capable of identifying a current source code packet of the current version operating system. That is, by comparing the content of the first identification information, it can be determined whether the current source code packet of the current version operating system and the source code packet of the historical version operating system are the same source code packet.
The obtaining the first identification information of the current source code packet of the current version operating system may include:
extracting a SPEC file (Specification file) in a current source code package of a current version operating system;
and analyzing a field name in the SPEC file, wherein the field name comprises a packet name field, a first version identification field and a second version identification field, and obtaining first identification information of a current source code packet of a current version operating system.
Specifically, the Spec file records some related information, name, version, compiling condition, installation catalog and other information of the source code package.
Specifically, there may be multiple historical version operating systems, and all source code packets of each historical version operating system need to be acquired during comparison are compared with the current source code packet of the current version operating system, so as to determine whether the current source code packet of the current version operating system is the source code packet to be compiled. If any one of the source code packets of the historical version operating system is not the same as the current source code packet of the current version operating system, determining the current source code packet of the current version operating system as the source code packet to be compiled. The method and the device realize screening of the source code packets by comparing the first identification information, take the source code packets which are not compiled in the history as the source code packets which should be compiled at this time, filter out a part of the source code packets which are compiled in the history and are successfully compiled, avoid repeated compilation of the source code packets, and shorten the compiling time of the source code packets.
In one embodiment, the method may further include:
when the first identification information of the target source code packet exists in the source code packet of the historical version operating system and the first identification information of the current source code packet of the current version operating system are consistent, acquiring a compiling result of the target source code packet;
And when the compiling result of the target source code package is that the compiling fails, determining the current source code package of the current version operating system as the source code package to be compiled.
Specifically, when the current source code package of the current version operating system is the same as the target source code package of the historical version, the compiling result of the target source code package is obtained, and if the compiling result of the target source code package fails to be compiled, the current source code package of the current version operating system is determined to be the source code package to be compiled. The method and the device realize screening of the source code packets by comparing the first identification information, take the source code packets which are compiled in the history but have failed in compiling as the source code packets which should be compiled at this time, filter out a part of the source code packets which are compiled in the history and successfully compiled, avoid repeated compiling of the source code packets, and shorten the compiling time of the source code packets.
In one embodiment, the method further comprises:
when the compiling result of the target source code package is that the compiling is successful, acquiring second identification information of the current source code package of the current version operating system;
the second identification information of the current source code package of the current version operating system is associated with a target label which is created for the current version operating system in advance and stored in a preset database;
And obtaining the next source code packet of the current version operating system, wherein the next source code packet of the current version operating system is the current source code packet, and re-executing the step of obtaining the first identification information of the current source code packet of the current version operating system.
The method may further include:
creating a target label for the current version operating system in advance, and storing the compiling result of each source code packet to be compiled corresponding to the current version operating system in association with the target label so as to facilitate subsequent data inquiry.
Specifically, when it is detected that the current source code packet of the current version operating system is the same as the target source code packet of the historical version operating system, and the compiling result of the history of the target source code packet is that the compiling is successful, the current source code packet of the current version operating system is filtered, and the second identification information of the current source code packet of the current version operating system and the target label created in advance for the current version operating system need to be associated and stored in a preset database so as to facilitate subsequent data query. The second identification information may be an ID number of a current source code packet of the current version operating system. The method and the device realize screening of the source code packets by comparing the first identification information, take the source code packets which are compiled in the history but have failed in compiling as the source code packets which should be compiled at this time, filter out a part of the source code packets which are compiled in the history and successfully compiled, avoid repeated compiling of the source code packets, and shorten the compiling time of the source code packets.
In one embodiment, the first identification information of the current source code packet of the current version operating system includes the name, the first version identifier and the second version identifier of the current source code packet of the current version operating system, and the comparing the first identification information of the current source code packet of the current version operating system with the first identification information of the source code packet of the historical version operating system may include:
comparing the name of the current source code package, the first version identifier and the second version identifier of the current version operating system with the name of the source code package, the first version identifier and the second version identifier of the historical version operating system respectively;
the method may further comprise:
when the name, the first version identifier and the second version identifier of the target source code packet are respectively consistent with the name, the first version identifier and the second version identifier of the current source code packet of the current version operating system, determining that the first identification information of the target source code packet in the source code packet of the historical version operating system is consistent with the first identification information of the current source code packet of the current version operating system.
Specifically, the first version identifier may be a software version number. The second version identifier may be a major version number, a minor version number, and an issue number. And when the current source code package name, the first version identifier and the second version identifier of the current version operating system are compared with the source code package names, the first version identifier and the second version identifier of each historical version operating system one by one. If the three items of the target source code package are consistent with the three items of the current source code package of the current version operating system respectively, determining that the first identification information of the target source code package in the source code package of the historical version operating system is consistent with the first identification information of the current source code package of the current version operating system, namely the target source code package and the current source code package of the current version operating system are the same source code package.
The application determines whether the current source code package of the current version operating system is the same as the target source code package of the historical version operating system or not by comparing the package name, the major version number, the minor version number and the release number of the source code package, thereby realizing the screening and filtering of the source code package of the current version operating system, avoiding repeated compiling and improving the compiling efficiency.
And S12, generating a compiling task of the current version of operating system according to the source code package to be compiled.
In the application, the compiling task is used for indicating the server to compile the source code package to be compiled.
In one embodiment, the generating the compiling task of the current version of the operating system according to the source code package to be compiled may include:
generating compiling tasks corresponding to the source code packages to be compiled according to the source code packages to be compiled respectively;
the compiling of the source code package to be compiled corresponding to the current version operating system according to the compiling task, to obtain the compiling result of the source code package to be compiled corresponding to the current version operating system, includes:
and compiling the compiling tasks corresponding to the source code packages to be compiled respectively to obtain the compiling results of the source code packages to be compiled corresponding to the operating system of the current version.
Specifically, the server generates corresponding compiling tasks according to each source code package to be compiled, and the compiling tasks can be executed one by one or together when the compiling is executed.
And S13, compiling the source code package to be compiled corresponding to the current version operating system according to the compiling task to obtain a compiling result of the source code package to be compiled corresponding to the current version operating system.
In one embodiment, as shown in fig. 3, a schematic summary flow chart of the compiling result of each source code package to be compiled of the current version of the operating system is provided. As shown in fig. 3, the method may further include:
s131, constructing a total compiling result of the current version operating system according to the compiling result of each source code package to be compiled of the current version operating system;
s132, storing the total compiling result and the target label in the preset database in an associated mode;
s133, when an acquisition request of the total compiling result of the current version operating system sent by the terminal is received, according to a target label carried in the acquisition request, acquiring the compiling result of each source code packet corresponding to the current version operating system from a preset database;
s134, the compiling result of each source code package corresponding to the current version operating system is sent to the terminal, so that the terminal builds the current version operating system according to the compiling result of each source code package corresponding to the current version operating system.
The method and the device have the advantages that the current source code package of the current version operating system is compared with the source code package of the historical version operating system, the source code package which is compiled historically and successfully is searched, and the source codes Bao Tiaoguo are compiled, so that the compiling time of the current source code package of the current version operating system is shortened, the construction time of the operating system is further effectively shortened, and the construction efficiency is improved.
In one embodiment, the data structure of the preset database is as follows in table 1:
TABLE 1
In table 1, the first version operating system, the second version operating system and the third version operating system are specifically included. The first version of operating system pre-creates the target tag 1, and correspondingly comprises a source code packet ID1, a source code packet ID2 and a source code packet ID3. In addition, a mapping relation between the compiling result 1 and the target tag 1 is also created. Accordingly, the second version of operating system creates the target tag 2 in advance, and the second version of operating system correspondingly comprises a source code packet ID4, a source code packet ID5 and a source code packet ID5. In addition, a mapping relationship between the compiling result 2 and the target tag 2 is also created. The third version of the operating system creates the target tag 3 in advance, and the first version of the operating system correspondingly comprises a source code packet ID2, a source code packet ID7 and a source code packet ID8. In addition, a mapping relationship between the compiling result 3 and the target tag 3 is also created.
Further, as can be seen from table 1, the source code packet ID2 appears in both the first version of the operating system and the third version of the operating system, and thus the source code packet ID2 belongs to a source code packet common to the first version of the operating system and the third version of the operating system. Therefore, when compiling the third edition of operating system, the compiling of the source code package ID2 can be skipped, so that repeated compiling is avoided, and the compiling time is saved.
Further, the above compiling result 1 specifically includes the compiling result of the source code packet ID1, the source code packet ID2, and the source code packet ID 3. The above compiling result 2 specifically includes the compiling result of the source code packet ID4, the source code packet ID5, and the source code packet ID 6. The above-mentioned compiling result 3 specifically includes the compiling result of the source code packet ID7 and the source code packet ID 8. The compiling result 3 may include the compiling result of the source code packet ID 2. Since the source code packet ID2 has been compiled in the first version of the operating system and the compiling is successful, the source code packet in the third version of the operating system does not need to be compiled again, but the source code packet ID2 needs to be stored in association with the target tag 3 of the third version of the operating system. When a subsequent terminal initiates a request for acquiring the total compiling result of the third edition of operating system, the server acquires the compiling result corresponding to the source code packet ID2 from the compiling result 1 according to the mapping relation between the source code packet ID2 and the target label 3 of the third edition of operating system and the mapping relation between the source code packet ID2 and the target label 1 of the first edition of operating system. Specifically, the compiling result may include data obtained after compiling and a result of compiling success or compiling failure.
In one embodiment, the above-mentioned servers may be implemented as a stand-alone server or a server cluster composed of a plurality of servers. Specifically, the server may include a source code packet filtering server and a koji compiling server. The terminal may be a koji client.
Specifically, the source code packet screening server is used for screening a source code packet to be compiled of the current version of operating system; and generating a compiling task of the current version operating system according to the source code package to be compiled, and submitting the compiling task to the koji compiling server so that the koji compiling server executes compiling operation on the compiling task. The koji compiling server is configured to compile the source code package to be compiled corresponding to the current version operating system according to the compiling task, obtain a compiling result of the source code package to be compiled corresponding to the current version operating system, and aggregate all compiling results to obtain a total compiling result corresponding to the current version operating system.
In one possible application scenario, the operating system is generally built by using some external tools to assist in compiling the system, and then the most commonly used is the koji compiling system. Iterative development of an operating system is often encountered when constructing the operating system, that is, when a koji compilation system is used to construct source code packages of multiple versions of the operating system, where there must be a crossover of software versions. For example, after developing a version 1.0 operating system, a version 2.0 operating system needs to be developed later, wherein some source code packages are necessarily shared by versions of two operating systems, and then recompilation of the source code packages is not necessary.
In one embodiment, as shown in fig. 4, there is provided a compiling control device for an operating system source code package, including: a search module 11, a generation module 12 and a control module 13, wherein:
the searching module 11 is used for screening a source code packet to be compiled of the operating system of the current version;
the generating module 12 is configured to generate a compiling task of the current version of the operating system according to the source code packet to be compiled;
and the control module 13 is used for compiling the source code package to be compiled corresponding to the current version operating system according to the compiling task to obtain the compiling result of the source code package to be compiled corresponding to the current version operating system.
In one embodiment, the above-mentioned searching module 11 may obtain the first identification information of the current source code packet of the current version operating system, compare the first identification information of the current source code packet of the current version operating system with the first identification information of the source code packet of the historical version operating system, and determine that the current source code packet of the current version operating system is the source code packet to be compiled when the first identification information of the source code packet of the historical version operating system is not consistent with the first identification information of the current source code packet of the current version operating system.
In one embodiment, the above-mentioned searching module 11 may obtain a compiling result of the target source code packet when the first identification information of the target source code packet in the source code packet of the historical version operating system is consistent with the first identification information of the current source code packet of the current version operating system, and determine that the current source code packet of the current version operating system is the source code packet to be compiled when the compiling result of the target source code packet is that the compiling is failed.
In one embodiment, the above apparatus further includes a storage module (not shown), where the storage module may obtain second identification information of a current source code packet of the current version operating system when the compiling result of the target source code packet is that the compiling is successful, store the second identification information of the current source code packet of the current version operating system in a preset database in association with a target tag created in advance for the current version operating system, obtain a next source code packet of the current version operating system, and re-execute the step of obtaining the first identification information of the current source code packet of the current version operating system.
In one embodiment, the foregoing apparatus further includes a summarizing module (not shown), where the summarizing module may construct a total compiling result of the current version operating system according to a compiling result of each source code package to be compiled of the current version operating system, store the total compiling result and the target tag in the preset database in association, when receiving an obtaining request of the total compiling result of the current version operating system sent by the terminal, obtain, according to the target tag carried in the obtaining request, a total compiling result corresponding to the current version operating system from the preset database, and send the total compiling result corresponding to the current version operating system to the terminal, so that the terminal constructs the current version operating system according to the total compiling result corresponding to the current version operating system.
In one embodiment, the first identification information of the current source code packet of the current version operating system includes a name of the current source code packet of the current version operating system, a first version identifier and a second version identifier, and the search module 11 may further compare the name of the current source code packet of the current version operating system, the first version identifier and the second version identifier with the name of the source code packet of the historical version operating system, the first version identifier and the second version identifier respectively; the above apparatus further includes a determining module (not shown), where the determining module may determine that the first identification information of the target source code packet in the source code packet of the historical version operating system is consistent with the first identification information of the current source code packet of the current version operating system when the name, the first version identifier, and the second version identifier of the target source code packet are respectively consistent with the name, the first version identifier, and the second version identifier of the current source code packet of the current version operating system.
In one embodiment, the generating module 12 may generate the compiling task corresponding to each source code package to be compiled according to each source code package to be compiled, and the control module 13 may compile the compiling task corresponding to each source code package to be compiled to obtain the compiling result of the source code package to be compiled corresponding to the current version of operating system.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing data such as operation data of the intelligent household equipment. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a compilation control method of an operating system source code package.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program: screening a source code packet to be compiled of the current version of operating system; generating a compiling task of the current version of operating system according to the source code package to be compiled; and compiling the source code package to be compiled corresponding to the current version operating system according to the compiling task to obtain the compiling result of the source code package to be compiled corresponding to the current version operating system.
In one embodiment, when the processor executes the computer program to implement the above step of screening the source code package to be compiled of the current version of operating system, the following steps are specifically implemented:
acquiring first identification information of a current source code packet of a current version operating system;
comparing the first identification information of the current source code package of the current version operating system with the first identification information of the source code package of the historical version operating system;
when the first identification information of the source code package of the historical version operating system is not consistent with the first identification information of the current source code package of the current version operating system, determining the current source code package of the current version operating system as the source code package to be compiled.
In one embodiment, the processor, when executing the computer program, specifically further implements the steps of:
when the first identification information of the target source code packet exists in the source code packet of the historical version operating system and the first identification information of the current source code packet of the current version operating system are consistent, acquiring a compiling result of the target source code packet;
and when the compiling result of the target source code package is that the compiling fails, determining the current source code package of the current version operating system as the source code package to be compiled.
In one embodiment, the processor, when executing the computer program, specifically further implements the steps of:
When the compiling result of the target source code package is that the compiling is successful, obtaining second identification information of the current source code package of the current version operating system;
the second identification information of the current source code package of the current version operating system and a target label which is created for the current version operating system in advance are associated and stored in a preset database;
acquiring a next source code packet of the current version operating system, wherein the next source code packet of the current version operating system is the current source code packet, and re-executing the step of acquiring the first identification information of the current source code packet of the current version operating system.
In one embodiment, the processor, when executing the computer program, specifically further implements the steps of:
constructing a total compiling result of the current version operating system according to the compiling result of each source code package to be compiled of the current version operating system;
the total compiling result and the target label are stored in the preset database in an associated mode;
when an acquisition request of a total compiling result of a current version operating system sent by a terminal is received, acquiring the total compiling result corresponding to the current version operating system from a preset database according to a target tag carried in the acquisition request;
and sending the total compiling result corresponding to the current version operating system to the terminal so that the terminal builds the current version operating system according to the total compiling result corresponding to the current version operating system.
In one embodiment, the first identification information of the current source code packet of the current version operating system includes a name of the current source code packet of the current version operating system, a first version identifier, and a second version identifier, and when the processor executes the computer program to implement the step of comparing the first identification information of the current source code packet of the current version operating system with the first identification information of the source code packet of the historical version operating system, the specific implementation steps include:
comparing the name of the current source code package, the first version identifier and the second version identifier of the current version operating system with the name of the source code package, the first version identifier and the second version identifier of the historical version operating system respectively;
the processor, when executing the computer program, specifically implements the following steps:
when the name, the first version identifier and the second version identifier of the target source code packet are respectively consistent with the name, the first version identifier and the second version identifier of the current source code packet of the current version operating system, determining that first identification information of the target source code packet in the source code packet of the historical version operating system is consistent with first identification information of the current source code packet of the current version operating system.
In one embodiment, when the processor executes the computer program to implement the above-mentioned task compiling step according to the source code package to be compiled to generate the operating system of the current version, the following steps are specifically implemented:
generating compiling tasks corresponding to the source code packages to be compiled according to the source code packages to be compiled respectively;
compiling the source code package to be compiled corresponding to the current version operating system according to the compiling task to obtain the compiling result of the source code package to be compiled corresponding to the current version operating system, wherein the compiling result comprises the following steps:
and compiling the compiling tasks corresponding to the source code packages to be compiled respectively to obtain the compiling results of the source code packages to be compiled corresponding to the operating system of the current version.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: screening a source code packet to be compiled of the current version of operating system; generating a compiling task of the current version of operating system according to the source code package to be compiled; and compiling the source code package to be compiled corresponding to the current version operating system according to the compiling task to obtain the compiling result of the source code package to be compiled corresponding to the current version operating system.
In one embodiment, when the computer program is executed by the processor to implement the above step of screening the source code package to be compiled of the current version of operating system, the following steps are specifically implemented:
acquiring first identification information of a current source code packet of a current version operating system;
comparing the first identification information of the current source code package of the current version operating system with the first identification information of the source code package of the historical version operating system;
when the first identification information of the source code package of the historical version operating system is not consistent with the first identification information of the current source code package of the current version operating system, determining the current source code package of the current version operating system as the source code package to be compiled.
In one embodiment, the computer program when executed by the processor performs the steps of:
when the first identification information of the target source code packet exists in the source code packet of the historical version operating system and the first identification information of the current source code packet of the current version operating system are consistent, acquiring a compiling result of the target source code packet;
and when the compiling result of the target source code package is that the compiling fails, determining the current source code package of the current version operating system as the source code package to be compiled.
In one embodiment, the computer program when executed by the processor performs the steps of:
When the compiling result of the target source code package is that the compiling is successful, obtaining second identification information of the current source code package of the current version operating system;
the second identification information of the current source code package of the current version operating system and a target label which is created for the current version operating system in advance are associated and stored in a preset database;
acquiring a next source code packet of the current version operating system, wherein the next source code packet of the current version operating system is the current source code packet, and re-executing the step of acquiring the first identification information of the current source code packet of the current version operating system.
In one embodiment, the computer program when executed by the processor performs the steps of:
constructing a total compiling result of the current version operating system according to the compiling result of each source code package to be compiled of the current version operating system;
the total compiling result and the target label are stored in the preset database in an associated mode;
when an acquisition request of a total compiling result of a current version operating system sent by a terminal is received, acquiring the total compiling result corresponding to the current version operating system from a preset database according to a target tag carried in the acquisition request;
and sending the total compiling result corresponding to the current version operating system to the terminal so that the terminal builds the current version operating system according to the total compiling result corresponding to the current version operating system.
In one embodiment, the first identification information of the current source code packet of the current version operating system includes a name of the current source code packet of the current version operating system, a first version identifier, and a second version identifier, and when the computer program is executed by the processor to implement the step of comparing the first identification information of the current source code packet of the current version operating system with the first identification information of the source code packet of the historical version operating system, the specific implementation steps include:
comparing the name of the current source code package, the first version identifier and the second version identifier of the current version operating system with the name of the source code package, the first version identifier and the second version identifier of the historical version operating system respectively;
the computer program when executed by the processor also specifically implements the steps of:
when the name, the first version identifier and the second version identifier of the target source code packet are respectively consistent with the name, the first version identifier and the second version identifier of the current source code packet of the current version operating system, determining that first identification information of the target source code packet in the source code packet of the historical version operating system is consistent with first identification information of the current source code packet of the current version operating system.
In one embodiment, when the computer program is executed by the processor to implement the above-mentioned step of generating the compiling task of the operating system of the current version according to the source code packet to be compiled, the following steps are specifically implemented:
generating compiling tasks corresponding to the source code packages to be compiled according to the source code packages to be compiled respectively;
compiling the source code package to be compiled corresponding to the current version operating system according to the compiling task to obtain the compiling result of the source code package to be compiled corresponding to the current version operating system, wherein the compiling result comprises the following steps:
and compiling the compiling tasks corresponding to the source code packages to be compiled respectively to obtain the compiling results of the source code packages to be compiled corresponding to the operating system of the current version.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, physical banking or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (6)

1. A compilation control method of an operating system source code package, the method comprising:
acquiring first identification information of a current source code packet of a current version operating system;
comparing the first identification information of the current source code package of the current version operating system with the first identification information of the source code package of the historical version operating system;
when the first identification information of the source code package of the historical version operating system is not consistent with the first identification information of the current source code package of the current version operating system, determining the current source code package of the current version operating system as a source code package to be compiled;
The first identification information of the current source code package of the current version operating system comprises a name, a first version identification and a second version identification of the current source code package of the current version operating system, when the first identification information of the current source code package of the current version operating system is compared with the first identification information of the source code package of the historical version operating system, the name, the first version identification and the second version identification of the current source code package of the current version operating system are respectively compared with the name, the first version identification and the second version identification of the source code package of the historical version operating system;
when the name, the first version identifier and the second version identifier of a target source code packet exist in the source code packet of the historical version operating system and are respectively consistent with the name, the first version identifier and the second version identifier of the current source code packet of the current version operating system, a compiling result of the target source code packet is obtained;
when the compiling result of the target source code package is that the compiling fails, determining that the current source code package of the current version operating system is the source code package to be compiled;
generating compiling tasks corresponding to the source code packages to be compiled according to the source code packages to be compiled respectively;
And compiling the compiling tasks corresponding to the source code packages to be compiled respectively to obtain the compiling results of the source code packages to be compiled corresponding to the operating system of the current version.
2. The method according to claim 1, wherein the method further comprises:
when the compiling result of the target source code package is that the compiling is successful, obtaining second identification information of the current source code package of the current version operating system;
the second identification information of the current source code package of the current version operating system and a target label which is created for the current version operating system in advance are associated and stored in a preset database;
and acquiring a next source code packet of the current version operating system, wherein the next source code packet of the current version operating system is the current source code packet, and re-executing the step of acquiring the first identification information of the current source code packet of the current version operating system.
3. The method according to claim 2, wherein the method further comprises:
constructing a total compiling result of the current version operating system according to the compiling result of each source code package to be compiled of the current version operating system;
the total compiling result and the target label are stored in the preset database in an associated mode;
When an acquisition request of the total compiling result of the current version operating system sent by a terminal is received, acquiring the total compiling result corresponding to the current version operating system from the preset database according to a target tag carried in the acquisition request;
and sending the total compiling result corresponding to the current version operating system to the terminal so that the terminal builds the current version operating system according to the total compiling result corresponding to the current version operating system.
4. A compilation control device for an operating system source code package, the device comprising:
the system comprises a search module, a first version operation system and a second version operation system, wherein the search module is used for acquiring first identification information of a current source code packet of the current version operation system, comparing the first identification information of the current source code packet of the current version operation system with first identification information of a source code packet of a historical version operation system, when the first identification information of the source code packet of the historical version operation system is not consistent with the first identification information of the current source code packet of the current version operation system, determining that the current source code packet of the current version operation system is a source code packet to be compiled, the first identification information of the current source code packet of the current version operation system comprises names of the current source code packet of the current version operation system, first version identification and second version identification, comparing the first identification information of the current source code packet of the current version operation system with the first identification information of the source code packet of the historical version operation system, when the first identification information of the source code packet of the current version operation system is not consistent with the first identification information of the source code packet of the current version operation system, determining that the current source code packet of the current version operation system is consistent with the first identification information of the source code packet of the current version operation system, and when the first version identification of the current source code packet of the current version operation system is not consistent with the source code packet of the current version operation system, and the second version operation system, and when the first identification of the source code packet of the current version operation system is consistent with the source code packet of the current version operation system, and the first identification of the source identification of the current source code packet of the current version operation system is determined;
The generating module is used for generating compiling tasks corresponding to the source code packages to be compiled according to the source code packages to be compiled respectively;
and the control module is used for compiling the compiling tasks corresponding to the source code packages to be compiled respectively to obtain the compiling results of the source code packages to be compiled corresponding to the operating system of the current version.
5. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the compilation control method of an operating system source code package according to any one of claims 1 to 3 when the computer program is executed by the processor.
6. A computer-readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the compilation control method of an operating system source code package according to any one of claims 1 to 3.
CN202111110249.4A 2021-09-18 2021-09-18 Compiling control method and device of source code package of operating system, storage medium and equipment Active CN113835711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111110249.4A CN113835711B (en) 2021-09-18 2021-09-18 Compiling control method and device of source code package of operating system, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111110249.4A CN113835711B (en) 2021-09-18 2021-09-18 Compiling control method and device of source code package of operating system, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN113835711A CN113835711A (en) 2021-12-24
CN113835711B true CN113835711B (en) 2023-08-15

Family

ID=78968988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111110249.4A Active CN113835711B (en) 2021-09-18 2021-09-18 Compiling control method and device of source code package of operating system, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN113835711B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325965A (en) * 2015-06-24 2017-01-11 龙芯中科技术有限公司 Method and device for compiling of operating system
WO2018072493A1 (en) * 2016-10-17 2018-04-26 宁德时代新能源科技股份有限公司 Compiling method and compiling system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325965A (en) * 2015-06-24 2017-01-11 龙芯中科技术有限公司 Method and device for compiling of operating system
WO2018072493A1 (en) * 2016-10-17 2018-04-26 宁德时代新能源科技股份有限公司 Compiling method and compiling system

Also Published As

Publication number Publication date
CN113835711A (en) 2021-12-24

Similar Documents

Publication Publication Date Title
CN110647438B (en) Event monitoring method and device, computer equipment and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN109558404B (en) Data storage method, device, computer equipment and storage medium
US8793660B2 (en) Automated testing of programming code for a web service
CN108959385B (en) Database deployment method, device, computer equipment and storage medium
CN110751550B (en) Account checking method and device, computer equipment and storage medium
CN109361628B (en) Message assembling method and device, computer equipment and storage medium
CN110569035A (en) Code compiling method, device, equipment and storage medium of software development project
CN109902272B (en) Electronic form data processing method, electronic form data processing device, computer equipment and storage medium
WO2020248375A1 (en) Method and system for synchronizing data between databases, computer device and storage medium
CN112100152B (en) Service data processing method, system, server and readable storage medium
CN112015752A (en) Method and device for dynamically querying data, electronic equipment and storage medium
CN110727698A (en) Database access method and device, computer equipment and storage medium
CN110569179A (en) Data acquisition system and data acquisition method
CN109189385B (en) Algorithm configuration method, device, computer equipment and storage medium
CN111177121A (en) Order data feedback method and device, computer equipment and storage medium
CN111083054B (en) Route configuration processing method and device, computer equipment and storage medium
CN114443294B (en) Big data service component deployment method, system, terminal and storage medium
CN110457401B (en) Data storage method and device, computer equipment and storage medium
CN110275703B (en) Method and device for assigning key value to data, computer equipment and storage medium
CN113835711B (en) Compiling control method and device of source code package of operating system, storage medium and equipment
CN113051299A (en) Proxy information processing method, proxy information processing device, computer equipment and storage medium
CN112069223A (en) Data acquisition demand processing method and device, computer equipment and storage medium
CN112783866B (en) Data reading method, device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant