blob: 0f0c5d7cd46244b37f2825ed0a5d75a60009b817 [file] [log] [blame]
Jeff Johnson2c24a3b2012-12-10 12:28:11 -08001# We can build either as part of a standalone Kernel build or part
2# of an Android build. Determine which mechanism is being used
3ifeq ($(MODNAME),)
4 KERNEL_BUILD := 1
5else
6 KERNEL_BUILD := 0
7endif
8
9ifeq ($(KERNEL_BUILD),1)
10 # These are provided in Android-based builds
11 # Need to explicitly define for Kernel-based builds
12 MODNAME := wlan
Jeff Johnson91a420a2012-12-16 11:16:18 -080013 WLAN_ROOT := drivers/staging/prima
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080014endif
15
Amar Singhalfddc28c2013-09-05 13:03:40 -070016ifeq ($(KERNEL_BUILD), 0)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080017 # These are configurable via Kconfig for kernel-based builds
18 # Need to explicitly configure for Android-based builds
19
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080020 #Flag to enable BlueTooth AMP feature
21 CONFIG_PRIMA_WLAN_BTAMP := n
22
23 #Flag to enable Legacy Fast Roaming(LFR)
24 CONFIG_PRIMA_WLAN_LFR := y
25
26 #JB kernel has PMKSA patches, hence enabling this flag
27 CONFIG_PRIMA_WLAN_OKC := y
28
29 # JB kernel has CPU enablement patches, so enable
30 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y
Kiran Venkatappad52a3c72012-12-27 17:25:33 -080031
32 #Flag to enable TDLS feature
33 CONFIG_QCOM_TDLS := y
Gopichand Nakkalad7d13652013-02-15 01:48:00 +053034
35 #Flag to enable Fast Transition (11r) feature
Gopichand Nakkalafebb97e2013-04-18 19:25:48 +053036 CONFIG_QCOM_VOWIFI_11R := y
Gopichand Nakkalad7d13652013-02-15 01:48:00 +053037
Chet Lanctot6802b302013-04-04 16:50:46 -070038 #Flag to enable Protected Managment Frames (11w) feature
39 ifneq ($(CONFIG_PRONTO_WLAN),)
40 CONFIG_WLAN_FEATURE_11W := y
41 endif
42
Amar Singhalfddc28c2013-09-05 13:03:40 -070043 #Flag to enable new Linux Regulatory implementation
44 CONFIG_ENABLE_LINUX_REG := y
45
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080046endif
47
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080048# To enable CONFIG_QCOM_ESE_UPLOAD, dependent config
49# CONFIG_QCOM_ESE must be enabled.
50CONFIG_QCOM_ESE := n
51CONFIG_QCOM_ESE_UPLOAD := n
Srinivas Girigowda5cecb202013-10-08 09:13:25 -070052
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080053# Feature flags which are not (currently) configurable via Kconfig
54
Jeff Johnson25abf4d2012-12-01 12:42:42 -080055#Whether to build debug version
56BUILD_DEBUG_VERSION := 1
57
58#Enable this flag to build driver in diag version
Bansidhar Gopalacharia4e08982013-05-10 15:25:23 -070059BUILD_DIAG_VERSION := 1
Jeff Johnson25abf4d2012-12-01 12:42:42 -080060
61#Do we panic on bug? default is to warn
Sameer Thalappil451ebb92013-06-28 15:49:58 -070062PANIC_ON_BUG := 1
Jeff Johnson25abf4d2012-12-01 12:42:42 -080063
64#Re-enable wifi on WDI timeout
65RE_ENABLE_WIFI_ON_WDI_TIMEOUT := 0
66
Mukul Sharmad96e5e32014-06-25 17:45:39 +053067#Measure Roam Delay
68MEASURE_ROAM_TIME_DELAY := 0
Jeff Johnson25abf4d2012-12-01 12:42:42 -080069
70ifeq ($(CONFIG_CFG80211),y)
71HAVE_CFG80211 := 1
72else
73ifeq ($(CONFIG_CFG80211),m)
74HAVE_CFG80211 := 1
Jeff Johnson25abf4d2012-12-01 12:42:42 -080075else
76HAVE_CFG80211 := 0
77endif
78endif
79
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080080############ BAP ############
81BAP_DIR := CORE/BAP
82BAP_INC_DIR := $(BAP_DIR)/inc
83BAP_SRC_DIR := $(BAP_DIR)/src
84
Jeff Johnson91a420a2012-12-16 11:16:18 -080085BAP_INC := -I$(WLAN_ROOT)/$(BAP_INC_DIR) \
86 -I$(WLAN_ROOT)/$(BAP_SRC_DIR)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080087
88BAP_OBJS := $(BAP_SRC_DIR)/bapApiData.o \
89 $(BAP_SRC_DIR)/bapApiDebug.o \
90 $(BAP_SRC_DIR)/bapApiExt.o \
91 $(BAP_SRC_DIR)/bapApiHCBB.o \
92 $(BAP_SRC_DIR)/bapApiInfo.o \
93 $(BAP_SRC_DIR)/bapApiLinkCntl.o \
94 $(BAP_SRC_DIR)/bapApiLinkSupervision.o \
95 $(BAP_SRC_DIR)/bapApiStatus.o \
96 $(BAP_SRC_DIR)/bapApiTimer.o \
97 $(BAP_SRC_DIR)/bapModule.o \
98 $(BAP_SRC_DIR)/bapRsn8021xAuthFsm.o \
99 $(BAP_SRC_DIR)/bapRsn8021xPrf.o \
100 $(BAP_SRC_DIR)/bapRsn8021xSuppRsnFsm.o \
101 $(BAP_SRC_DIR)/bapRsnAsfPacket.o \
102 $(BAP_SRC_DIR)/bapRsnSsmAesKeyWrap.o \
103 $(BAP_SRC_DIR)/bapRsnSsmEapol.o \
104 $(BAP_SRC_DIR)/bapRsnSsmReplayCtr.o \
105 $(BAP_SRC_DIR)/bapRsnTxRx.o \
106 $(BAP_SRC_DIR)/btampFsm.o \
107 $(BAP_SRC_DIR)/btampHCI.o
108
109############ DXE ############
110DXE_DIR := CORE/DXE
111DXE_INC_DIR := $(DXE_DIR)/inc
112DXE_SRC_DIR := $(DXE_DIR)/src
113
Jeff Johnson91a420a2012-12-16 11:16:18 -0800114DXE_INC := -I$(WLAN_ROOT)/$(DXE_INC_DIR) \
115 -I$(WLAN_ROOT)/$(DXE_SRC_DIR)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800116
117DXE_OBJS = $(DXE_SRC_DIR)/wlan_qct_dxe.o \
118 $(DXE_SRC_DIR)/wlan_qct_dxe_cfg_i.o
119
120############ HDD ############
121HDD_DIR := CORE/HDD
122HDD_INC_DIR := $(HDD_DIR)/inc
123HDD_SRC_DIR := $(HDD_DIR)/src
124
Jeff Johnson91a420a2012-12-16 11:16:18 -0800125HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
126 -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800127
128HDD_OBJS := $(HDD_SRC_DIR)/bap_hdd_main.o \
129 $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
130 $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
Yue Ma0d4891e2013-08-06 17:01:45 -0700131 $(HDD_SRC_DIR)/wlan_hdd_debugfs.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800132 $(HDD_SRC_DIR)/wlan_hdd_dev_pwr.o \
133 $(HDD_SRC_DIR)/wlan_hdd_dp_utils.o \
134 $(HDD_SRC_DIR)/wlan_hdd_early_suspend.o \
135 $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
136 $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800137 $(HDD_SRC_DIR)/wlan_hdd_main.o \
138 $(HDD_SRC_DIR)/wlan_hdd_mib.o \
Yue Ma0d4891e2013-08-06 17:01:45 -0700139 $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800140 $(HDD_SRC_DIR)/wlan_hdd_scan.o \
141 $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
142 $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
Sushant Kaushik4b7cb302014-01-06 17:45:01 +0530143 $(HDD_SRC_DIR)/wlan_hdd_trace.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800144 $(HDD_SRC_DIR)/wlan_hdd_wext.o \
145 $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
146 $(HDD_SRC_DIR)/wlan_hdd_wowl.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800147
148ifeq ($(HAVE_CFG80211),1)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800149HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
150 $(HDD_SRC_DIR)/wlan_hdd_p2p.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800151endif
152
153ifeq ($(CONFIG_QCOM_TDLS),y)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800154HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800155endif
156
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800157############ MAC ############
158MAC_DIR := CORE/MAC
159MAC_INC_DIR := $(MAC_DIR)/inc
160MAC_SRC_DIR := $(MAC_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800161
Jeff Johnson91a420a2012-12-16 11:16:18 -0800162MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
163 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
164 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
165 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
166 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800167
168MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfgApi.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800169 $(MAC_SRC_DIR)/cfg/cfgDebug.o \
170 $(MAC_SRC_DIR)/cfg/cfgParamName.o \
171 $(MAC_SRC_DIR)/cfg/cfgProcMsg.o \
172 $(MAC_SRC_DIR)/cfg/cfgSendMsg.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800173
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800174MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dphHashTable.o
175
176MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/limAIDmgmt.o \
177 $(MAC_SRC_DIR)/pe/lim/limAdmitControl.o \
178 $(MAC_SRC_DIR)/pe/lim/limApi.o \
179 $(MAC_SRC_DIR)/pe/lim/limAssocUtils.o \
180 $(MAC_SRC_DIR)/pe/lim/limDebug.o \
181 $(MAC_SRC_DIR)/pe/lim/limFT.o \
182 $(MAC_SRC_DIR)/pe/lim/limIbssPeerMgmt.o \
183 $(MAC_SRC_DIR)/pe/lim/limLinkMonitoringAlgo.o \
184 $(MAC_SRC_DIR)/pe/lim/limLogDump.o \
185 $(MAC_SRC_DIR)/pe/lim/limP2P.o \
186 $(MAC_SRC_DIR)/pe/lim/limProcessActionFrame.o \
187 $(MAC_SRC_DIR)/pe/lim/limProcessAssocReqFrame.o \
188 $(MAC_SRC_DIR)/pe/lim/limProcessAssocRspFrame.o \
189 $(MAC_SRC_DIR)/pe/lim/limProcessAuthFrame.o \
190 $(MAC_SRC_DIR)/pe/lim/limProcessBeaconFrame.o \
191 $(MAC_SRC_DIR)/pe/lim/limProcessCfgUpdates.o \
192 $(MAC_SRC_DIR)/pe/lim/limProcessDeauthFrame.o \
193 $(MAC_SRC_DIR)/pe/lim/limProcessDisassocFrame.o \
194 $(MAC_SRC_DIR)/pe/lim/limProcessLmmMessages.o \
195 $(MAC_SRC_DIR)/pe/lim/limProcessMessageQueue.o \
196 $(MAC_SRC_DIR)/pe/lim/limProcessMlmReqMessages.o \
197 $(MAC_SRC_DIR)/pe/lim/limProcessMlmRspMessages.o \
198 $(MAC_SRC_DIR)/pe/lim/limProcessProbeReqFrame.o \
199 $(MAC_SRC_DIR)/pe/lim/limProcessProbeRspFrame.o \
200 $(MAC_SRC_DIR)/pe/lim/limProcessSmeReqMessages.o \
201 $(MAC_SRC_DIR)/pe/lim/limPropExtsUtils.o \
202 $(MAC_SRC_DIR)/pe/lim/limRoamingAlgo.o \
203 $(MAC_SRC_DIR)/pe/lim/limScanResultUtils.o \
204 $(MAC_SRC_DIR)/pe/lim/limSecurityUtils.o \
205 $(MAC_SRC_DIR)/pe/lim/limSendManagementFrames.o \
206 $(MAC_SRC_DIR)/pe/lim/limSendMessages.o \
207 $(MAC_SRC_DIR)/pe/lim/limSendSmeRspMessages.o \
208 $(MAC_SRC_DIR)/pe/lim/limSerDesUtils.o \
209 $(MAC_SRC_DIR)/pe/lim/limSession.o \
210 $(MAC_SRC_DIR)/pe/lim/limSessionUtils.o \
211 $(MAC_SRC_DIR)/pe/lim/limSmeReqUtils.o \
212 $(MAC_SRC_DIR)/pe/lim/limStaHashApi.o \
213 $(MAC_SRC_DIR)/pe/lim/limTimerUtils.o \
214 $(MAC_SRC_DIR)/pe/lim/limTrace.o \
215 $(MAC_SRC_DIR)/pe/lim/limUtils.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800216
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800217ifeq ($(CONFIG_QCOM_ESE),y)
218ifneq ($(CONFIG_QCOM_ESE_UPLOAD),y)
219MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/limProcessEseFrame.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800220endif
Srinivas Girigowda5cecb202013-10-08 09:13:25 -0700221endif
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800222
223ifeq ($(CONFIG_QCOM_TDLS),y)
224MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/limProcessTdls.o
225endif
226
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800227MAC_PMM_OBJS := $(MAC_SRC_DIR)/pe/pmm/pmmAP.o \
228 $(MAC_SRC_DIR)/pe/pmm/pmmApi.o \
229 $(MAC_SRC_DIR)/pe/pmm/pmmDebug.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800230
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800231MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/schApi.o \
232 $(MAC_SRC_DIR)/pe/sch/schBeaconGen.o \
233 $(MAC_SRC_DIR)/pe/sch/schBeaconProcess.o \
234 $(MAC_SRC_DIR)/pe/sch/schDebug.o \
235 $(MAC_SRC_DIR)/pe/sch/schMessage.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800236
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800237MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrmApi.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800238
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800239MAC_OBJS := $(MAC_CFG_OBJS) \
240 $(MAC_DPH_OBJS) \
241 $(MAC_LIM_OBJS) \
242 $(MAC_PMM_OBJS) \
243 $(MAC_SCH_OBJS) \
244 $(MAC_RRM_OBJS)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800245
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800246############ SAP ############
247SAP_DIR := CORE/SAP
248SAP_INC_DIR := $(SAP_DIR)/inc
249SAP_SRC_DIR := $(SAP_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800250
Jeff Johnson91a420a2012-12-16 11:16:18 -0800251SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
252 -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800253
254SAP_OBJS := $(SAP_SRC_DIR)/sapApiLinkCntl.o \
255 $(SAP_SRC_DIR)/sapChSelect.o \
256 $(SAP_SRC_DIR)/sapFsm.o \
257 $(SAP_SRC_DIR)/sapModule.o
258
259############ SME ############
260SME_DIR := CORE/SME
261SME_INC_DIR := $(SME_DIR)/inc
262SME_SRC_DIR := $(SME_DIR)/src
263
Jeff Johnson91a420a2012-12-16 11:16:18 -0800264SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
265 -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800266
267SME_CCM_OBJS := $(SME_SRC_DIR)/ccm/ccmApi.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800268 $(SME_SRC_DIR)/ccm/ccmLogDump.o
269
270SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csrApiRoam.o \
271 $(SME_SRC_DIR)/csr/csrApiScan.o \
272 $(SME_SRC_DIR)/csr/csrCmdProcess.o \
273 $(SME_SRC_DIR)/csr/csrLinkList.o \
274 $(SME_SRC_DIR)/csr/csrLogDump.o \
275 $(SME_SRC_DIR)/csr/csrNeighborRoam.o \
276 $(SME_SRC_DIR)/csr/csrUtil.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800277
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800278ifeq ($(CONFIG_QCOM_ESE),y)
279ifneq ($(CONFIG_QCOM_ESE_UPLOAD),y)
280SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csrEse.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800281endif
Srinivas Girigowda5cecb202013-10-08 09:13:25 -0700282endif
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800283
284ifeq ($(CONFIG_QCOM_TDLS),y)
285SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csrTdlsProcess.o
286endif
287
288SME_PMC_OBJS := $(SME_SRC_DIR)/pmc/pmcApi.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800289 $(SME_SRC_DIR)/pmc/pmc.o \
290 $(SME_SRC_DIR)/pmc/pmcLogDump.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800291
292SME_QOS_OBJS := $(SME_SRC_DIR)/QoS/sme_Qos.o
293
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800294SME_CMN_OBJS := $(SME_SRC_DIR)/sme_common/sme_Api.o \
Leela Venkata Kiran Kumar Reddy Chirala7367c202013-04-10 22:39:51 -0700295 $(SME_SRC_DIR)/sme_common/sme_FTApi.o \
296 $(SME_SRC_DIR)/sme_common/sme_Trace.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800297
298SME_BTC_OBJS := $(SME_SRC_DIR)/btc/btcApi.o
299
300SME_OEM_DATA_OBJS := $(SME_SRC_DIR)/oemData/oemDataApi.o
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800301
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800302SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_Api.o
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800303
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800304SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
305
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800306SME_OBJS := $(SME_BTC_OBJS) \
307 $(SME_CCM_OBJS) \
308 $(SME_CMN_OBJS) \
309 $(SME_CSR_OBJS) \
310 $(SME_OEM_DATA_OBJS) \
311 $(SME_P2P_OBJS) \
312 $(SME_PMC_OBJS) \
313 $(SME_QOS_OBJS) \
314 $(SME_RRM_OBJS)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800315
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800316############ SVC ############
317SVC_DIR := CORE/SVC
318SVC_INC_DIR := $(SVC_DIR)/inc
319SVC_SRC_DIR := $(SVC_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800320
Jeff Johnson91a420a2012-12-16 11:16:18 -0800321SVC_INC := -I$(WLAN_ROOT)/$(SVC_INC_DIR) \
322 -I$(WLAN_ROOT)/$(SVC_DIR)/external
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800323
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800324BTC_SRC_DIR := $(SVC_SRC_DIR)/btc
325BTC_OBJS := $(BTC_SRC_DIR)/wlan_btc_svc.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800326
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800327NLINK_SRC_DIR := $(SVC_SRC_DIR)/nlink
328NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800329
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800330PTT_SRC_DIR := $(SVC_SRC_DIR)/ptt
331PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800332
Vinay Krishna Erannad938c422014-03-10 17:14:21 +0530333WLAN_LOGGING_SRC_DIR := $(SVC_SRC_DIR)/logging
334WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o
335
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800336SVC_OBJS := $(BTC_OBJS) \
337 $(NLINK_OBJS) \
Vinay Krishna Erannad938c422014-03-10 17:14:21 +0530338 $(PTT_OBJS) \
339 $(WLAN_LOGGING_OBJS)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800340
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800341############ SYS ############
342SYS_DIR := CORE/SYS
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800343
Jeff Johnson91a420a2012-12-16 11:16:18 -0800344SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
345 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/pal/inc \
346 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
347 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
348 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800349
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800350SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
351SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
352SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
353 $(SYS_LEGACY_SRC_DIR)/pal/src/palApiComm.o \
354 $(SYS_LEGACY_SRC_DIR)/pal/src/palTimer.o \
355 $(SYS_LEGACY_SRC_DIR)/platform/src/VossWrapper.o \
356 $(SYS_LEGACY_SRC_DIR)/system/src/macInitApi.o \
357 $(SYS_LEGACY_SRC_DIR)/system/src/sysEntryFunc.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800358 $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
359 $(SYS_LEGACY_SRC_DIR)/utils/src/logApi.o \
360 $(SYS_LEGACY_SRC_DIR)/utils/src/logDump.o \
361 $(SYS_LEGACY_SRC_DIR)/utils/src/macTrace.o \
362 $(SYS_LEGACY_SRC_DIR)/utils/src/parserApi.o \
363 $(SYS_LEGACY_SRC_DIR)/utils/src/utilsApi.o \
364 $(SYS_LEGACY_SRC_DIR)/utils/src/utilsParser.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800365
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800366############ TL ############
367TL_DIR := CORE/TL
368TL_INC_DIR := $(TL_DIR)/inc
369TL_SRC_DIR := $(TL_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800370
Jeff Johnson91a420a2012-12-16 11:16:18 -0800371TL_INC := -I$(WLAN_ROOT)/$(TL_INC_DIR) \
372 -I$(WLAN_ROOT)/$(TL_SRC_DIR)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800373
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800374TL_OBJS := $(TL_SRC_DIR)/wlan_qct_tl.o \
375 $(TL_SRC_DIR)/wlan_qct_tl_ba.o \
Katya Nigam42e16e82014-02-04 16:28:55 +0530376 $(TL_SRC_DIR)/wlan_qct_tl_hosupport.o \
377 $(TL_SRC_DIR)/wlan_qct_tl_trace.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800378
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800379############ VOSS ############
380VOSS_DIR := CORE/VOSS
381VOSS_INC_DIR := $(VOSS_DIR)/inc
382VOSS_SRC_DIR := $(VOSS_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800383
Jeff Johnson91a420a2012-12-16 11:16:18 -0800384VOSS_INC := -I$(WLAN_ROOT)/$(VOSS_INC_DIR) \
385 -I$(WLAN_ROOT)/$(VOSS_SRC_DIR)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800386
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800387VOSS_OBJS := $(VOSS_SRC_DIR)/vos_api.o \
388 $(VOSS_SRC_DIR)/vos_event.o \
389 $(VOSS_SRC_DIR)/vos_getBin.o \
390 $(VOSS_SRC_DIR)/vos_list.o \
391 $(VOSS_SRC_DIR)/vos_lock.o \
392 $(VOSS_SRC_DIR)/vos_memory.o \
393 $(VOSS_SRC_DIR)/vos_mq.o \
394 $(VOSS_SRC_DIR)/vos_nvitem.o \
395 $(VOSS_SRC_DIR)/vos_packet.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800396 $(VOSS_SRC_DIR)/vos_sched.o \
397 $(VOSS_SRC_DIR)/vos_threads.o \
398 $(VOSS_SRC_DIR)/vos_timer.o \
399 $(VOSS_SRC_DIR)/vos_trace.o \
400 $(VOSS_SRC_DIR)/vos_types.o \
Prasanna Kumarf6c94ae2013-04-11 20:05:21 -0700401 $(VOSS_SRC_DIR)/vos_utils.o \
402 $(VOSS_SRC_DIR)/wlan_nv_parser.o \
403 $(VOSS_SRC_DIR)/wlan_nv_stream_read.o \
404 $(VOSS_SRC_DIR)/wlan_nv_template_builtin.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800405
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800406ifeq ($(BUILD_DIAG_VERSION),1)
407VOSS_OBJS += $(VOSS_SRC_DIR)/vos_diag.o
408endif
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800409
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800410############ WDA ############
411WDA_DIR := CORE/WDA
412WDA_INC_DIR := $(WDA_DIR)/inc
413WDA_SRC_DIR := $(WDA_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800414
Jeff Johnson91a420a2012-12-16 11:16:18 -0800415WDA_INC := -I$(WLAN_ROOT)/$(WDA_INC_DIR) \
416 -I$(WLAN_ROOT)/$(WDA_INC_DIR)/legacy \
417 -I$(WLAN_ROOT)/$(WDA_SRC_DIR)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800418
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800419WDA_OBJS := $(WDA_SRC_DIR)/wlan_qct_wda.o \
420 $(WDA_SRC_DIR)/wlan_qct_wda_debug.o \
421 $(WDA_SRC_DIR)/wlan_qct_wda_ds.o \
422 $(WDA_SRC_DIR)/wlan_qct_wda_legacy.o \
423 $(WDA_SRC_DIR)/wlan_nv.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800424
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800425############ WDI ############
426WDI_DIR := CORE/WDI
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800427
Jeff Johnson91a420a2012-12-16 11:16:18 -0800428WDI_CP_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/CP/inc/
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800429
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800430WDI_CP_SRC_DIR := $(WDI_DIR)/CP/src
431WDI_CP_OBJS := $(WDI_CP_SRC_DIR)/wlan_qct_wdi.o \
432 $(WDI_CP_SRC_DIR)/wlan_qct_wdi_dp.o \
433 $(WDI_CP_SRC_DIR)/wlan_qct_wdi_sta.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800434
Jeff Johnson91a420a2012-12-16 11:16:18 -0800435WDI_DP_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/DP/inc/
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800436
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800437WDI_DP_SRC_DIR := $(WDI_DIR)/DP/src
438WDI_DP_OBJS := $(WDI_DP_SRC_DIR)/wlan_qct_wdi_bd.o \
439 $(WDI_DP_SRC_DIR)/wlan_qct_wdi_ds.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800440
Jeff Johnson91a420a2012-12-16 11:16:18 -0800441WDI_TRP_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/TRP/CTS/inc/ \
442 -I$(WLAN_ROOT)/$(WDI_DIR)/TRP/DTS/inc/
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800443
444WDI_TRP_CTS_SRC_DIR := $(WDI_DIR)/TRP/CTS/src
Jeff Johnson91a420a2012-12-16 11:16:18 -0800445WDI_TRP_CTS_OBJS := $(WDI_TRP_CTS_SRC_DIR)/wlan_qct_wdi_cts.o
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800446
447WDI_TRP_DTS_SRC_DIR := $(WDI_DIR)/TRP/DTS/src
Jeff Johnson91a420a2012-12-16 11:16:18 -0800448WDI_TRP_DTS_OBJS := $(WDI_TRP_DTS_SRC_DIR)/wlan_qct_wdi_dts.o
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800449
450WDI_TRP_OBJS := $(WDI_TRP_CTS_OBJS) \
451 $(WDI_TRP_DTS_OBJS)
452
Jeff Johnson91a420a2012-12-16 11:16:18 -0800453WDI_WPAL_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/WPAL/inc
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800454
455WDI_WPAL_SRC_DIR := $(WDI_DIR)/WPAL/src
456WDI_WPAL_OBJS := $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_api.o \
457 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_device.o \
458 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_msg.o \
459 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_packet.o \
460 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_sync.o \
461 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_timer.o \
462 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_trace.o
463
464WDI_INC := $(WDI_CP_INC) \
465 $(WDI_DP_INC) \
466 $(WDI_TRP_INC) \
467 $(WDI_WPAL_INC)
468
469WDI_OBJS := $(WDI_CP_OBJS) \
470 $(WDI_DP_OBJS) \
471 $(WDI_TRP_OBJS) \
472 $(WDI_WPAL_OBJS)
473
474
Jeff Johnson91a420a2012-12-16 11:16:18 -0800475RIVA_INC := -I$(WLAN_ROOT)/riva/inc
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800476
477LINUX_INC := -Iinclude/linux
478
479INCS := $(BAP_INC) \
480 $(DXE_INC) \
481 $(HDD_INC) \
482 $(LINUX_INC) \
483 $(MAC_INC) \
484 $(RIVA_INC) \
485 $(SAP_INC) \
486 $(SME_INC) \
487 $(SVC_INC) \
488 $(SYS_INC) \
489 $(TL_INC) \
490 $(VOSS_INC) \
491 $(WDA_INC) \
492 $(WDI_INC)
493
494OBJS := $(BAP_OBJS) \
495 $(DXE_OBJS) \
496 $(HDD_OBJS) \
497 $(MAC_OBJS) \
498 $(SAP_OBJS) \
499 $(SME_OBJS) \
500 $(SVC_OBJS) \
501 $(SYS_OBJS) \
502 $(TL_OBJS) \
503 $(VOSS_OBJS) \
504 $(WDA_OBJS) \
505 $(WDI_OBJS)
506
507EXTRA_CFLAGS += $(INCS)
508
Jeff Johnsoncfc48eb2013-03-06 09:50:58 -0800509CDEFINES := -DANI_BUS_TYPE_PLATFORM=1 \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800510 -DANI_LITTLE_BYTE_ENDIAN \
511 -DANI_LITTLE_BIT_ENDIAN \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800512 -DQC_WLAN_CHIPSET_PRIMA \
513 -DINTEGRATION_READY \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800514 -DDOT11F_LITTLE_ENDIAN_HOST \
515 -DGEN6_ONWARDS \
516 -DANI_COMPILER_TYPE_GCC \
517 -DANI_OS_TYPE_ANDROID=6 \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800518 -DANI_LOGDUMP \
519 -DWLAN_PERF \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800520 -DPTT_SOCK_SVC_ENABLE \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800521 -Wall\
522 -D__linux__ \
523 -DMSM_PLATFORM \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800524 -DHAL_SELF_STA_PER_BSS=1 \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800525 -DWLAN_FEATURE_VOWIFI_11R \
526 -DWLAN_FEATURE_NEIGHBOR_ROAMING \
527 -DWLAN_FEATURE_NEIGHBOR_ROAMING_DEBUG \
528 -DWLAN_FEATURE_VOWIFI_11R_DEBUG \
529 -DFEATURE_WLAN_WAPI \
530 -DFEATURE_OEM_DATA_SUPPORT\
531 -DSOFTAP_CHANNEL_RANGE \
532 -DWLAN_AP_STA_CONCURRENCY \
533 -DFEATURE_WLAN_SCAN_PNO \
534 -DWLAN_FEATURE_PACKET_FILTERING \
535 -DWLAN_FEATURE_VOWIFI \
536 -DWLAN_FEATURE_11AC \
537 -DWLAN_FEATURE_P2P_DEBUG \
Yathish9f22e662012-12-10 14:21:35 -0800538 -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
Ravi Kumar Vaishnavb7652402013-01-18 19:05:15 -0800539 -DWLANTL_DEBUG\
Madan Mohan Koyyalamudi54c671e2013-07-25 11:54:26 +0530540 -DWLAN_NS_OFFLOAD \
Gopichand Nakkala7fcc6de2012-12-21 07:38:04 -0800541 -DWLAN_ACTIVEMODE_OFFLOAD_FEATURE \
Kumar Anandaca924e2013-07-22 14:35:34 -0700542 -DWLAN_FEATURE_HOLD_RX_WAKELOCK \
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700543 -DWLAN_SOFTAP_VSTA_FEATURE \
Kumar Anandaca924e2013-07-22 14:35:34 -0700544 -DWLAN_FEATURE_ROAM_SCAN_OFFLOAD \
545 -DWLAN_FEATURE_GTK_OFFLOAD \
Leo Chang0882b352013-08-19 16:20:13 -0700546 -DWLAN_WAKEUP_EVENTS \
Leo Chang397deb72013-08-22 11:33:16 -0700547 -DWLAN_KD_READY_NOTIFIER \
Leo Changd9df8aa2013-09-26 13:32:26 -0700548 -DWLAN_NL80211_TESTMODE \
Rajeev79dbe4c2013-10-05 11:03:42 +0530549 -DFEATURE_WLAN_BATCH_SCAN \
Hema Aparna Medicharla830d59a2013-11-16 21:41:34 +0530550 -DFEATURE_WLAN_LPHB \
Kiet Lamcb76f1b2013-12-01 02:21:14 +0530551 -DFEATURE_WLAN_PAL_TIMER_DISABLE \
Leo Chang80de3c22013-11-26 10:52:12 -0800552 -DFEATURE_WLAN_PAL_MEM_DISABLE \
Mihir Shete5929ea52014-02-18 00:10:36 +0530553 -DFEATURE_WLAN_CH144 \
Mihir Shete44547fb2014-03-10 14:15:42 +0530554 -DWLAN_BUG_ON_SKB_ERROR \
Vinay Krishna Erannad938c422014-03-10 17:14:21 +0530555 -DWLAN_DXE_LOW_RESOURCE_TIMER \
Sunil Duttc69bccb2014-05-26 21:30:20 +0530556 -DWLAN_LOGGING_SOCK_SVC_ENABLE \
Dino Mycle6fb96c12014-06-10 11:52:40 +0530557 -DWLAN_FEATURE_LINK_LAYER_STATS \
558 -DWLAN_FEATURE_EXTSCAN
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800559
Jeff Johnson91a420a2012-12-16 11:16:18 -0800560ifneq ($(CONFIG_PRONTO_WLAN),)
561CDEFINES += -DWCN_PRONTO
562CDEFINES += -DWCN_PRONTO_V1
563endif
564
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800565ifeq ($(BUILD_DEBUG_VERSION),1)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800566CDEFINES += -DWLAN_DEBUG \
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800567 -DTRACE_RECORD \
Leela V Kiran Kumar Reddy Chiralac3b9d382013-01-31 20:49:53 -0800568 -DLIM_TRACE_RECORD \
Leela Venkata Kiran Kumar Reddy Chirala7367c202013-04-10 22:39:51 -0700569 -DSME_TRACE_RECORD \
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800570 -DPE_DEBUG_LOGW \
571 -DPE_DEBUG_LOGE \
572 -DDEBUG
573endif
574
575ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
576CDEFINES += -DTIMER_MANAGER
577CDEFINES += -DMEMORY_DEBUG
578endif
579
580ifeq ($(HAVE_CFG80211),1)
581CDEFINES += -DWLAN_FEATURE_P2P
582CDEFINES += -DWLAN_FEATURE_WFD
Gopichand Nakkalafebb97e2013-04-18 19:25:48 +0530583ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
584CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
585CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
586endif
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800587endif
588
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800589ifeq ($(CONFIG_QCOM_ESE),y)
590CDEFINES += -DFEATURE_WLAN_ESE
591ifeq ($(CONFIG_QCOM_ESE_UPLOAD),y)
592CDEFINES += -DFEATURE_WLAN_ESE_UPLOAD
Srinivas Girigowda5cecb202013-10-08 09:13:25 -0700593endif
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800594endif
595
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800596#normally, TDLS negative behavior is not needed
597ifeq ($(CONFIG_QCOM_TDLS),y)
598CDEFINES += -DFEATURE_WLAN_TDLS
Gopichand Nakkala29d00192013-06-20 19:03:52 +0530599ifeq ($(BUILD_DEBUG_VERSION),1)
Jeff Johnson22141432013-02-21 17:07:33 -0800600CDEFINES += -DWLAN_FEATURE_TDLS_DEBUG
Gopichand Nakkala29d00192013-06-20 19:03:52 +0530601endif
Chilam NG571c65a2013-01-19 12:27:36 +0530602CDEFINES += -DCONFIG_TDLS_IMPLICIT
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800603#CDEFINES += -DFEATURE_WLAN_TDLS_NEGATIVE
604#Code under FEATURE_WLAN_TDLS_INTERNAL is ported from volans, This code
605#is not tested only verifed that it compiles. This is not required for
606#supplicant based implementation
607#CDEFINES += -DFEATURE_WLAN_TDLS_INTERNAL
608endif
609
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800610ifeq ($(CONFIG_PRIMA_WLAN_BTAMP),y)
611CDEFINES += -DWLAN_BTAMP_FEATURE
612endif
613
614ifeq ($(CONFIG_PRIMA_WLAN_LFR),y)
615CDEFINES += -DFEATURE_WLAN_LFR
616endif
617
618ifeq ($(CONFIG_PRIMA_WLAN_OKC),y)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800619CDEFINES += -DFEATURE_WLAN_OKC
620endif
621
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800622ifeq ($(CONFIG_PRIMA_WLAN_11AC_HIGH_TP),y)
623CDEFINES += -DWLAN_FEATURE_11AC_HIGH_TP
624endif
625
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800626ifeq ($(BUILD_DIAG_VERSION),1)
627CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
628CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
629CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
630endif
631
632# enable the MAC Address auto-generation feature
633CDEFINES += -DWLAN_AUTOGEN_MACADDR_FEATURE
634
Chet Lanctot6802b302013-04-04 16:50:46 -0700635ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
636CDEFINES += -DWLAN_FEATURE_11W
637endif
638
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800639ifeq ($(PANIC_ON_BUG),1)
640CDEFINES += -DPANIC_ON_BUG
641endif
642
643ifeq ($(RE_ENABLE_WIFI_ON_WDI_TIMEOUT),1)
644CDEFINES += -DWDI_RE_ENABLE_WIFI_ON_WDI_TIMEOUT
645endif
646
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800647ifeq ($(KERNEL_BUILD),1)
648CDEFINES += -DWLAN_OPEN_SOURCE
649endif
650
Amar Singhala663bb32013-02-14 13:48:43 -0800651ifeq ($(findstring opensource, $(WLAN_ROOT)), opensource)
652CDEFINES += -DWLAN_OPEN_SOURCE
653endif
654
Amar Singhalfddc28c2013-09-05 13:03:40 -0700655ifeq ($(CONFIG_ENABLE_LINUX_REG), y)
656CDEFINES += -DCONFIG_ENABLE_LINUX_REG
657endif
658
Mukul Sharmad96e5e32014-06-25 17:45:39 +0530659ifeq ($(MEASURE_ROAM_TIME_DELAY),1)
660CDEFINES += -DDEBUG_ROAM_DELAY
661endif
662
Leo Chang0b0e45a2013-12-15 15:18:55 -0800663CDEFINES += -DFEATURE_WLAN_CH_AVOID
Hardik Kantilal Patelce62e8b2014-11-21 16:31:38 +0530664CDEFINES += -DWLAN_FEATURE_AP_HT40_24G
Leo Chang0b0e45a2013-12-15 15:18:55 -0800665
Jeff Johnson1f5ab3e2014-01-22 13:09:03 -0800666# Some kernel include files are being moved. Check to see if
667# the old version of the files are present
668
669ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/mach-msm/include/mach/msm_smd.h),)
Jeff Johnsonda0c2212014-01-03 12:06:27 -0800670CDEFINES += -DEXISTS_MSM_SMD
671endif
672
Jeff Johnson1f5ab3e2014-01-22 13:09:03 -0800673ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/mach-msm/include/mach/msm_smsm.h),)
Jeff Johnsonda0c2212014-01-03 12:06:27 -0800674CDEFINES += -DEXISTS_MSM_SMSM
675endif
676
Jeff Johnson51019dc2013-02-21 16:44:09 -0800677# Fix build for GCC 4.7
678EXTRA_CFLAGS += -Wno-maybe-uninitialized -Wno-unused-function
679
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800680KBUILD_CPPFLAGS += $(CDEFINES)
681
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800682# Module information used by KBuild framework
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800683obj-$(CONFIG_PRIMA_WLAN) += $(MODNAME).o
Jeff Johnson91a420a2012-12-16 11:16:18 -0800684obj-$(CONFIG_PRONTO_WLAN) += $(MODNAME).o
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800685$(MODNAME)-y := $(OBJS)