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
120
121
|
# This file is part of libsamsung-ipc.
#
# Copyright (C) 2011-2014 Paul Kocialkowski <contact@paulk.fr>
#
# libsamsung-ipc is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# libsamsung-ipc is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
ifneq (,$(filter crespo,$(TARGET_DEVICE)))
ipc_device_name := crespo
endif
ifneq (,$(filter galaxysmtd galaxytab,$(TARGET_DEVICE)))
ipc_device_name := aries
endif
ifneq (,$(filter i9100 galaxys2 n7000,$(TARGET_DEVICE)))
ipc_device_name := galaxys2
endif
ifneq (,$(filter maguro,$(TARGET_DEVICE)))
ipc_device_name := maguro
endif
ifneq (,$(filter p5100 p3100,$(TARGET_DEVICE)))
ipc_device_name := piranha
endif
ifneq (,$(filter i9300,$(TARGET_DEVICE)))
ipc_device_name := i9300
endif
ifneq (,$(filter n7100,$(TARGET_DEVICE)))
ipc_device_name := n7100
endif
LOCAL_SRC_FILES := \
samsung-ipc/ipc.c \
samsung-ipc/ipc_devices.c \
samsung-ipc/ipc_utils.c \
samsung-ipc/devices/xmm616/xmm616.c \
samsung-ipc/devices/xmm626/xmm626.c \
samsung-ipc/devices/xmm626/xmm626_hsic.c \
samsung-ipc/devices/xmm626/xmm626_mipi.c \
samsung-ipc/devices/xmm626/xmm626_sec_modem.c \
samsung-ipc/devices/crespo/crespo.c \
samsung-ipc/devices/aries/aries.c \
samsung-ipc/devices/galaxys2/galaxys2.c \
samsung-ipc/devices/maguro/maguro.c \
samsung-ipc/devices/piranha/piranha.c \
samsung-ipc/devices/i9300/i9300.c \
samsung-ipc/devices/n7100/n7100.c \
samsung-ipc/utils.c \
samsung-ipc/call.c \
samsung-ipc/sms.c \
samsung-ipc/sec.c \
samsung-ipc/net.c \
samsung-ipc/misc.c \
samsung-ipc/svc.c \
samsung-ipc/gprs.c \
samsung-ipc/rfs.c \
samsung-ipc/gen.c
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/samsung-ipc \
$(LOCAL_PATH)/samsung-ipc/devices/xmm616/ \
$(LOCAL_PATH)/samsung-ipc/devices/xmm626/ \
external/openssl/include
LOCAL_CFLAGS := \
-DIPC_DEVICE_NAME=\"$(ipc_device_name)\" \
-DDEBUG
LOCAL_SHARED_LIBRARIES := libutils libcrypto
LOCAL_MODULE := libsamsung-ipc
LOCAL_MODULE_TAGS := optional
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := tools/ipc-modem.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_STATIC_LIBRARIES := libsamsung-ipc
LOCAL_SHARED_LIBRARIES := libutils
LOCAL_MODULE := ipc-modem
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := tools/ipc-test.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_STATIC_LIBRARIES := libsamsung-ipc
LOCAL_SHARED_LIBRARIES := libutils
LOCAL_MODULE := ipc-test
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
|