xref: /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/readme.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBuilding the Mali Device Driver for Linux
2*4882a593Smuzhiyun-----------------------------------------
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunBuild the Mali Device Driver for Linux by running the following make command:
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunKDIR=<kdir_path> USING_UMP=<ump_option> BUILD=<build_option> make
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunwhere
9*4882a593Smuzhiyun    kdir_path: Path to your Linux Kernel directory
10*4882a593Smuzhiyun    ump_option: 1 = Enable UMP support(*)
11*4882a593Smuzhiyun                0 = disable UMP support
12*4882a593Smuzhiyun    build_option: debug = debug build of driver
13*4882a593Smuzhiyun                  release = release build of driver
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun(*)  For newer Linux Kernels, the Module.symvers file for the UMP device driver
16*4882a593Smuzhiyun     must be available. The UMP_SYMVERS_FILE variable in the Makefile should
17*4882a593Smuzhiyun     point to this file. This file is generated when the UMP driver is built.
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunThe result will be a mali.ko file, which can be loaded into the Linux kernel
20*4882a593Smuzhiyunby using the insmod command.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunUse of UMP is not recommended. The dma-buf API in the Linux kernel has
23*4882a593Smuzhiyunreplaced UMP. The Mali Device Driver will be built with dma-buf support if the
24*4882a593Smuzhiyunkernel config includes enabled dma-buf.
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunThe kernel needs to be provided with a platform_device struct for the Mali GPU
27*4882a593Smuzhiyundevice. See the mali_utgard.h header file for how to set up the Mali GPU
28*4882a593Smuzhiyunresources.
29