Android 11.0 mt6771 new partition function implementation 2

1 Introduction


 In the system development of 11.0, new partitions are needed to store data in some special modules, so it is
necessary to add new partitions to the system partition. Next, we will implement this function. Let’s look at the implementation of Series 2. process

2.mt6771 adds a new core class for partition function implementation 2

build/make/core/envsetup.mk
build/make/core/main.mk
build/make/tools/releasetools/build_image.py

3. Analysis and implementation of core functions of mt6771’s new partition function implementation 2


There are countless source files in a project, which are placed in several directories according to type, function, and module.
Makefile defines a series of rules to specify which files need to be compiled first, which files need to be compiled later, and
which files need to be compiled. Recompile, or even perform more complex functional operations, because Makefile is like a
Shell script, in which you can also execute operating system commands
envsetup.mk is mainly to set up the compilation environment. In fact, it is to set some global variables, that is, After defining
the new partition module, you need to set up and compile the new partition module in envsetup.mk.

3.1 Related configurations of new partition module in envsetup.mk


In the core function implementation of mt6771 new partition function implementation 2, it is known from the above analysis that
envsetup.mk mainly adds the compilation function of new modules, so when adding new partitions, it also needs to be
here The core module adds the name of the module that needs to be compiled to participate in the compilation.


 TARGET_OUT_CACHE := $(PRODUCT_OUT)/cache
+TARGET_OUT_USERTEST :

Guess you like

Origin blog.csdn.net/baidu_41666295/article/details/133500318