Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Patch compiling platform and method

A technology of compiling platform and compiling method, applied in the direction of code compiling, program code conversion, etc., can solve the problems of inconvenient operation, inability to realize expansion and management of kernel patch compiling environment, etc.

Active Publication Date: 2018-04-20
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that the compilation environment for reasonably expanding and managing kernel patches cannot be realized in the prior art, and the operation is very inconvenient

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Patch compiling platform and method
  • Patch compiling platform and method
  • Patch compiling platform and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0018] The embodiment of the present invention provides a patch compiling method, which can be applied to a patch compiling platform. The patch compiling platform is built with the help of the characteristics of Docker, and can perform hierarchical management on the kernel patch compiling environment. figure 1 It is a schematic diagram of the architecture of the patch compilation platform in Embodiment 1 of the present invention, see figure 1 As shown, logically, the patch compilation platform mainly includes three layers: the basic image layer 101, the cross-compiler layer 102 and the kernel SDK layer 103, wherein the basic image layer 101 is used to provide basic commands for compiling; The compiler layer 102 is constructed by combining the basic image and the cross compiler through Docker, and is used to provide a cross-compilation environment for kernel patch codes, such as tools such as compilation, editing, and decompilation; the kernel SDK layer 103 is composed of cross-...

Embodiment 2

[0051] Based on the same inventive concept, as the implementation of the above method, the embodiment of the present invention provides a patch compilation platform, the embodiment of the patch compilation platform corresponds to the foregoing method embodiment, for the sake of easy reading, the embodiment of this device does not refer to the foregoing method The details in the embodiment will be described one by one, but it should be clear that the patch compilation platform in this embodiment can correspondingly implement all the content in the foregoing method embodiments.

[0052] image 3 It is a schematic structural diagram of the patch compilation platform in Embodiment 2 of the present invention, see image 3 As shown, the patch compilation platform 30 includes: a basic image layer unit 301, a cross-compiler layer unit 302, and a kernel SDK layer unit 303, wherein the basic image layer unit 301 is used to provide commands and tools required for compiling; The device l...

Embodiment 3

[0065] Based on the same inventive concept, an embodiment of the present invention provides a patch compiling device. Figure 4 It is a schematic structural diagram of the patch compilation device in Embodiment 3 of the present invention, see Figure 4 As shown, the patch compilation device 40 includes: a memory 401, a processor 402, and a computer program 403 stored on the memory 401 and operable on the processor 402. When the processor executes the program 403, the following steps are implemented: obtain the SDK file of the kernel ;Call the cross-compiler layer, based on the SDK file, determine whether there is a target compiler used by the kernel in the cross-compiler layer, wherein the cross-compiler layer is used to provide a cross-compilation environment; if there is no target compiler in the cross-compiler layer The compiler calls the basic image layer, and builds the first cross-compiler image corresponding to the target compiler on the cross-compiler layer through the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a patch compiling platform. The patch compiling platform comprises a basic image layer unit for providing instructions and tools required for compiling, a cross compiler layer unit for providing a cross compiling environment, a kernel SDK (software development kit) layer unit for acquiring kernel SDK files, and a cross compiler layer calling unit for determining whether a target compiler applied by a kernel exists in the cross compiler layer unit on the basis of the SDK files, and if not, calling the basic image layer. Through an open source applicationcontainer engine of Docker, a first cross compiler image corresponding to the target compiler is established on the cross compiler layer unit; the Docker combines the SDK files with the first cross compiler image, so that a kernel SDK image for compiling the patch codes of the kernel is established on the kernel SDK layer unit. The embodiment of the invention also provides a patch compiling method.

Description

technical field [0001] The invention relates to the field of computers, in particular to a patch compiling platform and a patch compiling method. Background technique [0002] With the development of informatization and the popularization of computer technology and Internet technology, people can enjoy the convenience brought by computers. The kernel is the core of the operating system, responsible for managing the system's processes, memory, device drivers, files and network systems, etc., and determines the performance and stability of the system. In order to ensure the security and availability of the kernel, when a defect occurs in the kernel, it is often necessary to add a kernel patch to the kernel. [0003] In practical applications, the same header file, configuration file, cross compiler, and compilation environment as the target kernel need to be used when compiling the kernel patch. Then, if the user needs to compile different kernel patch packages corresponding...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/41
CPCG06F8/41
Inventor 张建新刘天
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products