CN106250120A - A kind of Compilation Method of system based on high-pass platform - Google Patents
A kind of Compilation Method of system based on high-pass platform Download PDFInfo
- Publication number
- CN106250120A CN106250120A CN201610582272.6A CN201610582272A CN106250120A CN 106250120 A CN106250120 A CN 106250120A CN 201610582272 A CN201610582272 A CN 201610582272A CN 106250120 A CN106250120 A CN 106250120A
- Authority
- CN
- China
- Prior art keywords
- module
- compiling
- source file
- dll
- system source
- 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/30—Creation or generation of source code
-
- 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/44—Encoding
- G06F8/447—Target code generation
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 invention provides the Compilation Method of a kind of system based on high-pass platform, it is characterised in that providing a compiler server, server provides a translation and compiling environment;Further comprising the steps of: step S1, to be obtained a system source file including multiple subsystem by described service end, and described system source file is loaded onto in the described translation and compiling environment of described server;Step S2, described service end carry out independent compilation to each described subsystem;Multiple described subsystem in step S3, described system source file, after compiling successfully, is packaged forming an aims of systems file to compiling successful described system source file.Having the beneficial effects that of its technical scheme, can carry out independent compilation to the subsystem in system source file, and translation and compiling environment separates with system source file and makes compiling in hgher efficiency, overcomes compiling system in prior art and operates complicated and compile inefficient defect.
Description
Technical field
The present invention relates to communication technical field, particularly relate to the Compilation Method of a kind of system based on high-pass platform.
Background technology
For the chip of high-pass platform, need to be compiled realizing the function of wireless routing, existing existence to its system
The system of chip is compiled by two kinds of System build modes, and the first provides compiling chain to be compiled by compilation tool, and
Wireless driving by chip incorporates the system of chip;The system of chip is entered by another kind of use opennwrt system source file structure
Row compiling, two kinds of above-mentioned compiling modes are respectively present following defect:
The first compiles mode, and system code framework is clear not, and the driving code that great majority are conventional is blended in kernel, and
Cross compile chain does not separate with system code, and therefore compilation operations is complicated, and between system, the degree of coupling is high, and maintenance cost is relatively
High;
Another kind of compiling mode.Compiler framework overcomplicated, and System build is slow, compiles inefficient.
Summary of the invention
The problems referred to above existed for compiling system in prior art, now provide a kind of and are intended to the son in system source file
System carries out the Compilation Method that separately independent compilation improves the system based on high-pass platform of compiling efficiency.
Concrete technical scheme is as follows:
The Compilation Method of a kind of system based on high-pass platform, it is characterised in that provide a compiler server, described server to carry
For a translation and compiling environment;
Further comprising the steps of:
Step S1, obtained a system source file including multiple subsystem by described service end, and by described system source file
It is loaded onto in the described translation and compiling environment of described server;
The each described subsystem of step S2, described service end carries out independent compilation;
Multiple described subsystem in step S3, described system source file is after compiling successfully, to compiling successful described system
Source file is packaged forming an aims of systems file.
Preferably, described compiler server is compiler server based on (SuSE) Linux OS.
Preferably, described translation and compiling environment is by providing a compilation tool to generate in described service end.
Preferably, described compilation tool is buildroot instrument.
Preferably, described rootfs root file unit includes, driver module, WiFi module, data plane module, application journey
Sequence module.
Preferably, the driving of described driver module, the driving of described WiFi module, described data plane module driving with
And described being driven through of application program module isolate and preserve to described rootfs root in described kernel kernel unit
File unit.
Preferably, described server provides a compiling template, in order to respectively to described driver module, described WiFi mould
Block, described data plane module, described application program module are compiled.
Preferably,
Described driver module provides one first DLL, loads described driver module by described first DLL
Drive, and/or
Described WiFi module provides one second DLL, loads driving of described WiFi module by described second DLL
Dynamic, and/or
Described data plane module provides one the 3rd DLL, loads described data plane module by described 3rd DLL
Drive, and/or
Described application program module provides one the 4th DLL, loads described application program mould by described 4th DLL
The driving of block.
Preferably, described system source file is based on mips system source file, wherein mips system source file be based on
Unix exploitation obtains.
Technique scheme has the advantage that or beneficial effect: the subsystem in system source file can be carried out independence
Compile, and translation and compiling environment separates with system source file and makes compiling in hgher efficiency, overcome compiling system operation in prior art multiple
Miscellaneous and compile inefficient defect.
Accompanying drawing explanation
With reference to appended accompanying drawing, more fully to describe embodiments of the invention.But, appended accompanying drawing be merely to illustrate and
Illustrate, be not intended that limitation of the scope of the invention.
Fig. 1 is the flow chart of the Compilation Method embodiment of a kind of system based on high-pass platform of the present invention;
Fig. 2 is the structural representation of the embodiment of the system source file of the present invention.
In description above, reference represents:
(1), boot start unit;(2), kernel kernel program;(3), rootfs root file unit;(31), driver module;
(32), WiFi module;(33), data plane module;(34) application program module.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of not making creative work all its
His embodiment, broadly falls into the scope of protection of the invention.
It should be noted that in the case of not conflicting, the embodiment in the present invention and the feature in embodiment can phases
Combination mutually.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
The present invention includes the Compilation Method of a kind of system based on high-pass platform.
The Compilation Method of a kind of system based on high-pass platform is embodiment, wherein, it is provided that a compiler server, and service
Device provides a translation and compiling environment;
Further comprising the steps of:
Step S1, obtained a system source file including multiple subsystem by service end, and system source file is loaded onto clothes
In the translation and compiling environment of business device;
Step S2, service end carry out independent compilation to each subsystem;
Multiple subsystems in step S3, system source file, after compiling successfully, are carried out compiling successful system source file
Encapsulation is to form an aims of systems file.
Existing in compiling system source file, mainly system original is compiled, and this compiling mode is not only
The degree of coupling between system is high and compilation speed is slow so that the compiling to system source file is inefficient;
In technique scheme, for existing, system source file is compiled the inefficient and defect of compiling inconvenience, pass through
The translation and compiling environment built in compiler server, is compiled the system source file of loading.Wherein system source file includes many
Individual subsystem, by above-mentioned multiple subsystems are carried out independent compilation, therefore the degree of coupling between subsystems is relatively low, subtracts
Lack maintenance cost, the subsystem in system source file has separately been compiled the efficiency that improve compiling, to system simultaneously
Compiled system source file can be packaged after compiling successfully forming aims of systems file, system by the subsystem in source file
File destination can be by relevant write instrument write embedded device, to realize the work of embedded device.
In one preferably embodiment, compiler server is compiler server based on (SuSE) Linux OS.
In one preferably embodiment, translation and compiling environment generates, preferably by providing a compilation tool in service end
Compilation tool be buildroot instrument.
In technique scheme, the system source file for embedded device is compiled, the compiling service therefore provided
Device is based on (SuSE) Linux OS, and wherein translation and compiling environment can be compiled building, in volume by compilation tool i.e. buildroot instrument
After translating environmental structure success, can be loaded by server and need the system source file of compiling to be compiled, wherein in compilation process,
Subsystem in system source file is carried out separately independent compilation.
In one preferably embodiment, subsystem includes, boot start unit 1, kernel kernel program 2,
Rootfs root file unit 3.
In technique scheme, as in figure 2 it is shown, the subsystem in above-mentioned system source file can include boot start unit
1, kernel kernel program 2, rootfs root file unit 3;
Wherein boot start unit 1, in order to guide the start unit of system;
Kernel kernel program 2, for the core of operating system;
Rootfs root file unit 3, is first file system of kernel startup time institute mount, and kernel code image file is protected
Exist in root file unit, and System guides start unit can be therefrom basic initial some after root file unit carry
Change script and service etc. are loaded in internal memory goes to run.
In one preferably embodiment, can in the rootfs root file unit 3 extracted from kernel kernel unit
Including, driver module 31, WiFi module 32, data plane module 33, application program module 34, and then can be to driver module
31, WiFi module 32, data plane module 33, application program module 34 carry out separately independent compilation.
In one preferably embodiment, the driving of driver module 31, the driving of WiFi module 32, data plane module
Driving and being driven through of application program module 34 of 33 are isolated in kernel kernel unit and are preserved to rootfs root
File unit 3.
In one preferably embodiment, server provide one compiling template, in order to respectively to driver module 31,
WiFi module 32, data plane module 33, application program module 34 are compiled.
In technique scheme, above-mentioned rootfs root file unit 3 can include driver module 31, WiFi module 32,
Data plane module 33, application program module 34, and service end is by providing a compiling template wherein to compile template in order to ibid
The driver module 31 stated, WiFi module 32, data plane module 33, application program module 34, be compiled.
In one preferably embodiment,
Driver module 31 provides one first DLL, is loaded the driving of driver module 31 by the first DLL;
In one preferably embodiment,
WiFi module 32 provides one second DLL, is loaded the driving of WiFi module 32 by the second DLL.
In one preferably embodiment,
Data plane module 33 provides one the 3rd DLL, by the driving of the 3rd DLL loading data face mould block 33.
In one preferably embodiment,
Application program module 34 provides one the 4th DLL, by driving of the 4th DLL loading application programs module 34
Dynamic.
Driver module 31WiFi module 32 data plane module 33 application program module 34driver module 31WiFi module
32 data plane module 33 application program modules 34
Driver module 31 in the system source file for distinct device, rootfs root file unit 3 therein, WiFi mould
Block 32, data plane module 33, application program module 34, the driver deployment of its correspondence can be different;
In technique scheme, the above-mentioned driver module 31 in rootfs root file unit 3, WiFi module 32, data surface
Module 33, application program module 34 are provided which a DLL, and the most each module passes through its DLL to load its module
Corresponding driver, to realize the configuration to above-mentioned module, and driver module 31 in the system source file to peripheral hardware,
When WiFi module 32, data plane module 33, application program module 34 configure accordingly, it is only necessary to change the driving of its correspondence
Program, improves the efficiency of configuration.
In one preferably embodiment, system source file is based on mips system source file.
In a particular embodiment, system source file is compiled inefficient for existing and compile inconvenient defect,
By the translation and compiling environment built in compiler server, the system source file of loading is compiled.Wherein system source file wraps
Including multiple subsystem, by above-mentioned multiple subsystems, wherein subsystem can include boot start unit 1, kernel kernel
Program 2, rootfs root file unit 3, carry out independent compilation, and therefore the degree of coupling between subsystems is relatively low, decreases dimension
Protect cost, the subsystem in system source file is carried out independent compilation simultaneously and improves the efficiency of compiling, and at rootfs root literary composition
In part unit 3, the module in rootfs root file unit 3 is included driver module 31, WiFi module 32, data plane module
33, application program module 34, are compiled by the collector unification provided, to reduce the workload of compiling, and to above-mentioned
Module in driver module 31, WiFi module 32, data plane module 33, application program module 34 provide a programming to connect respectively
Mouthful, in order to load driver corresponding to above-mentioned module to complete the configuration to above-mentioned module, to the son in system source file
Can be packaged compiled system source file forming aims of systems file after System build success, aims of systems file can lead to
Cross in relevant write instrument write embedded device, to realize the work of embedded device.
The foregoing is only preferred embodiment of the present invention, not thereby limit embodiments of the present invention and protection model
Enclose, to those skilled in the art, it should can appreciate that done by all utilization description of the invention and diagramatic content
Scheme obtained by equivalent and obvious change, all should be included in protection scope of the present invention.
Claims (10)
1. the Compilation Method of a system based on high-pass platform a, it is characterised in that compiler server, described server are provided
One translation and compiling environment is provided;
Further comprising the steps of:
Step S1, obtained a system source file including multiple subsystem by described service end, and by described system source file
It is loaded onto in the described translation and compiling environment of described server;
Step S2, described service end carry out independent compilation to each described subsystem;
Multiple described subsystem in step S3, described system source file is after compiling successfully, to compiling successful described system
Source file is packaged forming an aims of systems file.
System build method based on high-pass platform the most according to claim 1, it is characterised in that described compiler server
For compiler server based on (SuSE) Linux OS.
System build method based on high-pass platform the most according to claim 1, it is characterised in that described translation and compiling environment leads to
The most described service end provide a compilation tool generate.
System build method based on high-pass platform the most according to claim 3, it is characterised in that described compilation tool is
Buildroot instrument.
System build method based on high-pass platform the most according to claim 1, it is characterised in that described subsystem bag
Include, boot start unit, kernel kernel unit, rootfs root file unit.
System build method based on high-pass platform the most according to claim 5, it is characterised in that described rootfs root literary composition
Part unit includes, driver module, WiFi module, data plane module, application program module.
System build method based on high-pass platform the most according to claim 6, it is characterised in that described driver module
Being driven through of driving, the driving of described WiFi module, the driving of described data plane module and described application program module
Isolate and preserve in described kernel kernel unit to described rootfs root file unit.
System build method based on high-pass platform the most according to claim 6, it is characterised in that described server provides
One compiling template, in order to respectively to described driver module, described WiFi module, described data plane module, described application program
Module is compiled.
System build method based on high-pass platform the most according to claim 6, it is characterised in that described driver module
One first DLL is provided, is loaded the driving of described driver module by described first DLL, and/or
Described WiFi module provides one second DLL, loads driving of described WiFi module by described second DLL
Dynamic, and/or
Described data plane module provides one the 3rd DLL, loads described data plane module by described 3rd DLL
Drive, and/or
Described application program module provides one the 4th DLL, loads described application program mould by described 4th DLL
The driving of block.
System build method based on high-pass platform the most according to claim 1, it is characterised in that described system source document
Part is based on mips system source file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610582272.6A CN106250120A (en) | 2016-07-22 | 2016-07-22 | A kind of Compilation Method of system based on high-pass platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610582272.6A CN106250120A (en) | 2016-07-22 | 2016-07-22 | A kind of Compilation Method of system based on high-pass platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106250120A true CN106250120A (en) | 2016-12-21 |
Family
ID=57603968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610582272.6A Pending CN106250120A (en) | 2016-07-22 | 2016-07-22 | A kind of Compilation Method of system based on high-pass platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106250120A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110851138A (en) * | 2019-11-06 | 2020-02-28 | 山东超越数控电子股份有限公司 | BMC software development method for separating kernel and application |
CN116737174A (en) * | 2023-08-15 | 2023-09-12 | 中国兵器装备集团兵器装备研究所 | Automatic subsystem generating tool and method based on open source hong Meng system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591661A (en) * | 2011-12-30 | 2012-07-18 | 苏州汉清投资管理有限公司 | System for realizing software integration |
CN105653287A (en) * | 2015-12-31 | 2016-06-08 | 北京元心科技有限公司 | Automatic program version issuing method and device |
-
2016
- 2016-07-22 CN CN201610582272.6A patent/CN106250120A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591661A (en) * | 2011-12-30 | 2012-07-18 | 苏州汉清投资管理有限公司 | System for realizing software integration |
CN105653287A (en) * | 2015-12-31 | 2016-06-08 | 北京元心科技有限公司 | Automatic program version issuing method and device |
Non-Patent Citations (1)
Title |
---|
DOUG ABBOTT: "《Linux for Embedded and Real-time Applications》", 31 December 2013 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110851138A (en) * | 2019-11-06 | 2020-02-28 | 山东超越数控电子股份有限公司 | BMC software development method for separating kernel and application |
CN116737174A (en) * | 2023-08-15 | 2023-09-12 | 中国兵器装备集团兵器装备研究所 | Automatic subsystem generating tool and method based on open source hong Meng system |
CN116737174B (en) * | 2023-08-15 | 2023-11-14 | 中国兵器装备集团兵器装备研究所 | Automatic subsystem generating tool and method based on open source hong Meng system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6122493B2 (en) | Adaptively portable library | |
CN103677921B (en) | Method and system for enabling Android system to be compatible with wifi chip | |
CN103718159B (en) | Image processing software development approach, image processing software development device | |
CN103942078A (en) | Method for loading driver and embedded device | |
WO2005111801A3 (en) | Apparatus and method for improving emulation speed of high-level languages in on-chip emulation systems | |
CN113076115B (en) | Basic software packaging method based on domestic platform | |
CN108829465B (en) | Local dynamic loading system and method based on direct read-write FLASH | |
CN109992517A (en) | Firmware module adjustment method and system based on UEFI | |
CN104899138A (en) | Method for multiplexing C program test vectors in UVM verification environment | |
CN106020921A (en) | Peripheral application transplantation method and system | |
CN106648758A (en) | Multi-core processor BOOT starting system and method | |
CN101030241A (en) | Method and system based on Keil C51 software protecting development | |
CN102004662A (en) | Embedded scalable virtual machine | |
CN103984558A (en) | Automatic construction device and method for Web item | |
CN112487092B (en) | Intelligent contract calling method and device based on blockchain | |
CN106250120A (en) | A kind of Compilation Method of system based on high-pass platform | |
CN103488517A (en) | PHP code compiling method and device and PHP code running method and device | |
CN103645888A (en) | System and method for automatically building operation system | |
CN103530165B (en) | A kind of java solution that is applied to Internet of Things industry | |
CN106970787A (en) | A kind of automobile controller rapid prototyping implementation method | |
CN103560934A (en) | Power line modem production testing method and device | |
US20170052765A1 (en) | Method and system for creating app | |
CN114490023A (en) | High-energy physical calculable storage device based on ARM and FPGA | |
CN102141915B (en) | Equipment real-time control method based on RTLinux | |
CN104850015B (en) | A kind of software packaging method and a kind of automobile electronic controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20161221 |