85b00338d8afa966194ce2616952e87d8a57e652
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / gpu / mt8127 / mali / mali / Kbuild-mtk-custom-src
1 #mtk custom port
2
3
4 #Debug version (BUILD := debug not eatten by kbuild)
5 ccflags-y += -DDEBUG
6
7 #Move user ump include to kernel source code
8 ccflags-y += -I$(DRIVER_DIR)/../ump_include/ump
9
10 #include mtk kernel header files
11 #ccflags-y += \
12 # -I$(MTK_PATH_PLATFORM)/core/include/mach \
13 # -I$(MTK_PATH_SOURCE)/include/linux
14 ccflags-y += \
15 -I$(srctree)/arch/arm/mach-mt8127/include/mach \
16 -I$(srctree)/include/linux \
17 -I$(srctree)/arch/arm/mach-mt8127/gpu/mali/mali/linux/license/gpl
18
19
20 #Add MTK custom source code
21 ccflags-y += -I$(DRIVER_DIR)/../../mediatek
22 mali-y += ../../mediatek/mtk_mali_kernel.o
23 #mali-y += ../../mediatek/mtk_mali_trace.o
24
25 ccflags-y += -DMALI_FAKE_PLATFORM_DEVICE
26
27 #Add function trace functionality
28 #ccflags-y += -finstrument-functions
29 #mali-y += platform/$(TARGET_PLATFORM)/mtk_ptrace.c
30
31 mali-y += platform/platform.o
32 mali-y += platform/platform_pmm.o
33
34
35 #MTK_DEBUG
36 ccflags-y += -I$(DRIVER_DIR)/mtk_common
37
38 #Temp remove this for Kernel version update
39 #mali-y += mtk_common/mtk_mem_record.o
40 #mali-$(MTK_DEBUG) += mtk_common/mtk_debug.o
41 #mali-$(MTK_DEBUG_PROC_PRINT) += mtk_common/mtk_pp.o
42
43 #Use this to set PP num and pll
44 #ifdef MTK_NR_MALI_PP
45 #ccflags-y += -DMTK_NR_MALI_PP=$(MTK_NR_MALI_PP)
46 #endif
47
48 #ifeq ($(MTK_MALI_UNIV), yes)
49 #ccflags-y += -DMTK_MALI_UNIV
50 #endif