CN106919432A - The method for customizing of (SuSE) Linux OS - Google Patents
The method for customizing of (SuSE) Linux OS Download PDFInfo
- Publication number
- CN106919432A CN106919432A CN201511000971.7A CN201511000971A CN106919432A CN 106919432 A CN106919432 A CN 106919432A CN 201511000971 A CN201511000971 A CN 201511000971A CN 106919432 A CN106919432 A CN 106919432A
- Authority
- CN
- China
- Prior art keywords
- linux
- built
- linux system
- compiled
- compilation environment
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
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 present invention relates to (SuSE) Linux OS field, a kind of method for customizing of (SuSE) Linux OS is disclosed, the method includes:Cross compilation environment is set up on host system, the CPU architecture of the host system is differed with the CPU architecture of linux system to be built;The basic system part for linux system to be built is compiled in the cross compilation environment;And the server that the completion basic system part is attached to the linux system to be built will be compiled.The method can reduce the difficulty of linux system customization, and improve the efficiency of linux system customization.
Description
Technical field
The present invention relates to (SuSE) Linux OS, in particular it relates to a kind of customization of (SuSE) Linux OS
Method.
Background technology
When the customization of (SuSE) Linux OS is carried out, typically using LFS (Linux From Scratch)
Mode.This mode provides a kind of thought of operating system from compilation of source code, and user can be with root
The software of oneself needs is compiled according to the demand of oneself.The operating system compiled using LFS modes in logic one
As be divided into two parts, basic system part and extension components of system as directed.
LFS customizations need a host system, and can generally select the linux system of same framework
As host system.
If from same framework linux system as host system, for the Linux of Godson 3A platforms
System customization has two, and one is that operator needs to be manually entered source code compiler directive, than relatively time-consuming,
And have certain difficulty for beginner, increased the customization difficulty of linux system;Secondly, Godson
(loongson) performance of 3A CPU is relatively less better, if under the Godson 3A servers of same framework
It is customized, it will cause System build speed slower, customizes excessive cycle, largely reduces
The efficiency of linux system customization.
The content of the invention
It is an object of the invention to provide a kind of method for customizing of (SuSE) Linux OS, the method can be reduced
The difficulty of linux system customization, and improve the efficiency of linux system customization.
To achieve these goals, the present invention provides a kind of method for customizing of (SuSE) Linux OS, the party
Method includes:Cross compilation environment is set up on host system, the CPU architecture of the host system with treat structure
The CPU architecture of the linux system built is differed;Compiled for treating structure in the cross compilation environment
The basic system part of the linux system built;And be attached to the compiling completion basic system part
The server of the linux system to be built.
Preferably, the basis system for linux system to be built is compiled in the cross compilation environment
System part includes:The source code of the linux system to be built is compiled in the cross compilation environment;
And the quilt according to the linux system customized demand to be built is compiled in the cross compilation environment
The kernel option of selection.
Preferably, methods described also includes:The Linux to be built is stored on the host system
The source code and script of system.
Preferably, the base for the linux system to be built is compiled in the cross compilation environment
Plinth components of system as directed also includes:Created in the cross compilation environment and be directed to the Linux systems to be built
The configuration file of system.
Preferably, methods described also includes:The installation script of extended software is compiled on the server,
The installation script of the extended software is encoded according to the linux system customized demand to be built.
Preferably, the installation script is automatic installation script.
Preferably, the host system is the linux system based on X86.
Preferably, the server of the linux system to be built is Loongson server.
By above-mentioned technical proposal, when linux system customization is performed, the Linux of same framework is not used
System, but use cross-platform cross compile to customize linux system, base is completed in cross compilation environment
The compiling of plinth components of system as directed, can reduce the difficulty of linux system customization, and improve linux system
The efficiency of customization.
Other features and advantages of the present invention will be described in detail in subsequent specific embodiment part.
Brief description of the drawings
Accompanying drawing is, for providing a further understanding of the present invention, and to constitute the part of specification, with
Following specific embodiment is used to explain the present invention together, but is not construed as limiting the invention.
In accompanying drawing:
Fig. 1 shows the flow chart of the method for customizing of (SuSE) Linux OS provided by the present invention.
Fig. 2 shows the flow chart of Fundamentals of Compiling components of system as directed.
Specific embodiment
Specific embodiment of the invention is described in detail below in conjunction with accompanying drawing.It should be appreciated that
Specific embodiment described herein is merely to illustrate and explain the present invention, and is not limited to this hair
It is bright.
Fig. 1 shows the flow chart of the method for customizing of (SuSE) Linux OS provided by the present invention.As schemed
Shown in 1, the method for customizing of (SuSE) Linux OS provided by the present invention can include step S10~step
S30。
Step S10:Cross compilation environment is set up on host system, the CPU architecture of the host system with
The CPU architecture of linux system to be built is differed.
In the case where the linux system of the identical CPU architecture of selection is for host system, System build speed
Degree is relatively slow, customizes excessive cycle, this defect for the linux system customization of Godson 3A platforms
It is especially apparent, therefore, the linux system of identical CPU architecture is not selected in the present invention as host
System.
Preferably, the linux system based on X86-based can be selected as host system, X86-based
CPU compared with the CPU of the linux system framework of Godson 3A platforms, the CPU of X86-based
Can be higher, therefore, the compilation speed in X86 systems is very fast, and then is made from X86 systems
The customization cycle of linux system will be shortened for host system.
Here, citing, place used in the present invention are only used for from the linux system based on X86-based
Main system is not restricted to this.
After the completion of host system is chosen, user can be first in host system (for example, being based on X86-based
Linux system) on create the division, the system directory of linux system to be customized is set up, by Linux
Source code bag required for System build is placed in the catalogue, generally, the source code of linux system
Can be obtained by online download, but the present invention is not restricted to this, and user can also be by other sides
Formula obtains the source code of linux system.Then cross compilation environment is set up on host system, and is then held
Row step S20.
Step S20:The basis for linux system to be built is compiled in the cross compilation environment
Components of system as directed.
Fig. 2 shows the flow chart of Fundamentals of Compiling components of system as directed.As shown in Fig. 2 can in step S20
So that step S21 is first carried out:Linux systems are compiled in the cross compilation environment set up in step slo
The source code of system, can be by writing automatized script so that step S21 directly carries out automation compiling.
Here the automatized script write can also be stored in the system directory set up in step S10, led to
Cross the quick compiling for writing basic system part when automatized script can realize unattended.
The compiling (step S22) of kernel is performed after the completion of source code compiling in cross compilation environment, can be with
Kernel option is selected for the customized demand of linux system to be built according to user, for example, selected
The kernel option selected can include CPU operational modes, hard disk mode, Network card setup, the file of support
System etc..After determining kernel option, linux kernel is compiled, and then perform step S23.
Step S23:The configuration file for linux system to be built is created in cross compilation environment,
The configuration file can include that linux system starts required guiding file, network configuration, environmental variance
Configuration, startup script etc., just complete the compiling of basic system part after the completion of configuration file establishment,
Followed by perform step S30.
Step S30:Compiling is completed into the basic system part and is attached to the Linux systems to be built
The server of system, so far, completes the customization of linux system foundation.
Additionally, the method for customizing of (SuSE) Linux OS provided by the present invention can further include:
The installation script of extended software is compiled on the server of linux system.User can be according to to be built
Software programming installation script required for customized demand or the use demand selection of linux system, it is preferable that
The installation script can be written as automating installation script, and then extended software when realizing unattended
Quick compiling.
In the present invention, the server of linux system can be Godson 3A servers, but of the invention
It is not restricted to this.
The method for customizing of (SuSE) Linux OS provided by the present invention, using the side of cross-platform cross compile
Formula customizes linux system, and the compiling of basic system part is completed in cross compilation environment, reduces
The difficulty of linux system customization, improves the efficiency of linux system customization, and automatic by writing
Change script, it is possible to achieve the fast custom of linux system when unattended.
The preferred embodiment of the present invention is described in detail above in association with accompanying drawing, but, the present invention is not limited
Detail in above-mentioned implementation method, in range of the technology design of the invention, can be to the present invention
Technical scheme carry out various simple variants, these simple variants belong to protection scope of the present invention.
It is further to note that each particular technique described in above-mentioned specific embodiment is special
Levy, in the case of reconcilable, can be combined by any suitable means, in order to avoid need not
The repetition wanted, the present invention is no longer separately illustrated to various possible combinations.
Additionally, can also be combined between a variety of implementation methods of the invention, as long as its
Without prejudice to thought of the invention, it should equally be considered as content disclosed in this invention.
Claims (8)
1. a kind of method for customizing of (SuSE) Linux OS, it is characterised in that the method includes:
Cross compilation environment is set up on host system, the CPU architecture of the host system with it is to be built
The CPU architecture of linux system is differed;
The basic system portion for the linux system to be built is compiled in the cross compilation environment
Point;And
The service that the basic system part is attached to the linux system to be built that completes will be compiled
Device.
2. method according to claim 1, it is characterised in that in the cross compilation environment
The basic system part compiled for linux system to be built includes:
The source code of the linux system to be built is compiled in the cross compilation environment;And
The quilt according to the linux system customized demand to be built is compiled in the cross compilation environment
The kernel option of selection.
3. method according to claim 2, it is characterised in that methods described also includes:
The source code and script of the linux system to be built are stored on the host system.
4. method according to claim 2, it is characterised in that in the cross compilation environment
The basic system part compiled for the linux system to be built also includes:
The configuration file for the linux system to be built is created in the cross compilation environment.
5. method according to claim 1, it is characterised in that methods described also includes:
Compile the installation script of extended software on the server, the installation script of the extended software according to
The linux system customized demand to be built and be encoded.
6. method according to claim 5, it is characterised in that the installation script is automatic peace
Dress script.
7. method according to claim 1, it is characterised in that the host system is based on X86
The linux system of framework.
8. method according to claim 1, it is characterised in that the Linux systems to be built
The server of system is Loongson server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511000971.7A CN106919432A (en) | 2015-12-28 | 2015-12-28 | The method for customizing of (SuSE) Linux OS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511000971.7A CN106919432A (en) | 2015-12-28 | 2015-12-28 | The method for customizing of (SuSE) Linux OS |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106919432A true CN106919432A (en) | 2017-07-04 |
Family
ID=59455696
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511000971.7A Pending CN106919432A (en) | 2015-12-28 | 2015-12-28 | The method for customizing of (SuSE) Linux OS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106919432A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110825392A (en) * | 2019-10-31 | 2020-02-21 | 北京深之度科技有限公司 | Customization method, batch deployment method and batch deployment system of operating system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7533376B2 (en) * | 2004-10-12 | 2009-05-12 | Picsel (Research) Limited | Dynamic linking in constrained environment |
CN102053831A (en) * | 2010-12-10 | 2011-05-11 | 浪潮(北京)电子信息产业有限公司 | Linux operating system customizing method and system |
CN102436398A (en) * | 2011-11-15 | 2012-05-02 | 上海智翔信息科技股份有限公司 | Android transplanting system |
-
2015
- 2015-12-28 CN CN201511000971.7A patent/CN106919432A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7533376B2 (en) * | 2004-10-12 | 2009-05-12 | Picsel (Research) Limited | Dynamic linking in constrained environment |
CN102053831A (en) * | 2010-12-10 | 2011-05-11 | 浪潮(北京)电子信息产业有限公司 | Linux operating system customizing method and system |
CN102436398A (en) * | 2011-11-15 | 2012-05-02 | 上海智翔信息科技股份有限公司 | Android transplanting system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110825392A (en) * | 2019-10-31 | 2020-02-21 | 北京深之度科技有限公司 | Customization method, batch deployment method and batch deployment system of operating system |
CN110825392B (en) * | 2019-10-31 | 2023-07-04 | 中国人民解放军战略支援部队第五十六研究所 | Customization method, batch deployment method and batch deployment system of operating system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017185606A1 (en) | Overlay mechanism-based apk development method and system | |
CN107967139B (en) | Hot updating method and device for game | |
US9747084B2 (en) | Offline shader compilation | |
US20180365035A1 (en) | Method for starting embedded apparatus, and apparatus | |
CN105204873B (en) | A kind of terminal and application interface display methods | |
US20150094150A1 (en) | Operation of a browser-incompatible application within a browser | |
CN105378689B (en) | Method and apparatus for unified Extensible Firmware Interface (UEFI) driver and agreement | |
CN104991793A (en) | Method, device and system used for application program subpackage | |
US9858094B2 (en) | Monitoring and actuation of view controller parameters to reach deep states without manual developer intervention | |
EP2893441A1 (en) | Generating native code from intermediate language code for an application | |
CN106033399B (en) | PCIe equipment and PCIe bus management method and device | |
CN109324799A (en) | A kind of code compiling method, computer installation and computer readable storage medium | |
CN107463388B (en) | UEFI diskless starting method | |
US20120222010A1 (en) | Loading and Debugging Method and Debugging System Thereof | |
CN103309684A (en) | Method and device for dynamically loading application | |
CN104090765A (en) | Method and device for switching from mobile game to webgame | |
CN109558142B (en) | Method and device for transplanting open network installation environment | |
CN104615462A (en) | Cross-platform mobile application generating server side and system | |
US20190146767A1 (en) | Processor emulation using multiple translations | |
KR20170078459A (en) | IoT platform for providing program development environment for user and method of developing program for controlling IoT device | |
US20100146254A1 (en) | Method for binarizing initial script on operating system and operating method of binary script | |
CN111123737A (en) | Digital hardware virtual simulation system | |
US20180136939A1 (en) | Efficient booting system | |
CN104461623A (en) | Method and device for running application program | |
CN106919432A (en) | The method for customizing of (SuSE) Linux OS |
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: 20170704 |