uart...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / gpu / mt8127 / mali / ump / readme.txt
1 Building the UMP Device Driver for Linux
2 ----------------------------------------
3
4 Build the UMP Device Driver for Linux by running the following make command:
5
6 KDIR=<kdir_path> CONFIG=<your_config> BUILD=<build_option> make
7
8 where
9 kdir_path: Path to your Linux Kernel directory
10 your_config: Name of the sub-folder to find the required config.h file
11 ("arch-" will be prepended)
12 build_option: debug or release. Debug is default.
13
14 The config.h contains following configuration parameters:
15
16 ARCH_UMP_BACKEND_DEFAULT
17 0 specifies the dedicated memory allocator.
18 1 specifies the OS memory allocator.
19 ARCH_UMP_MEMORY_ADDRESS_DEFAULT
20 This is only required for the dedicated memory allocator, and specifies
21 the physical start address of the memory block reserved for UMP.
22 ARCH_UMP_MEMORY_SIZE_DEFAULT
23 This specified the size of the memory block reserved for UMP, or the
24 maximum limit for allocations from the OS.
25
26 The result will be a ump.ko file, which can be loaded into the Linux kernel
27 by using the insmod command. The driver can also be built as a part of the
28 kernel itself.