Unlock instant, AI-driven research and patent intelligence for your innovation.

A method of dynamically compiling software packages according to dependencies

A dependency and dynamic compilation technology, applied in the field of compilation, can solve problems such as complex dependencies and large number of software packages, achieve good effects and effects, and facilitate iterative modification

Inactive Publication Date: 2017-11-24
HUAZHONG UNIV OF SCI & TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. The number of software packages is huge, and the dependencies are very complicated;

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] A method for dynamically compiling software packages according to dependencies, comprising the following steps:

[0031] Step (1), set a specific variable (take ROOTDIR as an example) as the directory where the current project is located; that is, ROOTDIR=`(cd ".."; / bin / pwd)`;

[0032] Step (2), clear all files under the specific directory (take $ROOTDIR / .stamp as an example) set for identifying dependencies;

[0033] Step (3), calling one or more required main software packages. For example, build_x11, build_qt, etc., this step depends entirely on the characteristics of the final operating system, and does not need to consider the sequence and dependencies of each software package;

[0034] Step (4), in each build_XXX script, according to the characteristics of the software package, call the sub-packages build_YYY1, build_YYY2, ..., build_YYYn that the software package depends on in sequence according to the agreement. At this time, there is no need to consider the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for dynamically compiling a software package according to the dependency relationship, setting a specific variable as the directory where the current project is located; clearing all files in the specific variable directory set for identifying the dependency relationship; calling one or more required In each script, according to the characteristics of this software package, each sub-software package that this software package depends on is called in turn according to the agreement, and then run_task is called, and the incoming parameter is the package name of this software package; execute run_task . The invention can automatically determine the compiling sequence according to the dependencies between the software packages, so that when the dependencies of the software packages change, it can automatically adjust and form a new compiling process.

Description

technical field [0001] The invention belongs to compiling technology, and in particular relates to a method for dynamically compiling software packages according to dependencies, which is applied to building an operating system based on the Linux kernel, and automatically adjusts a new compiling sequence when the software package is adjusted. Background technique [0002] With the continuous development of the linux system kernel and open source code, new operating systems represented by Ubuntu and CentOS are gradually replacing traditional commercial operating systems in various fields. Enterprises and individuals can form a brand-new operating system with individual characteristics through continuous debugging and adding their own content based on these public knowledge. [0003] The basic process of building such an open source operating system is to compile and organically combine a large number of open source software packages. In this process, due to the dependencies ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/45
Inventor 白云喻莉谢长生
Owner HUAZHONG UNIV OF SCI & TECH