-
Notifications
You must be signed in to change notification settings - Fork 8
/
Android.mk
executable file
·124 lines (97 loc) · 2.6 KB
/
Android.mk
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
122
123
124
# Copyright (C) ST-Ericsson AB 2008-2009
# Copyright 2006 The Android Open Source Project
#
# Based on reference-ril
# Modified for ST-Ericsson U300 modems.
# Author: Christian Bejram <christian.bejram@stericsson.com>
#
# XXX using libutils for simulator build only...
#
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
u300-ril.c \
u300-ril-manager.c \
u300-ril-callhandling.c \
u300-ril-messaging.c \
u300-ril-network.c \
u300-ril-pdp.c \
u300-ril-requestdatahandler.c \
u300-ril-services.c \
u300-ril-sim.c \
u300-ril-stk.c \
u300-ril-audio.c \
u300-ril-information.c \
u300-ril-oem.cpp \
u300-ril-oem-parser.cpp \
atchannel.c \
misc.c \
fcp_parser.c \
at_tok.c
LOCAL_SHARED_LIBRARIES := \
libcutils \
libutils \
libbinder \
libril \
libnetutils
# For asprinf
LOCAL_CFLAGS := -D_GNU_SOURCE
LOCAL_C_INCLUDES := \
$(KERNEL_HEADERS) \
$(TOP)/hardware/ril/libril/ \
$(TOP)/system/core/libnetutils/ \
$(TOP)/external/astl/include/
# Disable prelink, or add to build/core/prelink-linux-arm.map
LOCAL_PRELINK_MODULE := false
LOCAL_LDLIBS += -lpthread
LOCAL_CFLAGS += -DRIL_SHLIB
LOCAL_CFLAGS += -DU300_RIL_OEM_MSG_SELFTEST
ifneq ($(ENABLE_REPORTING_ALERTING_UPON_MISSING_CALL_STATE_FROM_NETWORK),)
LOCAL_CFLAGS += DENABLE_REPORTING_ALERTING_UPON_MISSING_CALL_STATE_FROM_NETWORK
endif
ifneq ($(LTE_COMMAND_SET_ENABLED),)
LOCAL_CFLAGS += -DLTE_COMMAND_SET_ENABLED
endif
ifneq ($(EXTERNAL_MODEM_CONTROL_MODULE_DISABLED),)
LOCAL_CFLAGS += -DEXTERNAL_MODEM_CONTROL_MODULE_DISABLED
else
LOCAL_C_INCLUDES += \
$(TOP)/external/dbus/
LOCAL_SHARED_LIBRARIES += \
libdbus
LOCAL_LDLIBS += -ldbus
endif
ifneq ($(CAIF_SOCKET_SUPPORT_DISABLED),)
LOCAL_CFLAGS += -DCAIF_SOCKET_SUPPORT_DISABLED
else
LOCAL_SRC_FILES += u300-ril-netif.c
endif
ifneq ($(USE_EARLY_NITZ_TIME_SUBSCRIPTION),)
LOCAL_CFLAGS += -DUSE_EARLY_NITZ_TIME_SUBSCRIPTION
endif
ifneq ($(RIL_MAX_MTU),)
LOCAL_CFLAGS += -DRIL_MAX_MTU=$(RIL_MAX_MTU)
else
LOCAL_CFLAGS += -DRIL_MAX_MTU=1500
endif
ifneq ($(USE_LEGACY_SAT_AT_CMDS),)
LOCAL_CFLAGS += -DUSE_LEGACY_SAT_AT_CMDS
endif
ifneq ($(USE_EXT1_INSTEAD_OF_EXT5_WHEN_SIM_CARD_IS_2G_TYPE),)
LOCAL_CFLAGS += -DUSE_EXT1_INSTEAD_OF_EXT5_WHEN_SIM_CARD_IS_2G_TYPE
endif
LOCAL_MODULE := libu300-ril
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
##########
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
atchannel.c \
misc.c \
at_tok.c
LOCAL_SHARED_LIBRARIES := libcutils libdbus
# Disable prelink, or add to build/core/prelink-linux-arm.map
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := libu300-parser
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)