Android 11.0 mt6771 implements new partition function

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.

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

build/make/core/Makefile
build/make/core/board_config.mk
build/make/core/config.mk

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


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 the Makefile is like a
Shell script, which can also execute operating system commands, so you also need to
configure the relevant modules in the Makefile file,
including adding new partitions. Some module definitions of the partition need to be provided by the compilation system ((You can
see their definitions in the /build/core/config.mk file in the android installation directory, so some global variables defined in config.mk
are also very important.

3.1 Implementation of functions related to defining new partitions in Makefile


In the core function implementation of mt6771's new partition function implementation, through the above analysis,
the Makefile mainly defines the img file partition size of some new partitions and the related
module content involved in partition compilation. Next, let's take a look at the specific implementation.

diff --git a/build/make/core/Makefile b/build/make/core/M

Guess you like

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