Reset heapId after reading socket in TransportRpmsg
[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_MODULE_TAGS:= optional
44 LOCAL_SRC_FILES:= linux/src/api/MultiProc.c \
45                   linux/src/api/NameServer.c \
46                   linux/src/api/Ipc.c \
47                   linux/src/api/MessageQ.c \
48                   linux/src/api/gates/GateMP.c \
49                   linux/src/api/gates/GateMutex.c \
50                   linux/src/api/gates/GateHWSpinlock.c \
51                   linux/src/heaps/HeapStd.c
53 LOCAL_SHARED_LIBRARIES := \
54     liblog libtiipcutils
56 LOCAL_MODULE:= libtiipc
57 include $(BUILD_SHARED_LIBRARY)
60 ############### libtiipcutils ###############
61 include $(CLEAR_VARS)
63 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
64                      $(LOCAL_PATH)/packages \
65                      $(LOCAL_PATH)/hlos_common/include
67 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
68 LOCAL_MODULE_TAGS:= optional
70 LOCAL_SRC_FILES:= linux/src/utils/LAD_client.c \
71                   linux/src/utils/SocketFxns.c \
72                   linux/src/utils/MultiProc_app.c \
73                   hlos_common/src/utils/MultiProc.c
75 LOCAL_SHARED_LIBRARIES := \
76     liblog
78 LOCAL_MODULE:= libtiipcutils
79 include $(BUILD_SHARED_LIBRARY)
82 ############### libtiipcutils_lad ###############
83 include $(CLEAR_VARS)
85 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
86                      $(LOCAL_PATH)/packages \
87                      $(LOCAL_PATH)/hlos_common/include
89 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
90 LOCAL_MODULE_TAGS:= optional
92 LOCAL_SRC_FILES:= linux/src/utils/LAD_client.c \
93                   linux/src/utils/SocketFxns.c \
94                   hlos_common/src/utils/MultiProc.c
96 LOCAL_SHARED_LIBRARIES := \
97     liblog
99 LOCAL_ALLOW_UNDEFINED_SYMBOLS:= true
101 LOCAL_MODULE:= libtiipcutils_lad
102 include $(BUILD_SHARED_LIBRARY)
105 ############### libtitransportrpmsg ###############
106 include $(CLEAR_VARS)
108 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
109                      $(LOCAL_PATH)/packages \
110                      $(LOCAL_PATH)/hlos_common/include
112 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
113 LOCAL_MODULE_TAGS:= optional
115 LOCAL_SRC_FILES:= linux/src/transport/TransportRpmsg.c
117 LOCAL_SHARED_LIBRARIES := \
118     liblog libtiipcutils libtiipc
120 LOCAL_MODULE:= libtitransportrpmsg
121 include $(BUILD_SHARED_LIBRARY)
124 ############### libmmrpc ###############
125 include $(CLEAR_VARS)
127 LOCAL_C_INCLUDES += $(LOCAL_PATH) \
128                     $(LOCAL_PATH)/packages
130 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
131 LOCAL_MODULE_TAGS:= optional
133 LOCAL_SRC_FILES:= packages/ti/ipc/mm/MmRpc.c
135 LOCAL_SHARED_LIBRARIES := \
136     liblog
138 LOCAL_MODULE:= libmmrpc
139 include $(BUILD_SHARED_LIBRARY)
142 ############### lad_dra7xx ###############
143 include $(CLEAR_VARS)
145 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
146                      $(LOCAL_PATH)/packages \
147                      $(LOCAL_PATH)/hlos_common/include
149 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID -DGATEMP_SUPPORT
150 LOCAL_MODULE_TAGS:= optional
152 LOCAL_SRC_FILES:= linux/src/daemon/lad.c \
153                   linux/src/daemon/Ipc_daemon.c \
154                   linux/src/daemon/MessageQ_daemon.c \
155                   linux/src/daemon/MultiProc_daemon.c \
156                   linux/src/daemon/NameServer_daemon.c \
157                   linux/src/daemon/cfg/MultiProcCfg_dra7xx.c \
158                   linux/src/daemon/GateMP_daemon.c \
159                   linux/src/daemon/GateHWSpinlock.c \
160                   linux/src/daemon/GateHWSpinlock_daemon.c \
161                   linux/src/daemon/cfg/GateHWSpinlockCfg_dra7xx.c \
162                   linux/src/daemon/cfg/IpcCfg.c \
163                   linux/src/daemon/cfg/MessageQCfg.c \
164                   linux/src/api/gates/GateMutex.c
166 LOCAL_SHARED_LIBRARIES := \
167     liblog libtiipcutils_lad
169 LOCAL_MODULE:= lad_dra7xx
170 include $(BUILD_EXECUTABLE)
173 ############### MessageQApp ###############
174 include $(CLEAR_VARS)
176 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
177                      $(LOCAL_PATH)/packages
179 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
180 LOCAL_MODULE_TAGS:= optional
182 LOCAL_SRC_FILES:= linux/src/tests/MessageQApp.c
184 LOCAL_SHARED_LIBRARIES := \
185     liblog libtiipcutils libtiipc libtitransportrpmsg
187 LOCAL_MODULE:= messageQApp
188 include $(BUILD_EXECUTABLE)
191 ############### MessageQBench ###############
192 include $(CLEAR_VARS)
194 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
195                      $(LOCAL_PATH)/packages
197 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
198 LOCAL_MODULE_TAGS:= optional
200 LOCAL_SRC_FILES:= linux/src/tests/MessageQBench.c
202 LOCAL_SHARED_LIBRARIES := \
203     liblog libtiipcutils libtiipc libtitransportrpmsg
205 LOCAL_MODULE:= messageQBench
206 include $(BUILD_EXECUTABLE)
209 ############### MessageQMulti ###############
210 include $(CLEAR_VARS)
212 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
213                      $(LOCAL_PATH)/packages
215 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
216 LOCAL_MODULE_TAGS:= optional
218 LOCAL_SRC_FILES:= linux/src/tests/MessageQMulti.c
220 LOCAL_SHARED_LIBRARIES := \
221     liblog libtiipcutils libtiipc libtitransportrpmsg
223 LOCAL_MODULE:= messageQMulti
224 include $(BUILD_EXECUTABLE)
227 ############# NameServerApp ###############
228 include $(CLEAR_VARS)
230 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
231                      $(LOCAL_PATH)/hlos_common/include \
232                      $(LOCAL_PATH)/packages
234 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
235 LOCAL_MODULE_TAGS:= optional
237 LOCAL_SRC_FILES:= linux/src/tests/NameServerApp.c
239 LOCAL_SHARED_LIBRARIES := \
240     liblog libtiipcutils libtiipc libtitransportrpmsg
242 LOCAL_MODULE:= nameServerApp
243 include $(BUILD_EXECUTABLE)
246 ############### ping_rpmsg ###############
247 include $(CLEAR_VARS)
249 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include
251 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
252 LOCAL_MODULE_TAGS:= optional
254 LOCAL_SRC_FILES:= linux/src/tests/ping_rpmsg.c
256 LOCAL_SHARED_LIBRARIES := \
257     liblog
259 LOCAL_MODULE:= ping_rpmsg
260 include $(BUILD_EXECUTABLE)
263 ############### MessageQFaultApp ###############
264 include $(CLEAR_VARS)
266 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
267                      $(LOCAL_PATH)/packages
269 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
270 LOCAL_MODULE_TAGS:= optional
272 LOCAL_SRC_FILES:= linux/src/tests/fault.c
274 LOCAL_SHARED_LIBRARIES := \
275     liblog libtiipcutils libtiipc libtitransportrpmsg
277 LOCAL_MODULE:= messageQFaultApp
278 include $(BUILD_EXECUTABLE)