]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/device-ti-proprietary-open.git/blob - jacinto6/sgx_src/eurasia_km/services4/srvkm/env/linux/Kbuild.mk
10064d69c06c9c35e9482bfe407a71d3618a57be
[android-sdk/device-ti-proprietary-open.git] / jacinto6 / 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-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/common/buffer_manager.o \
55         services4/srvkm/common/devicemem.o \
56         services4/srvkm/common/handle.o \
57         services4/srvkm/common/hash.o \
58         services4/srvkm/common/lists.o \
59         services4/srvkm/common/mem.o \
60         services4/srvkm/common/mem_debug.o \
61         services4/srvkm/common/metrics.o \
62         services4/srvkm/common/osfunc_common.o \
63         services4/srvkm/common/pdump_common.o \
64         services4/srvkm/common/perproc.o \
65         services4/srvkm/common/power.o \
66         services4/srvkm/common/pvrsrv.o \
67         services4/srvkm/common/ra.o \
68         services4/srvkm/common/refcount.o \
69         services4/srvkm/common/resman.o \
70         services4/srvkm/bridged/bridged_support.o \
71         services4/srvkm/bridged/bridged_pvr_bridge.o \
72         services4/system/$(PVR_SYSTEM)/sysconfig.o \
73         services4/system/$(PVR_SYSTEM)/sysutils.o
75 ifeq ($(SUPPORT_PVRSRV_DEVICE_CLASS),1)
76 pvrsrvkm-y += \
77         services4/srvkm/common/deviceclass.o \
78         services4/srvkm/common/queue.o
79 endif
81 ifeq ($(SUPPORT_ION),1)
82 pvrsrvkm-y += \
83         services4/srvkm/env/linux/ion.o
84 endif
86 ifeq ($(PVR_ANDROID_NATIVE_WINDOW_HAS_SYNC),1)
87 pvrsrvkm-y += \
88         services4/srvkm/env/linux/pvr_sync.o
89 endif
91 ifeq ($(TTRACE),1)
92 pvrsrvkm-y += \
93         services4/srvkm/common/ttrace.o
94 endif
96 ifeq ($(SUPPORT_PVRSRV_ANDROID_SYSTRACE),1)
97 pvrsrvkm-y += \
98         services4/srvkm/env/linux/systrace.o
99 endif
101 ifneq ($(W),1)
102 CFLAGS_osfunc.o := -Werror
103 CFLAGS_mutils.o := -Werror
104 CFLAGS_mmap.o := -Werror
105 CFLAGS_module.o := -Werror
106 CFLAGS_pdump.o := -Werror
107 CFLAGS_proc.o := -Werror
108 CFLAGS_pvr_bridge_k.o := -Werror
109 CFLAGS_pvr_debug.o := -Werror
110 CFLAGS_mm.o := -Werror
111 CFLAGS_mutex.o := -Werror
112 CFLAGS_event.o := -Werror
113 CFLAGS_osperproc.o := -Werror
114 CFLAGS_buffer_manager.o := -Werror
115 CFLAGS_devicemem.o := -Werror
116 CFLAGS_deviceclass.o := -Werror
117 CFLAGS_handle.o := -Werror
118 CFLAGS_hash.o := -Werror
119 CFLAGS_metrics.o := -Werror
120 CFLAGS_pvrsrv.o := -Werror
121 CFLAGS_queue.o := -Werror
122 CFLAGS_ra.o := -Werror
123 CFLAGS_resman.o := -Werror
124 CFLAGS_power.o := -Werror
125 CFLAGS_mem.o := -Werror
126 CFLAGS_pdump_common.o := -Werror
127 CFLAGS_bridged_support.o := -Werror
128 CFLAGS_bridged_pvr_bridge.o := -Werror
129 CFLAGS_perproc.o := -Werror
130 CFLAGS_lists.o := -Werror
131 CFLAGS_mem_debug.o := -Werror
132 CFLAGS_osfunc_common.o := -Werror
133 CFLAGS_refcount.o := -Werror
134 endif
136 # SUPPORT_SGX==1 only
138 pvrsrvkm-y += \
139         services4/srvkm/bridged/sgx/bridged_sgx_bridge.o \
140         services4/srvkm/devices/sgx/sgxinit.o \
141         services4/srvkm/devices/sgx/sgxpower.o \
142         services4/srvkm/devices/sgx/sgxreset.o \
143         services4/srvkm/devices/sgx/sgxutils.o \
144         services4/srvkm/devices/sgx/sgxkick.o \
145         services4/srvkm/devices/sgx/sgxtransfer.o \
146         services4/srvkm/devices/sgx/mmu.o \
147         services4/srvkm/devices/sgx/pb.o
149 ifneq ($(W),1)
150 CFLAGS_bridged_sgx_bridge.o := -Werror
151 CFLAGS_sgxinit.o := -Werror
152 CFLAGS_sgxpower.o := -Werror
153 CFLAGS_sgxreset.o := -Werror
154 CFLAGS_sgxutils.o := -Werror
155 CFLAGS_sgxkick.o := -Werror
156 CFLAGS_sgxtransfer.o := -Werror
157 CFLAGS_mmu.o := -Werror
158 CFLAGS_pb.o := -Werror
159 endif
161 ifeq ($(SUPPORT_DRI_DRM),1)
163 pvrsrvkm-y += \
164  services4/srvkm/env/linux/pvr_drm.o
166 ccflags-y += \
167  -Iinclude/drm \
168  -I$(TOP)/services4/include/env/linux \
170 ifeq ($(PVR_DRI_DRM_NOT_PCI),1)
171 ccflags-y += -I$(TOP)/services4/3rdparty/linux_drm
172 endif
174 endif # SUPPORT_DRI_DRM