[android-sdk/device-ti-proprietary-open.git] / omap5 / sgx_src / eurasia_km / services4 / srvkm / env / linux / Kbuild.mk
1 ########################################################################### ###
2 #@Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
3 #@License Dual MIT/GPLv2
4 #
5 # The contents of this file are subject to the MIT license as set out below.
6 #
7 # Permission is hereby granted, free of charge, to any person obtaining a copy
8 # of this software and associated documentation files (the "Software"), to deal
9 # in the Software without restriction, including without limitation the rights
10 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 # copies of the Software, and to permit persons to whom the Software is
12 # furnished to do so, subject to the following conditions:
13 #
14 # The above copyright notice and this permission notice shall be included in
15 # all copies or substantial portions of the Software.
16 #
17 # Alternatively, the contents of this file may be used under the terms of
18 # the GNU General Public License Version 2 ("GPL") in which case the provisions
19 # of GPL are applicable instead of those above.
20 #
21 # If you wish to allow use of your version of this file only under the terms of
22 # GPL, and not to allow others to use your version of this file under the terms
23 # of the MIT license, indicate your decision by deleting the provisions above
24 # and replace them with the notice and other provisions required by GPL as set
25 # out in the file called "GPL-COPYING" included in this distribution. If you do
26 # not delete the provisions above, a recipient may use your version of this file
27 # under the terms of either the MIT license or GPL.
28 #
29 # This License is also included in this distribution in the file called
30 # "MIT-COPYING".
31 #
32 # EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS
33 # PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
34 # BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
35 # PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR
36 # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
37 # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
38 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39 ### ###########################################################################
41 pvrsrvkm_sgx$(SGXCORE)_$(SGX_CORE_REV)-y += \
42 services4/srvkm/env/linux/osfunc.o \
43 services4/srvkm/env/linux/mutils.o \
44 services4/srvkm/env/linux/mmap.o \
45 services4/srvkm/env/linux/module.o \
46 services4/srvkm/env/linux/pdump.o \
47 services4/srvkm/env/linux/proc.o \
48 services4/srvkm/env/linux/pvr_bridge_k.o \
49 services4/srvkm/env/linux/pvr_debug.o \
50 services4/srvkm/env/linux/mm.o \
51 services4/srvkm/env/linux/mutex.o \
52 services4/srvkm/env/linux/event.o \
53 services4/srvkm/env/linux/osperproc.o \
54 services4/srvkm/env/linux/sysfs.o \
55 services4/srvkm/common/buffer_manager.o \
56 services4/srvkm/common/devicemem.o \
57 services4/srvkm/common/deviceclass.o \
58 services4/srvkm/common/handle.o \
59 services4/srvkm/common/hash.o \
60 services4/srvkm/common/lists.o \
61 services4/srvkm/common/mem.o \
62 services4/srvkm/common/mem_debug.o \
63 services4/srvkm/common/metrics.o \
64 services4/srvkm/common/osfunc_common.o \
65 services4/srvkm/common/pdump_common.o \
66 services4/srvkm/common/perproc.o \
67 services4/srvkm/common/power.o \
68 services4/srvkm/common/pvrsrv.o \
69 services4/srvkm/common/queue.o \
70 services4/srvkm/common/ra.o \
71 services4/srvkm/common/refcount.o \
72 services4/srvkm/common/resman.o \
73 services4/srvkm/bridged/bridged_support.o \
74 services4/srvkm/bridged/bridged_pvr_bridge.o \
75 services4/system/$(PVR_SYSTEM)/sysconfig.o \
76 services4/system/$(PVR_SYSTEM)/sysutils.o
78 pvrsrvkm_sgx$(SGXCORE)_$(SGX_CORE_REV)-$(CONFIG_ION_OMAP) += \
79 services4/srvkm/env/linux/ion.o
80 pvrsrvkm_sgx$(SGXCORE)_$(SGX_CORE_REV)-$(CONFIG_GCBV) += \
81 services4/srvkm/env/linux/gc_bvmapping.o
83 ifeq ($(SUPPORT_ION),1)
84 pvrsrvkm-y += \
85 services4/srvkm/env/linux/ion.o
86 endif
88 ifeq ($(TTRACE),1)
89 pvrsrvkm-y += \
90 services4/srvkm/common/ttrace.o
91 endif
93 ifneq ($(W),1)
94 CFLAGS_osfunc.o := -Werror
95 CFLAGS_mutils.o := -Werror
96 CFLAGS_mmap.o := -Werror
97 CFLAGS_module.o := -Werror
98 CFLAGS_pdump.o := -Werror
99 CFLAGS_proc.o := -Werror
100 CFLAGS_pvr_bridge_k.o := -Werror
101 CFLAGS_pvr_debug.o := -Werror
102 CFLAGS_mm.o := -Werror
103 CFLAGS_mutex.o := -Werror
104 CFLAGS_event.o := -Werror
105 CFLAGS_osperproc.o := -Werror
106 CFLAGS_buffer_manager.o := -Werror
107 CFLAGS_devicemem.o := -Werror
108 CFLAGS_deviceclass.o := -Werror
109 CFLAGS_handle.o := -Werror
110 CFLAGS_hash.o := -Werror
111 CFLAGS_metrics.o := -Werror
112 CFLAGS_pvrsrv.o := -Werror
113 CFLAGS_queue.o := -Werror
114 CFLAGS_ra.o := -Werror
115 CFLAGS_resman.o := -Werror
116 CFLAGS_power.o := -Werror
117 CFLAGS_mem.o := -Werror
118 CFLAGS_pdump_common.o := -Werror
119 CFLAGS_bridged_support.o := -Werror
120 CFLAGS_bridged_pvr_bridge.o := -Werror
121 CFLAGS_perproc.o := -Werror
122 CFLAGS_lists.o := -Werror
123 CFLAGS_mem_debug.o := -Werror
124 CFLAGS_osfunc_common.o := -Werror
125 CFLAGS_refcount.o := -Werror
126 endif
128 # SUPPORT_SGX==1 only
130 pvrsrvkm_sgx$(SGXCORE)_$(SGX_CORE_REV)-y += \
131 services4/srvkm/bridged/sgx/bridged_sgx_bridge.o \
132 services4/srvkm/devices/sgx/sgxinit.o \
133 services4/srvkm/devices/sgx/sgxpower.o \
134 services4/srvkm/devices/sgx/sgxreset.o \
135 services4/srvkm/devices/sgx/sgxutils.o \
136 services4/srvkm/devices/sgx/sgxkick.o \
137 services4/srvkm/devices/sgx/sgxtransfer.o \
138 services4/srvkm/devices/sgx/mmu.o \
139 services4/srvkm/devices/sgx/pb.o
141 ifneq ($(W),1)
142 CFLAGS_bridged_sgx_bridge.o := -Werror
143 CFLAGS_sgxinit.o := -Werror
144 CFLAGS_sgxpower.o := -Werror
145 CFLAGS_sgxreset.o := -Werror
146 CFLAGS_sgxutils.o := -Werror
147 CFLAGS_sgxkick.o := -Werror
148 CFLAGS_sgxtransfer.o := -Werror
149 CFLAGS_mmu.o := -Werror
150 CFLAGS_pb.o := -Werror
151 endif
153 ifeq ($(SUPPORT_DRI_DRM),1)
155 pvrsrvkm_sgx$(SGXCORE)_$(SGX_CORE_REV)-y += \
156 services4/srvkm/env/linux/pvr_drm.o
158 ccflags-y += \
159 -I$(KERNELDIR)/include/drm \
160 -I$(TOP)/services4/include/env/linux \
162 ifeq ($(PVR_DRI_DRM_NOT_PCI),1)
163 ccflags-y += -I$(TOP)/services4/3rdparty/linux_drm
164 endif
166 endif # SUPPORT_DRI_DRM