Linux: GateHWSpinlock: Fix Compiler Warnings
[ipc/ipcdev.git] / Android.mk
1 #
2 #   Copyright (c) 2015, Texas Instruments Incorporated
3 #
4 #   Redistribution and use in source and binary forms, with or without
5 #   modification, are permitted provided that the following conditions
6 #   are met:
7 #
8 #   *  Redistributions of source code must retain the above copyright
9 #      notice, this list of conditions and the following disclaimer.
10 #
11 #   *  Redistributions in binary form must reproduce the above copyright
12 #      notice, this list of conditions and the following disclaimer in the
13 #      documentation and/or other materials provided with the distribution.
14 #
15 #   *  Neither the name of Texas Instruments Incorporated nor the names of
16 #      its contributors may be used to endorse or promote products derived
17 #      from this software without specific prior written permission.
18 #
19 #   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 #   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 #   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 #   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23 #   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 #   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 #   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 #   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 #   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 #   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
29 #   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 #
32 LOCAL_PATH:= $(call my-dir)
34 ############### libtiipc ###############
35 include $(CLEAR_VARS)
37 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
38                      $(LOCAL_PATH)/packages \
39                      $(LOCAL_PATH)/hlos_common/include
41 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID -DGATEMP_SUPPORT -fPIC
42 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
43 LOCAL_MODULE_TAGS:= optional
45 LOCAL_SRC_FILES:= linux/src/api/MultiProc.c \
46                   linux/src/api/NameServer.c \
47                   linux/src/api/Ipc.c \
48                   linux/src/api/MessageQ.c \
49                   linux/src/api/gates/GateMP.c \
50                   linux/src/api/gates/GateMutex.c \
51                   linux/src/api/gates/GateHWSpinlock.c \
52                   linux/src/heaps/HeapStd.c
54 LOCAL_SHARED_LIBRARIES := \
55     liblog libtiipcutils
57 LOCAL_MODULE:= libtiipc
58 include $(BUILD_SHARED_LIBRARY)
61 ############### libtiipcutils ###############
62 include $(CLEAR_VARS)
64 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
65                      $(LOCAL_PATH)/packages \
66                      $(LOCAL_PATH)/hlos_common/include
68 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
69 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
70 LOCAL_MODULE_TAGS:= optional
72 LOCAL_SRC_FILES:= linux/src/utils/LAD_client.c \
73                   linux/src/utils/SocketFxns.c \
74                   linux/src/utils/MultiProc_app.c \
75                   hlos_common/src/utils/MultiProc.c
77 LOCAL_SHARED_LIBRARIES := \
78     liblog
80 LOCAL_MODULE:= libtiipcutils
81 include $(BUILD_SHARED_LIBRARY)
84 ############### libtiipcutils_lad ###############
85 include $(CLEAR_VARS)
87 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
88                      $(LOCAL_PATH)/packages \
89                      $(LOCAL_PATH)/hlos_common/include
91 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
92 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
93 LOCAL_MODULE_TAGS:= optional
95 LOCAL_SRC_FILES:= linux/src/utils/LAD_client.c \
96                   linux/src/utils/SocketFxns.c \
97                   hlos_common/src/utils/MultiProc.c
99 LOCAL_SHARED_LIBRARIES := \
100     liblog
102 LOCAL_ALLOW_UNDEFINED_SYMBOLS:= true
104 LOCAL_MODULE:= libtiipcutils_lad
105 include $(BUILD_SHARED_LIBRARY)
108 ############### libtitransportrpmsg ###############
109 include $(CLEAR_VARS)
111 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
112                      $(LOCAL_PATH)/packages \
113                      $(LOCAL_PATH)/hlos_common/include
115 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
116 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
117 LOCAL_MODULE_TAGS:= optional
119 LOCAL_SRC_FILES:= linux/src/transport/TransportRpmsg.c
121 LOCAL_SHARED_LIBRARIES := \
122     liblog libtiipcutils libtiipc
124 LOCAL_MODULE:= libtitransportrpmsg
125 include $(BUILD_SHARED_LIBRARY)
128 ############### libmmrpc ###############
129 include $(CLEAR_VARS)
131 LOCAL_C_INCLUDES += $(LOCAL_PATH) \
132                     $(LOCAL_PATH)/packages
134 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
135 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
136 LOCAL_MODULE_TAGS:= optional
138 LOCAL_SRC_FILES:= packages/ti/ipc/mm/MmRpc.c
140 LOCAL_SHARED_LIBRARIES := \
141     liblog
143 LOCAL_MODULE:= libmmrpc
144 include $(BUILD_SHARED_LIBRARY)
147 ############### lad_dra7xx ###############
148 include $(CLEAR_VARS)
150 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
151                      $(LOCAL_PATH)/packages \
152                      $(LOCAL_PATH)/hlos_common/include
154 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID -DGATEMP_SUPPORT -DDAEMON=0
155 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
156 LOCAL_MODULE_TAGS:= optional
158 LOCAL_SRC_FILES:= linux/src/daemon/lad.c \
159                   linux/src/daemon/Ipc_daemon.c \
160                   linux/src/daemon/MessageQ_daemon.c \
161                   linux/src/daemon/MultiProc_daemon.c \
162                   linux/src/daemon/NameServer_daemon.c \
163                   linux/src/daemon/cfg/MultiProcCfg_dra7xx.c \
164                   linux/src/daemon/GateMP_daemon.c \
165                   linux/src/daemon/GateHWSpinlock.c \
166                   linux/src/daemon/GateHWSpinlock_daemon.c \
167                   linux/src/daemon/cfg/GateHWSpinlockCfg_dra7xx.c \
168                   linux/src/daemon/cfg/IpcCfg.c \
169                   linux/src/daemon/cfg/MessageQCfg.c \
170                   linux/src/api/gates/GateMutex.c
172 LOCAL_SHARED_LIBRARIES := \
173     liblog libtiipcutils_lad
175 LOCAL_MODULE:= lad_dra7xx
176 include $(BUILD_EXECUTABLE)
179 ############### MessageQApp ###############
180 include $(CLEAR_VARS)
182 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
183                      $(LOCAL_PATH)/packages
185 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
186 LOCAL_MODULE_TAGS:= optional
188 LOCAL_SRC_FILES:= linux/src/tests/MessageQApp.c
190 LOCAL_SHARED_LIBRARIES := \
191     liblog libtiipcutils libtiipc libtitransportrpmsg
193 LOCAL_MODULE:= messageQApp
194 include $(BUILD_EXECUTABLE)
197 ############### MessageQBench ###############
198 include $(CLEAR_VARS)
200 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
201                      $(LOCAL_PATH)/packages
203 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
204 LOCAL_MODULE_TAGS:= optional
206 LOCAL_SRC_FILES:= linux/src/tests/MessageQBench.c
208 LOCAL_SHARED_LIBRARIES := \
209     liblog libtiipcutils libtiipc libtitransportrpmsg
211 LOCAL_MODULE:= messageQBench
212 include $(BUILD_EXECUTABLE)
215 ############### MessageQMulti ###############
216 include $(CLEAR_VARS)
218 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
219                      $(LOCAL_PATH)/packages
221 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
222 LOCAL_MODULE_TAGS:= optional
224 LOCAL_SRC_FILES:= linux/src/tests/MessageQMulti.c
226 LOCAL_SHARED_LIBRARIES := \
227     liblog libtiipcutils libtiipc libtitransportrpmsg
229 LOCAL_MODULE:= messageQMulti
230 include $(BUILD_EXECUTABLE)
233 ############# NameServerApp ###############
234 include $(CLEAR_VARS)
236 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
237                      $(LOCAL_PATH)/hlos_common/include \
238                      $(LOCAL_PATH)/packages
240 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
241 LOCAL_MODULE_TAGS:= optional
243 LOCAL_SRC_FILES:= linux/src/tests/NameServerApp.c
245 LOCAL_SHARED_LIBRARIES := \
246     liblog libtiipcutils libtiipc libtitransportrpmsg
248 LOCAL_MODULE:= nameServerApp
249 include $(BUILD_EXECUTABLE)
252 ############### ping_rpmsg ###############
253 include $(CLEAR_VARS)
255 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include
257 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
258 LOCAL_MODULE_TAGS:= optional
260 LOCAL_SRC_FILES:= linux/src/tests/ping_rpmsg.c
262 LOCAL_SHARED_LIBRARIES := \
263     liblog
265 LOCAL_MODULE:= ping_rpmsg
266 include $(BUILD_EXECUTABLE)
269 ############### MessageQFaultApp ###############
270 include $(CLEAR_VARS)
272 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
273                      $(LOCAL_PATH)/packages
275 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
276 LOCAL_MODULE_TAGS:= optional
278 LOCAL_SRC_FILES:= linux/src/tests/fault.c
280 LOCAL_SHARED_LIBRARIES := \
281     liblog libtiipcutils libtiipc libtitransportrpmsg
283 LOCAL_MODULE:= messageQFaultApp
284 include $(BUILD_EXECUTABLE)