blob: 183d76d8b7ac96c85c29ab709ed4469c6d27f60d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
ccflags-y = -DLINUX -D__linux__ -DANDROID -DPVR_BUILD_DIR="\"omap4430_android\""
ccflags-y += -Idrivers/gpu/pvr -Idrivers/gpu/pvr/omap4 -Idrivers/video/omap2
ccflags-y += \
-DSUPPORT_SGX \
-DTRANSFER_QUEUE \
-DSGX_DYNAMIC_TIMING_INFO \
-DSUPPORT_HW_RECOVERY \
-DLDM_PLATFORM \
-DSUPPORT_SGX_NEW_STATUS_VALS \
-DSUPPORT_SGX_HWPERF \
-DSYS_USING_INTERRUPTS \
-DPVR_SECURE_HANDLES \
-DPVR_LINUX_USING_WORKQUEUES \
-DPVR_LINUX_MISR_USING_PRIVATE_WORKQUEUE \
-DPVR_LINUX_TIMERS_USING_WORKQUEUES \
-DSYS_CUSTOM_POWERLOCK_WRAP \
-DSUPPORT_MEMINFO_IDS \
-DDISPLAY_CONTROLLER=omaplfb \
-DPVRSRV_MODNAME="\"pvrsrvkm\"" \
-DPVR_LDM_DRIVER_REGISTRATION_NAME="\"pvrsrvkm\"" \
-DSUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED \
-DSUPPORT_LARGE_GENERAL_HEAP \
-DPVR_NO_OMAP_TIMER \
-DSYS_SUPPORTS_SGX_IDLE_CALLBACK \
-DPVRSRV_REFCOUNT_DEBUG \
-Idrivers/gpu/pvr/sgx
ccflags-$(CONFIG_PVR_SGXCORE_540) += \
-DSGX540 -DSUPPORT_SGX540 \
-DSGX_CORE_REV=120
ccflags-$(CONFIG_PVR_BUILD_RELEASE) += \
-DPVR_BUILD_TYPE="\"release\"" -DRELEASE
ccflags-$(CONFIG_PVR_BUILD_DEBUG) += \
-DPVR_BUILD_TYPE="\"debug\"" -DDEBUG
ccflags-$(CONFIG_PVR_NEED_PVR_DPF) += -DPVRSRV_NEED_PVR_DPF
ccflags-$(CONFIG_PVR_NEED_PVR_ASSERT) += -DPVRSRV_NEED_PVR_ASSERT
ccflags-$(CONFIG_PVR_DEBUG_MEMORY) += \
-DDEBUG_LINUX_MEMORY_ALLOCATIONS \
-DDEBUG_LINUX_MEM_AREAS \
-DDEBUG_LINUX_MMAP_AREAS
ccflags-$(CONFIG_PVR_DEBUG_BRIDGE_KM) += -DDEBUG_BRIDGE_KM
ccflags-$(CONFIG_PVR_DEBUG_TRACE_BRIDGE_KM) += -DDEBUG_TRACE_BRIDGE_KM
ccflags-$(CONFIG_PVR_DEBUG_BRIDGE_KM_DISPATCH_TABLE) += -DDEBUG_BRIDGE_KM_DISPATCH_TABLE
ccflags-$(CONFIG_PVR_PERCONTEXT_PB) += -DSUPPORT_PERCONTEXT_PB
ccflags-$(CONFIG_PVR_SGX_LOW_LATENCY_SCHEDULING) += -DSUPPORT_SGX_LOW_LATENCY_SCHEDULING
ccflags-$(CONFIG_PVR_ACTIVE_POWER_MANAGEMENT) += -DSUPPORT_ACTIVE_POWER_MANAGEMENT
ccflags-$(CONFIG_PVR_ACTIVE_POWER_MANAGEMENT) += \
-DSYS_SGX_ACTIVE_POWER_LATENCY_MS=CONFIG_PVR_ACTIVE_POWER_LATENCY_MS
ccflags-$(CONFIG_PVR_USSE_EDM_STATUS_DEBUG) += -DPVRSRV_USSE_EDM_STATUS_DEBUG
ccflags-$(CONFIG_PVR_DUMP_MK_TRACE) += -DPVRSRV_DUMP_MK_TRACE
ccflags-$(CONFIG_PVR_PDUMP) += \
-DPDUMP -DSUPPORT_DBGDRV_EVENT_OBJECTS -DSUPPORT_PDUMP_MULTI_PROCESS
ccflags-$(CONFIG_PVR_LINUX_MEM_AREA_POOL) += \
-DPVR_LINUX_MEM_AREA_POOL_MAX_PAGES=CONFIG_PVR_LINUX_MEM_AREA_POOL_MAX_PAGES \
-DPVR_LINUX_MEM_AREA_USE_VMAP -DPVR_LINUX_MEM_AREA_POOL_ALLOW_SHRINK
pvrsrvkm-y := \
osfunc.o \
mutils.o \
mmap.o \
module.o \
pdump.o \
proc.o \
pvr_bridge_k.o \
pvr_debug.o \
mm.o \
mutex.o \
event.o \
osperproc.o \
buffer_manager.o \
devicemem.o \
deviceclass.o \
handle.o \
hash.o \
metrics.o \
pvrsrv.o \
queue.o \
ra.o \
resman.o \
power.o \
mem.o \
pdump_common.o \
bridged_support.o \
bridged_pvr_bridge.o \
perproc.o \
lists.o \
refcount.o \
omap4/sysconfig.o \
omap4/sysutils.o \
sgx/bridged_sgx_bridge.o \
sgx/sgxinit.o \
sgx/sgxpower.o \
sgx/sgxreset.o \
sgx/sgxutils.o \
sgx/sgxkick.o \
sgx/sgxtransfer.o \
sgx/mmu.o \
sgx/pb.o
pvrsrvkm-$(CONFIG_ION_OMAP) += ion.o
omaplfb-y := \
omaplfb/omaplfb_displayclass.o \
omaplfb/omaplfb_linux.o
obj-$(CONFIG_PVR_SGX) += pvrsrvkm.o
obj-$(CONFIG_PVR_SGX) += omaplfb.o
# no Makefile in dbgdrv
#obj-$(CONFIG_PVR_PDUMP) += dbgdrv/
|