CN110209396B - One-to-many software version control system and method - Google Patents

One-to-many software version control system and method Download PDF

Info

Publication number
CN110209396B
CN110209396B CN201910455225.9A CN201910455225A CN110209396B CN 110209396 B CN110209396 B CN 110209396B CN 201910455225 A CN201910455225 A CN 201910455225A CN 110209396 B CN110209396 B CN 110209396B
Authority
CN
China
Prior art keywords
version control
mapping table
software
information
control system
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.)
Active
Application number
CN201910455225.9A
Other languages
Chinese (zh)
Other versions
CN110209396A (en
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910455225.9A priority Critical patent/CN110209396B/en
Publication of CN110209396A publication Critical patent/CN110209396A/en
Application granted granted Critical
Publication of CN110209396B publication Critical patent/CN110209396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to a one-to-many software version control system and a method, which are used for a computer device and are characterized by comprising the following steps: the tracing partition module is used for obtaining source information of software; a modem provided with a version control system searching and configuring module and a version control mapping table; and an application processor provided with a product information processing module, wherein before compiling the modem, version control system information and the version control mapping table are imported through a website, and the source information of the software is converted into a C code according to the version control mapping table.

Description

One-to-many software version control system and method
Technical Field
The invention relates to the technical field of mobile phone equipment, in particular to a one-to-many software version control system and method.
Background
As a mobile phone product manufacturer, each time a mobile phone is released, different operators can be customized according to different areas, so as to meet the differentiated requirements of the operators. Previously, for this different customization, our solution was: a layout master is published, which contains image files image of each partition, here with the suffix. Img), such as lk. Img, modem. Img, system. Img, etc. When a version has been determined:
1. part of the image in the main software will remain unchanged, such as lk.img
2. Part of the image in the main software will vary according to the operator's needs, such as modem. Img, system. Img
In this case, the customization of SVN is simpler, and customization can be realized by compiling different modems for different operators, however, some customization schemes do not meet the requirements.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims at solving the problems, and when a mobile phone is started, a system has a task, the product information of the partition is sent to each module or subsystem, and each module or subsystem acquires the information of an operator so as to realize the aim of different customization.
The aim and the technical problems of the invention are realized by adopting the following technical proposal. The one-to-many software version control system according to the present invention is used for a computer device, and comprises: the tracing partition module is used for obtaining source information of software; a modem provided with a version control system searching and configuring module and a version control mapping table; the application processor is provided with a product information processing module, wherein before compiling the modem, version control system information and the version control mapping table are imported through a website, and the source information of the software is converted into a C code according to the version control mapping table; the tracing partition module is used for acquiring information of each operator of the software, and the computer equipment converts the information of each operator into a C code according to the version control mapping table; before compiling the modem, importing version control system information and the version control mapping table through a website, and converting the source information of the software into a C code according to the version control mapping table, wherein the method comprises the following steps: and importing an xml file of the version control system information and product information mapping table from the website, converting the xml file into C source codes, and compiling the C source codes into target files for other source code calls during compiling.
The aim and the technical problems of the invention can be further realized by adopting the following technical measures.
In an embodiment of the present invention, the application processor searches the corresponding version control system information according to the version control mapping table by the C code when the mobile phone is turned on, and writes the version control system information into the corresponding nonvolatile random access memory.
In one embodiment of the present invention, a storage area accessible to the application processor and the modem is further provided.
The one-to-many software version control method provided by the invention is used for a computer device and is characterized by comprising the following steps: obtaining source information of software through a source tracing partition module; setting a version control system searching and configuring module and a version control mapping table through a compiling modem; the system comprises a modem, an application processor, a software source information processing module and a software source information processing module, wherein the application processor is provided with the product information processing module, and before compiling the modem, version control system information and the version control mapping table are imported through a website, and the source information of the software is converted into a C code according to the version control mapping table; the obtaining, by a source tracing partition module, source information of a software further includes: acquiring information of each operator of software through a tracing partition module; the method for converting the source information of the software into a C code by the computer device according to the version control mapping table further includes: the application processor is provided with a product information processing module, and the information of each operator of the software is converted into a C code according to the version control mapping table; before compiling the modem, importing version control system information and the version control mapping table through a website, and converting the source information of the software into a C code according to the version control mapping table, wherein the method comprises the following steps: and importing an xml file of the version control system information and product information mapping table from the website, converting the xml file into C source codes, and compiling the C source codes into target files for other source code calls during compiling.
In an embodiment of the present invention, the application processor is provided with a product information processing module, and the method further includes: and searching the corresponding version control system information according to the version control mapping table by the C code when the mobile phone is started up through the application processor, and writing the version control system information into a corresponding nonvolatile random access memory.
In one embodiment of the present invention, a storage area accessible to the application processor and the modem is further provided.
Drawings
FIG. 1 shows a flow chart according to one embodiment of the invention.
Fig. 2 shows a schematic diagram of an embodiment after power-on according to the invention.
Detailed Description
In order to further describe the technical means and effects adopted by the present invention to achieve the preset purpose, the following detailed description refers to the specific implementation, structure, characteristics and effects of the one-to-many software version control system and method according to the present invention with reference to the accompanying drawings and preferred embodiments.
Referring to fig. 1 and 2, fig. 1 shows a flowchart of an embodiment of the present invention, which mainly includes the following steps:
step S110: collecting version control system information (SVN) of an area/operator through a website;
step S120: generating an extensible markup language mapping table of the region/operator and the version control system before compiling a Modem (Modem);
step S130: the extensible markup language mapping table is converted to C source code before compiling the Modem (Modem).
Furthermore, for an Android mobile phone, the Application Processor (AP) can be generally understood as running an Android program (the bottom OS is Linux); for Android handsets, modems (BP) can be generally understood as running Modem programs of manufacturers such as MTK, high pass, etc., which are generally written in C code.
The compilation process at the Application Processor (AP) and modem (BP) typically occurs on a PC/server. The compiled result is lk.img, system.img, modem.img, etc., and before compiling the modem image (MTK platform called modem.img), an xml file of the SVN, product information mapping table is imported from the website, and the file is converted into C source code. Thus, when modem. Img is compiled, the source codes are compiled into a target file for other source code calls.
In fig. 2, a schematic diagram of a post-power-on embodiment of the present invention is mainly disclosed, and in fig. 2, at least the portion of the post-power-on partition module 100, the application processor 200, the Modem (Modem) 400, etc. are included, wherein a storage area 300 accessible by the application processor 200 and the Modem 400 is further included, the application processor includes a product information processing module 210, and the Modem (Modem) 400 includes a version control system searching and configuring module 410 and a version control mapping table.
In this embodiment, the application processor converts each operator information into a C code according to the version control mapping table.
In this embodiment, fig. 1 is mainly used to illustrate that all version control system information (SVN) is compiled into a Modem (Modem) during code compiling. Because a general Modem (Modem) is C-language coded, version control system information (SVN) needs to be converted into C-code before compile-time.
In this embodiment, fig. 2 is mainly used to illustrate that when the mobile phone is turned on, according to the data of the product information partition, the corresponding version control system information (SVN) is searched from the region/operator of the C source code and the version control system information mapping table, and the version control system information (SVN) is written into the corresponding nonvolatile random access memory (NVRAM) to cover the original value. .
In this embodiment, the traceability partition module uses a website to obtain information of each operator of the software.
In this embodiment, the application processor converts each operator information into a C code according to the version control mapping table.
In this embodiment, the application processor searches the corresponding version control system information according to the version control mapping table by the C code when the mobile phone is started, and writes the version control system information into the corresponding nonvolatile random access memory.
In the invention, the technology for setting a one-to-many software version control system and method has the advantages that:
1. the Modem (Modem) software contains a mapping table of all known zone/operator version control system information (SVN). When the product leaves the factory, after the Traceability partition module (Traceability) partitions are filled with product information parameters (including region/operator information), the product can automatically complete configuration of the operator version control system information (SVN);
2. the condition that different operators need to compile different software before is avoided, the link that part of software needs to be recompiled when the product leaves the factory is eliminated, and the competitiveness of the product in the delivery speed is improved.
The present invention is not limited to the above-mentioned embodiments, but is intended to be limited to the following embodiments, and any modifications, equivalents and modifications can be made to the above-mentioned embodiments without departing from the scope of the invention.

Claims (6)

1. A one-to-many software versioning system for a computer device, comprising:
the tracing partition module is used for obtaining source information of software;
a modem provided with a version control system searching and configuring module and a version control mapping table; and
an application processor provided with a product information processing module,
before compiling the modem, importing version control system information and the version control mapping table through a website, and converting the source information of the software into a C code according to the version control mapping table;
the tracing partition module is used for acquiring information of each operator of the software, and the computer equipment converts the information of each operator into a C code according to the version control mapping table;
before compiling the modem, importing version control system information and the version control mapping table through a website, and converting the source information of the software into a C code according to the version control mapping table, wherein the method comprises the following steps: and importing an xml file of the version control system information and product information mapping table from the website, converting the xml file into C source codes, and compiling the C source codes into target files for other source code calls during compiling.
2. The one-to-many software version control system according to claim 1 wherein the application processor is configured to search the corresponding version control system information according to the version control mapping table by the C code when the mobile phone is powered on and to write the version control system information into the corresponding nonvolatile random access memory.
3. The one-to-many software versioning system of claim 1, wherein a storage area accessible by an application processor and modem is further provided.
4. A one-to-many software release control method for a computer device, comprising the steps of:
obtaining source information of software through a source tracing partition module;
setting a version control system searching and configuring module and a version control mapping table through a compiling modem; and
a product information processing module is set by the application processor,
before compiling the modem, importing version control system information and the version control mapping table through a website, and converting the source information of the software into a C code according to the version control mapping table;
the obtaining, by a source tracing partition module, source information of a software further includes: acquiring information of each operator of software through a tracing partition module; the method for converting the source information of the software into a C code by the computer device according to the version control mapping table further includes: the application processor is provided with a product information processing module, and the information of each operator of the software is converted into a C code according to the version control mapping table;
before compiling the modem, importing version control system information and the version control mapping table through a website, and converting the source information of the software into a C code according to the version control mapping table, wherein the method comprises the following steps: and importing an xml file of the version control system information and product information mapping table from the website, converting the xml file into C source codes, and compiling the C source codes into target files for other source code calls during compiling.
5. The one-to-many software version control method according to claim 4, wherein the converting, by the computer device, the source information of the software into the C code according to the version control mapping table further comprises:
and searching the corresponding version control system information according to the version control mapping table by the C code when the mobile phone is started up through the application processor, and writing the version control system information into a corresponding nonvolatile random access memory.
6. The one-to-many software versioning method of claim 4, wherein a storage area accessible by an application processor and modem is further provided.
CN201910455225.9A 2019-05-29 2019-05-29 One-to-many software version control system and method Active CN110209396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910455225.9A CN110209396B (en) 2019-05-29 2019-05-29 One-to-many software version control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910455225.9A CN110209396B (en) 2019-05-29 2019-05-29 One-to-many software version control system and method

Publications (2)

Publication Number Publication Date
CN110209396A CN110209396A (en) 2019-09-06
CN110209396B true CN110209396B (en) 2023-07-18

Family

ID=67789242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910455225.9A Active CN110209396B (en) 2019-05-29 2019-05-29 One-to-many software version control system and method

Country Status (1)

Country Link
CN (1) CN110209396B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764819B (en) * 2019-10-22 2022-05-17 福州汇思博信息技术有限公司 RF Card client method and system for communication terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677765A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 Version automatic issuing method, device and storage medium
CN105101162A (en) * 2015-07-13 2015-11-25 广东欧珀移动通信有限公司 Method and device for automatically loading MBN (ModemConfiguration Binary File)
CN107908421A (en) * 2017-09-29 2018-04-13 北京创鑫旅程网络技术有限公司 The method and device of software code versions management and issue
CN108710503A (en) * 2018-05-17 2018-10-26 烽火通信科技股份有限公司 A kind of management method of software version, application method and system
CN109587252A (en) * 2018-12-10 2019-04-05 上海闻泰电子科技有限公司 Loading method, device, electronic equipment and the storage medium of operator parameter

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8776020B2 (en) * 2008-12-11 2014-07-08 Sap Ag Software configuration control wherein containers are associated with physical storage of software application versions in a software production landscape

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677765A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 Version automatic issuing method, device and storage medium
CN105101162A (en) * 2015-07-13 2015-11-25 广东欧珀移动通信有限公司 Method and device for automatically loading MBN (ModemConfiguration Binary File)
CN107908421A (en) * 2017-09-29 2018-04-13 北京创鑫旅程网络技术有限公司 The method and device of software code versions management and issue
CN108710503A (en) * 2018-05-17 2018-10-26 烽火通信科技股份有限公司 A kind of management method of software version, application method and system
CN109587252A (en) * 2018-12-10 2019-04-05 上海闻泰电子科技有限公司 Loading method, device, electronic equipment and the storage medium of operator parameter

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SVN在设备软件开发管理中的应用;张金环等;《电子工业专用设备》;20161120(第11期);第38-42页 *

Also Published As

Publication number Publication date
CN110209396A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
RU2643484C2 (en) Generation of own code from code in intermediate language for application
WO2017185606A1 (en) Overlay mechanism-based apk development method and system
US10338907B2 (en) Cloud service framework for toolkit deployment
CN110955431B (en) Processing method and device of compiling environment
CN107632828B (en) Multi-dts file supporting method, compiling device and embedded equipment
KR20200146006A (en) Method, apparatus, device and storage medium for upgrading application
CN105446712B (en) Application program defect repairing method and device
CN107506219A (en) A kind of general version upgrade method based on android system
CN109032631B (en) Application program patch package obtaining method and device, computer equipment and storage medium
CN104991793A (en) Method, device and system used for application program subpackage
CN111124480B (en) Method and device for generating application program package, electronic equipment and storage medium
CN103473097A (en) System, device and method for upgrading Android system firmware
CN104133699A (en) Equipment system software updating method and equipment system software updating system
CN108829465B (en) Local dynamic loading system and method based on direct read-write FLASH
CN105554577A (en) Smart television over-the-air technology (OTA) upgrading method and device, smart television
CN112148297A (en) Intelligent server encryption and packaging method and device
CN110209396B (en) One-to-many software version control system and method
CN110851151B (en) Method, device, terminal, server and storage medium for pre-installing application
KR102055613B1 (en) Device and method for smart device and sensor node integrated application update
CN106775897B (en) Method and system for starting driver of set top box
CN111596951A (en) Method and device for configuring engineering file
TW201814546A (en) Device component loading method, apparatus and internet of things system
CN110750280A (en) Application upgrading method and system based on Android platform and storage medium
CN107092472B (en) Dynamic publishing method and device
CN113641389B (en) Software upgrading method, device and equipment based on OpenCPU

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
GR01 Patent grant
GR01 Patent grant