File-level cutting method and system for Linux kernel source code
The invention relates to a file-level cutting method and system for Linux kernel source codes, belongs to the technical field of operating systems, and solves the problems that a standard Linux kernel looks too redundant in function and looks too huge in size of a source code file and a binary file....
Gespeichert in:
Hauptverfasser: | , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a file-level cutting method and system for Linux kernel source codes, belongs to the technical field of operating systems, and solves the problems that a standard Linux kernel looks too redundant in function and looks too huge in size of a source code file and a binary file. The method comprises the following steps: automatically identifying a source code file to be compiled in an original Linux kernel source code file according to a configuration file. Config of a kernel; forming a list of source code files participating in compiling in the original Linux kernel source code file on the basis of the identified source code files needing to participate in compiling; deleting source code files which do not participate in compiling according to the source file list which participates in compiling to achieve file-level cutting of Linux source codes; and compiling the source code and the link program according to the mode defined by the Makefile when executing the make command to compile th |
---|