CN104572238A - Method and system for generating executable software package efficiently - Google Patents

Method and system for generating executable software package efficiently Download PDF

Info

Publication number
CN104572238A
CN104572238A CN201510035050.8A CN201510035050A CN104572238A CN 104572238 A CN104572238 A CN 104572238A CN 201510035050 A CN201510035050 A CN 201510035050A CN 104572238 A CN104572238 A CN 104572238A
Authority
CN
China
Prior art keywords
file
executable
board
software package
shell script
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
Application number
CN201510035050.8A
Other languages
Chinese (zh)
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.)
Fiberhome Telecommunication Technologies Co Ltd
Wuhan Fiberhome Technical Services Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201510035050.8A priority Critical patent/CN104572238A/en
Publication of CN104572238A publication Critical patent/CN104572238A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a system for generating an executable software package efficiently and relates to the field of multi-document multi-layer and multi-catalogue structures under the Linux system. The method includes the following steps: S1 carding and integrating operation information required by board cards to be used, compiling and generating an executable document through a make tool according to the operation information in the Shell script document; S2 inputting board card names of the board cards to be used in the script document as the parameter value, defining the corresponding macro in the Shell script document according to the board card names, wherein different board card names correspond to different macros, and enabling the Shell script document to execute the executable document with the macro as the basis; S3 all executable documents, operation documents required by the executable documents and software and hardware information of the board card are packaged to form the final executable execution soft package. By means of the method and the system, the working efficiency and the working progress and accuracy can be improved, the board cards of different types can be supported, and the method and the system are wide in application range and facilitate transplanting.

Description

A kind of efficient generation can the method and system of software package executable
Technical field
The present invention relates to the multi-level bibliographic structure field of multifile under linux system, being specifically related to a kind of efficient generation can the method and system of software package executable.
Background technology
At present, under linux system under the multi-level bibliographic structure of multifile, general need artificial software source codes are compiled generation can software package executable, there is following defect:
(1) not only work efficiency is lower in manual operation, and easily occurs misoperation, and job schedule is lower.
(2) what at present compiling generated the method for software package executable can only correspond to the board of a type, and the scope of application is more single, is not easy to transplant.
Summary of the invention
For the defect existed in prior art, the object of the present invention is to provide a kind of efficient generation can the method and system of software package executable, the present invention effectively can reduce that generate can time needed for software package executable, increasing work efficiency, without the need to carrying out manual operations, not easily occurring misoperation, not only while saving human resources, improve operating accuracy, and dissimilar board can be supported, the scope of application is relatively more extensive, convenient transplanting.
For reaching above object, efficient generation provided by the invention can the method for software package executable, comprises the following steps:
S1: all operations information needed for board that combing integrated needs use, according to operation information in Shell script file, generates executable file by the compiling of make instrument, forwards step S2 to;
S2: input needs the board name of the board used as parameter value in Shell script file, grand accordingly according to the definition of board name in Shell script file, the corresponding grand difference of different board name; Shell script file is according to performing executable file, forwarding step S3 to grand;
S3: the operating file of all executable files, all executable files needs and the software and hardware Information Compression packing of board are formed final software package executable.
On the basis of technique scheme, step S1 specifically comprises the following steps:
S101: the compiling information that in data board card software source code, all module compiles need, forwards step S102 to;
S102: according to the logical relation of modules all in source code, carries out combing compiling sequence to module used, forwards step S103 to;
S103: write Shell script file, performs the compiler task of each module successively in Shell script file according to the order of sequence, form executable file.
On the basis of technique scheme, compile described in step S101 the subcommand of all modules in packets of information rubbing board card software source code, the position of son file and and son file executive mode; Compiler task described in step S103 comprises compiling subcommand and compiling son file.
On the basis of technique scheme, in Shell script file, perform the compiler task of each module successively according to the order of sequence described in step S103, specifically comprise the following steps: after Shell script file often performs the compiler task of a module, the process record file generated by current compiler task redirects to temporary file temp; After all process record files redirect to temp, from temp, screening zone has the process record file of keyword to final process record file.
On the basis of technique scheme, the keyword in step S103 is " Error " and " Warning ".
On the basis of technique scheme, when performing compiler task in step S103, if there is mistake, according to the wrong rreturn value misprint log file of Shell script file, compulsory withdrawal, terminates.
On the basis of technique scheme, step S3 specifically comprises the following steps: for each board sets up corresponding configuration file, records the software and hardware information of board in configuration file; All executable files, the operating file of all executable files needs and the software and hardware information of board is compressed by tool of compression; Read the information of the configuration file of each board, generate and support that specified panel card carries out the boot files of online upgrading.
On the basis of technique scheme, operating file described in step S3 comprises dynamic base, public library and platform file.
On the basis of technique scheme, the reel number of the software and hardware packets of information rubbing board card of board described in step S3, plate number, software version number and Starting mode.
The efficient generation realizing said method provided by the invention can the system of software package executable, comprises executable file generation module, executable file execution module and software package executable generation module;
Described executable file generation module is used for: all operations information needed for board that combing integrated needs use, according to operation information in Shell script file, generate executable file by the compiling of make instrument, send executive signal to executable file execution module;
Described executable file execution module is used for: after receiving executive signal, in Shell script file, input needs the board name of the board used as parameter value, grand accordingly according to the definition of board name in Shell script file, the corresponding grand difference of different board name; Shell script file is according to performing executable file with grand, sends generate signal to software package executable generation module;
Described software package executable generation module is used for: the software and hardware Information Compression packing of the operating file of all executable files, all executable file needs and board is formed final software package executable.
Compared with prior art, the invention has the advantages that:
(1) Shell script of the present invention can (compress compressed file and BMU public library etc. further in the compiling (generation executable file) of one-key operation source code, compression (compressing the file of dynamic base comprised needed for this executable file and link) and packing, final generation can be used for the final software package of online upgrading), effectively can not only reduce that generate can time needed for software package executable, increase work efficiency, and without the need to carrying out manual operations, not easily there is misoperation, while saving human resources, improve operating accuracy.
(2) the present invention is provided with the parameter value representing board name in Shell script file, the readability of Shell script is comparatively strong, can pass through the parameter value of simple modification, increase or deleted representation board name, and then support dissimilar board, the scope of application is relatively more extensive, convenient transplanting.
(3) the present invention all can independently exist in compiling, compression and packing, and level is relatively clearly more demarcated, is convenient to exploitation and safeguards.
Embodiment
Below in conjunction with embodiment, the present invention is described in further detail.
Efficient generation in the embodiment of the present invention can the method for software package executable, gets based on following software:
Make instrument: a very important compiler directive.Because source code has resolved into multiple module being easy to manage by bibliographic structure, each module comprises hundreds of and arrives thousands of source files, utilizes make and makefile instrument can make the mutual relationship of numerous and complicated between each source file in module brevity and lucidity in order and compile.
Shell script: a kind of user of providing uses the software (command analysis device) at interface, is good at system management tasks especially, can makes a large amount of task automations, be particularly useful for ease for use, maintainable, the prior task of portability specific efficiency.
Efficient generation in the embodiment of the present invention can the method for software package executable, comprises the following steps:
S1: all operations information needed for board that combing integrated needs use, according to operation information in Shell script file, generates executable file by the compiling of make instrument, forwards step S2 to.
S2: input needs the board name of the board used as parameter value in Shell script file, grand accordingly according to the definition of board name in Shell script file.The corresponding grand difference of different board names.Shell script file is according to performing executable file, forwarding step S3 to grand.
S3: the operating file of all executable files, all executable files needs and the software and hardware Information Compression packing of board are formed final software package executable.
Step S1 specifically comprises the following steps:
S101: the compiling information that in data board card software source code, all module compiles need, forwards step S102 to.
S102: according to the logical relation of modules all in source code, carries out combing compiling sequence to module used, forwards step S103 to.
S103: write Shell script file, performs the compiler task of each module successively in Shell script file according to the order of sequence, form executable file.
The subcommand of all modules, the position of son file and and son file executive mode in compiling packets of information rubbing board card software source code in step S101.
Compiler task in step S103 comprises compiling subcommand and compiling son file.
In Shell script file, perform the compiler task of each module successively according to the order of sequence in step S103, specifically comprise the following steps: after Shell script file often performs the compiler task of a module, the process record file generated by current compiler task redirects to temp (temporary file), after all process record files redirect to temp, from temp, screening zone has the process record file of keyword to final process record file.
Keyword in step S103 is " Error " and " Warning ".
When performing compiler task in step S103, if there is mistake, according to the wrong rreturn value misprint log file of Shell script file, compulsory withdrawal, terminates.
Step S3 specifically comprises the following steps:
For each board sets up corresponding configuration file, in configuration file, record the software and hardware information of board.All executable files, the operating file of all executable files needs and the software and hardware information of board is compressed by tool of compression; Read the information of the configuration file of each board, generate and support that specified panel card carries out the boot files of online upgrading, and then make the online upgrade function of software package support.
Operating file in step S3 comprises dynamic base, public library and platform file; The reel number of the software and hardware packets of information rubbing board card of board in step S3, plate number, software version number and Starting mode.
The efficient generation realizing said method in the embodiment of the present invention can the system of software package executable, comprises executable file generation module, executable file execution module and software package executable generation module.
Executable file generation module is used for: all operations information needed for board that combing integrated needs use, according to operation information in Shell script file, generate executable file by the compiling of make instrument, send executive signal to executable file execution module.
Executable file execution module is used for: after receiving executive signal, and in Shell script file, input needs the board name of the board used as parameter value, grand accordingly according to the definition of board name in Shell script file, the corresponding grand difference of different board name; Shell script file is according to performing executable file with grand, sends generate signal to software package executable generation module.
Software package executable generation module is used for: the software and hardware Information Compression packing of the operating file of all executable files, all executable file needs and board is formed final software package executable.
The present invention is not limited to above-mentioned embodiment, and for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also considered as within protection scope of the present invention.The content be not described in detail in this instructions belongs to the known prior art of professional and technical personnel in the field.

Claims (10)

1. generating efficiently can the method for software package executable, it is characterized in that, comprises the following steps:
S1: all operations information needed for board that combing integrated needs use, according to operation information in Shell script file, generates executable file by the compiling of make instrument, forwards step S2 to;
S2: input needs the board name of the board used as parameter value in Shell script file, grand accordingly according to the definition of board name in Shell script file, the corresponding grand difference of different board name; Shell script file is according to performing executable file, forwarding step S3 to grand;
S3: the operating file of all executable files, all executable files needs and the software and hardware Information Compression packing of board are formed final software package executable.
2. as claimed in claim 1 generation efficiently can the method for software package executable, and it is characterized in that, step S1 specifically comprises the following steps:
S101: the compiling information that in data board card software source code, all module compiles need, forwards step S102 to;
S102: according to the logical relation of modules all in source code, carries out combing compiling sequence to module used, forwards step S103 to;
S103: write Shell script file, performs the compiler task of each module successively in Shell script file according to the order of sequence, form executable file.
3. as claimed in claim 2 generation efficiently can the method for software package executable, it is characterized in that: compile described in step S101 the subcommand of all modules in packets of information rubbing board card software source code, the position of son file and and son file executive mode; Compiler task described in step S103 comprises compiling subcommand and compiling son file.
4. as claimed in claim 2 generation efficiently can the method for software package executable, it is characterized in that: the compiler task performing each module described in step S103 in Shell script file according to the order of sequence successively, specifically comprise the following steps: after Shell script file often performs the compiler task of a module, the process record file generated by current compiler task redirects to temporary file temp; After all process record files redirect to temp, from temp, screening zone has the process record file of keyword to final process record file.
5. as claimed in claim 4 generation efficiently can the method for software package executable, it is characterized in that: the keyword in step S103 is " Error " and " Warning ".
6. the efficient generation as described in claim 2 or 4 can the method for software package executable, it is characterized in that: when performing compiler task in step S103, if there is mistake, according to the wrong rreturn value misprint log file of Shell script file, compulsory withdrawal, terminates.
7. the efficient generation as described in any one of claim 1 to 5 can the method for software package executable, and it is characterized in that, step S3 specifically comprises the following steps: for each board sets up corresponding configuration file, records the software and hardware information of board in configuration file; All executable files, the operating file of all executable files needs and the software and hardware information of board is compressed by tool of compression; Read the information of the configuration file of each board, generate and support that specified panel card carries out the boot files of online upgrading.
8. the efficient generation as described in any one of claim 1 to 5 can the method for software package executable, it is characterized in that: operating file described in step S3 comprises dynamic base, public library and platform file.
9. the efficient generation as described in any one of claim 1 to 5 can the method for software package executable, it is characterized in that: the reel number of the software and hardware packets of information rubbing board card of board described in step S3, plate number, software version number and Starting mode.
10. the efficient generation realizing method described in any one of claim 1 to 9 can the system of software package executable, it is characterized in that: comprise executable file generation module, executable file execution module and software package executable generation module;
Described executable file generation module is used for: all operations information needed for board that combing integrated needs use, according to operation information in Shell script file, generate executable file by the compiling of make instrument, send executive signal to executable file execution module;
Described executable file execution module is used for: after receiving executive signal, in Shell script file, input needs the board name of the board used as parameter value, grand accordingly according to the definition of board name in Shell script file, the corresponding grand difference of different board name; Shell script file is according to performing executable file with grand, sends generate signal to software package executable generation module;
Described software package executable generation module is used for: the software and hardware Information Compression packing of the operating file of all executable files, all executable file needs and board is formed final software package executable.
CN201510035050.8A 2015-01-23 2015-01-23 Method and system for generating executable software package efficiently Pending CN104572238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510035050.8A CN104572238A (en) 2015-01-23 2015-01-23 Method and system for generating executable software package efficiently

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510035050.8A CN104572238A (en) 2015-01-23 2015-01-23 Method and system for generating executable software package efficiently

Publications (1)

Publication Number Publication Date
CN104572238A true CN104572238A (en) 2015-04-29

Family

ID=53088395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510035050.8A Pending CN104572238A (en) 2015-01-23 2015-01-23 Method and system for generating executable software package efficiently

Country Status (1)

Country Link
CN (1) CN104572238A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765618A (en) * 2015-05-06 2015-07-08 山东中孚信息产业股份有限公司 Manufacturing method and decompression installation method of Linux system self-decompression installation packet
CN106484488A (en) * 2015-08-31 2017-03-08 深圳市金锐显数码科技有限公司 Integrated cloud compilation method and system
CN107133043A (en) * 2017-05-04 2017-09-05 山东浪潮云服务信息科技有限公司 Web project packaging method and device based on domestic CPU and operating system
CN105068832B (en) * 2015-07-30 2018-06-01 北京奇虎科技有限公司 A kind of method and apparatus for generating executable file
CN110007923A (en) * 2019-03-28 2019-07-12 深圳市创联时代科技有限公司 A kind of implementation method of shell
CN112181857A (en) * 2020-11-06 2021-01-05 无锡江南计算技术研究所 Cross-processor Linux software to be migrated positioning and evaluating method
CN112214255A (en) * 2020-09-29 2021-01-12 上海上讯信息技术股份有限公司 Method and equipment for calling executable program with parameters
CN116661904A (en) * 2023-07-27 2023-08-29 中电科申泰信息科技有限公司 Device and method for packaging AppImage application software based on Shenwei platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070011494A1 (en) * 2005-06-21 2007-01-11 International Business Machines Corporation System and method for building software package for embedded system
CN101694624A (en) * 2009-10-19 2010-04-14 中兴通讯股份有限公司 Method for processing compact disc image files of software installation package and device
CN101697135A (en) * 2009-10-28 2010-04-21 北京东方网力科技有限公司 Method and device for compiling program
CN104123381A (en) * 2014-08-01 2014-10-29 武汉邮电科学研究院 Automatic matching method of hardware board card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070011494A1 (en) * 2005-06-21 2007-01-11 International Business Machines Corporation System and method for building software package for embedded system
CN101694624A (en) * 2009-10-19 2010-04-14 中兴通讯股份有限公司 Method for processing compact disc image files of software installation package and device
CN101697135A (en) * 2009-10-28 2010-04-21 北京东方网力科技有限公司 Method and device for compiling program
CN104123381A (en) * 2014-08-01 2014-10-29 武汉邮电科学研究院 Automatic matching method of hardware board card

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765618B (en) * 2015-05-06 2017-12-08 中孚信息股份有限公司 A kind of making of linux system self-extracting installation kit and decompression installation method
CN104765618A (en) * 2015-05-06 2015-07-08 山东中孚信息产业股份有限公司 Manufacturing method and decompression installation method of Linux system self-decompression installation packet
CN105068832B (en) * 2015-07-30 2018-06-01 北京奇虎科技有限公司 A kind of method and apparatus for generating executable file
CN106484488B (en) * 2015-08-31 2019-09-03 深圳市金锐显数码科技有限公司 Integrated cloud Compilation Method and system
CN106484488A (en) * 2015-08-31 2017-03-08 深圳市金锐显数码科技有限公司 Integrated cloud compilation method and system
CN107133043A (en) * 2017-05-04 2017-09-05 山东浪潮云服务信息科技有限公司 Web project packaging method and device based on domestic CPU and operating system
CN110007923A (en) * 2019-03-28 2019-07-12 深圳市创联时代科技有限公司 A kind of implementation method of shell
CN110007923B (en) * 2019-03-28 2022-12-06 深圳市创联时代科技有限公司 Shell implementation method
CN112214255A (en) * 2020-09-29 2021-01-12 上海上讯信息技术股份有限公司 Method and equipment for calling executable program with parameters
CN112181857A (en) * 2020-11-06 2021-01-05 无锡江南计算技术研究所 Cross-processor Linux software to be migrated positioning and evaluating method
CN112181857B (en) * 2020-11-06 2022-10-04 无锡江南计算技术研究所 Cross-processor Linux software to be migrated positioning and evaluating method
CN116661904A (en) * 2023-07-27 2023-08-29 中电科申泰信息科技有限公司 Device and method for packaging AppImage application software based on Shenwei platform
CN116661904B (en) * 2023-07-27 2023-10-13 中电科申泰信息科技有限公司 Device and method for packaging AppImage application software based on Shenwei platform

Similar Documents

Publication Publication Date Title
CN104572238A (en) Method and system for generating executable software package efficiently
Kolb et al. A case study in refactoring a legacy component for reuse in a product line
CN105117233A (en) API calling method and device
EP2498178A1 (en) Method and device for development environment converting
CN101866315B (en) Test method and system of software development tool
US8621429B2 (en) Software development support apparatus, function extension method and storage medium for storing function extension program
CN101996131A (en) Automatic test method and automatic test platform for graphic user interface (GUI) based on x extensive makeup language (XML) packaging key word
CN102289378A (en) Method for automatically generating APP (Application)
Rocha et al. Function merging by sequence alignment
CN103902456A (en) Test script processing device, system and method
US20110126179A1 (en) Method and System for Dynamic Patching Software Using Source Code
Kolb et al. Refactoring a legacy component for reuse in a software product line: a case study
CN108595187A (en) Method, device and the storage medium of Android installation kit integrated software development kit
US9535687B2 (en) Audited builds based upon separate class dependency records
JP2017535887A (en) Computer-executable model reverse engineering method and apparatus
US11669332B1 (en) Systems and methods for modernizing legacy applications
CN109918075A (en) Utilize the SDK packaging method, packing plug-in unit and corresponding terminal for being packaged plug-in unit
CN111209001A (en) Method, system, equipment and medium for batch generation of APKs of android channels
CN106293687A (en) The control method of a kind of flow process of packing, and device
CN111399810A (en) iOS application program dynamic componentization development method, system and equipment thereof
CN112527312B (en) Test method and test device for embedded system
CN102819445B (en) Quick transplanting method of comprehensive software of transformer substation on embedded system hardware platform
US9396239B2 (en) Compiling method, storage medium and compiling apparatus
US20160364221A1 (en) Source code generation device, source code generation method, and recording medium
KR100990091B1 (en) Method and apparatus for the requirement management

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180323

Address after: 430074 Wuhan, Hongshan Province District Road, Department of mail, No. 88 hospital

Applicant after: Fenghuo Communication Science &. Technology Co., Ltd.

Applicant after: WUHAN FIBERHOME TECHNICAL SERVICES CO., LTD.

Address before: China Science and Technology Park Dongxin road East Lake Development Zone 430074 Hubei Province, Wuhan City, No. 5

Applicant before: Fenghuo Communication Science &. Technology Co., Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20150429

RJ01 Rejection of invention patent application after publication