blob: a7d0f57fbacdb1eb8a15c28d3ce96bbfc7387965 [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)
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +053017# These are configurable via Kconfig for kernel-based builds
18# Need to explicitly configure for Android-based builds
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080019
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +053020#Flag to enable BlueTooth AMP feature
21 CONFIG_PRIMA_WLAN_BTAMP := n
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080022
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +053023#Flag to enable Legacy Fast Roaming(LFR)
24 CONFIG_PRIMA_WLAN_LFR := y
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080025
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +053026#JB kernel has PMKSA patches, hence enabling this flag
27 CONFIG_PRIMA_WLAN_OKC := y
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080028
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +053029# JB kernel has CPU enablement patches, so enable
30 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y
Kiran Venkatappad52a3c72012-12-27 17:25:33 -080031
Anurag Chouhan0b29de02016-12-16 13:18:40 +053032#Flag to enable mDNS feature
33 CONFIG_MDNS_OFFLOAD_SUPPORT := y
34
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +053035#Flag to enable TDLS feature
36 CONFIG_QCOM_TDLS := y
Gopichand Nakkalad7d13652013-02-15 01:48:00 +053037
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +053038#Flag to enable Fast Transition (11r) feature
39 CONFIG_QCOM_VOWIFI_11R := y
Gopichand Nakkalad7d13652013-02-15 01:48:00 +053040
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +053041#Flag to enable Protected Managment Frames (11w) feature
42ifneq ($(CONFIG_PRONTO_WLAN),)
43 CONFIG_WLAN_FEATURE_11W := y
44 endif
Chet Lanctot6802b302013-04-04 16:50:46 -070045
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +053046#Flag to enable new Linux Regulatory implementation
47 CONFIG_ENABLE_LINUX_REG := y
Amar Singhalfddc28c2013-09-05 13:03:40 -070048
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +053049#Flag to enable offload packets feature
50 CONFIG_WLAN_OFFLOAD_PACKETS := y
51
52 endif
Kapil Guptaee33bf12016-12-20 18:27:37 +053053#Flag to enable AP Find feature
54CONFIG_WLAN_FEATURE_AP_FIND := y
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080055
Agrawal Ashish17ef5082016-10-17 18:33:21 +053056# Flag to enable feature Software AP Authentication Offload
57SAP_AUTH_OFFLOAD := y
58
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080059# To enable CONFIG_QCOM_ESE_UPLOAD, dependent config
60# CONFIG_QCOM_ESE must be enabled.
61CONFIG_QCOM_ESE := n
62CONFIG_QCOM_ESE_UPLOAD := n
Srinivas Girigowda5cecb202013-10-08 09:13:25 -070063
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080064# Feature flags which are not (currently) configurable via Kconfig
65
Jeff Johnson25abf4d2012-12-01 12:42:42 -080066#Whether to build debug version
67BUILD_DEBUG_VERSION := 1
68
69#Enable this flag to build driver in diag version
Bansidhar Gopalacharia4e08982013-05-10 15:25:23 -070070BUILD_DIAG_VERSION := 1
Jeff Johnson25abf4d2012-12-01 12:42:42 -080071
72#Do we panic on bug? default is to warn
Sameer Thalappil451ebb92013-06-28 15:49:58 -070073PANIC_ON_BUG := 1
Jeff Johnson25abf4d2012-12-01 12:42:42 -080074
75#Re-enable wifi on WDI timeout
76RE_ENABLE_WIFI_ON_WDI_TIMEOUT := 0
77
Jeff Johnson25abf4d2012-12-01 12:42:42 -080078ifeq ($(CONFIG_CFG80211),y)
79HAVE_CFG80211 := 1
80else
81ifeq ($(CONFIG_CFG80211),m)
82HAVE_CFG80211 := 1
Jeff Johnson25abf4d2012-12-01 12:42:42 -080083else
84HAVE_CFG80211 := 0
85endif
86endif
87
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080088############ BAP ############
89BAP_DIR := CORE/BAP
90BAP_INC_DIR := $(BAP_DIR)/inc
91BAP_SRC_DIR := $(BAP_DIR)/src
92
Jeff Johnson91a420a2012-12-16 11:16:18 -080093BAP_INC := -I$(WLAN_ROOT)/$(BAP_INC_DIR) \
94 -I$(WLAN_ROOT)/$(BAP_SRC_DIR)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -080095
96BAP_OBJS := $(BAP_SRC_DIR)/bapApiData.o \
97 $(BAP_SRC_DIR)/bapApiDebug.o \
98 $(BAP_SRC_DIR)/bapApiExt.o \
99 $(BAP_SRC_DIR)/bapApiHCBB.o \
100 $(BAP_SRC_DIR)/bapApiInfo.o \
101 $(BAP_SRC_DIR)/bapApiLinkCntl.o \
102 $(BAP_SRC_DIR)/bapApiLinkSupervision.o \
103 $(BAP_SRC_DIR)/bapApiStatus.o \
104 $(BAP_SRC_DIR)/bapApiTimer.o \
105 $(BAP_SRC_DIR)/bapModule.o \
106 $(BAP_SRC_DIR)/bapRsn8021xAuthFsm.o \
107 $(BAP_SRC_DIR)/bapRsn8021xPrf.o \
108 $(BAP_SRC_DIR)/bapRsn8021xSuppRsnFsm.o \
109 $(BAP_SRC_DIR)/bapRsnAsfPacket.o \
110 $(BAP_SRC_DIR)/bapRsnSsmAesKeyWrap.o \
111 $(BAP_SRC_DIR)/bapRsnSsmEapol.o \
112 $(BAP_SRC_DIR)/bapRsnSsmReplayCtr.o \
113 $(BAP_SRC_DIR)/bapRsnTxRx.o \
114 $(BAP_SRC_DIR)/btampFsm.o \
115 $(BAP_SRC_DIR)/btampHCI.o
116
117############ DXE ############
118DXE_DIR := CORE/DXE
119DXE_INC_DIR := $(DXE_DIR)/inc
120DXE_SRC_DIR := $(DXE_DIR)/src
121
Jeff Johnson91a420a2012-12-16 11:16:18 -0800122DXE_INC := -I$(WLAN_ROOT)/$(DXE_INC_DIR) \
123 -I$(WLAN_ROOT)/$(DXE_SRC_DIR)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800124
125DXE_OBJS = $(DXE_SRC_DIR)/wlan_qct_dxe.o \
126 $(DXE_SRC_DIR)/wlan_qct_dxe_cfg_i.o
127
128############ HDD ############
129HDD_DIR := CORE/HDD
130HDD_INC_DIR := $(HDD_DIR)/inc
131HDD_SRC_DIR := $(HDD_DIR)/src
132
Jeff Johnson91a420a2012-12-16 11:16:18 -0800133HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
134 -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800135
136HDD_OBJS := $(HDD_SRC_DIR)/bap_hdd_main.o \
137 $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
138 $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
Yue Ma0d4891e2013-08-06 17:01:45 -0700139 $(HDD_SRC_DIR)/wlan_hdd_debugfs.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800140 $(HDD_SRC_DIR)/wlan_hdd_dev_pwr.o \
141 $(HDD_SRC_DIR)/wlan_hdd_dp_utils.o \
142 $(HDD_SRC_DIR)/wlan_hdd_early_suspend.o \
143 $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
144 $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800145 $(HDD_SRC_DIR)/wlan_hdd_main.o \
146 $(HDD_SRC_DIR)/wlan_hdd_mib.o \
Yue Ma0d4891e2013-08-06 17:01:45 -0700147 $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800148 $(HDD_SRC_DIR)/wlan_hdd_scan.o \
149 $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
150 $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
Sushant Kaushik4b7cb302014-01-06 17:45:01 +0530151 $(HDD_SRC_DIR)/wlan_hdd_trace.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800152 $(HDD_SRC_DIR)/wlan_hdd_wext.o \
153 $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
154 $(HDD_SRC_DIR)/wlan_hdd_wowl.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800155
156ifeq ($(HAVE_CFG80211),1)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800157HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
158 $(HDD_SRC_DIR)/wlan_hdd_p2p.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800159endif
160
161ifeq ($(CONFIG_QCOM_TDLS),y)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800162HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800163endif
164
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800165############ MAC ############
166MAC_DIR := CORE/MAC
167MAC_INC_DIR := $(MAC_DIR)/inc
168MAC_SRC_DIR := $(MAC_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800169
Jeff Johnson91a420a2012-12-16 11:16:18 -0800170MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
171 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
172 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
173 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
174 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800175
176MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfgApi.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800177 $(MAC_SRC_DIR)/cfg/cfgDebug.o \
178 $(MAC_SRC_DIR)/cfg/cfgParamName.o \
179 $(MAC_SRC_DIR)/cfg/cfgProcMsg.o \
180 $(MAC_SRC_DIR)/cfg/cfgSendMsg.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800181
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800182MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dphHashTable.o
183
184MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/limAIDmgmt.o \
185 $(MAC_SRC_DIR)/pe/lim/limAdmitControl.o \
186 $(MAC_SRC_DIR)/pe/lim/limApi.o \
187 $(MAC_SRC_DIR)/pe/lim/limAssocUtils.o \
188 $(MAC_SRC_DIR)/pe/lim/limDebug.o \
189 $(MAC_SRC_DIR)/pe/lim/limFT.o \
190 $(MAC_SRC_DIR)/pe/lim/limIbssPeerMgmt.o \
191 $(MAC_SRC_DIR)/pe/lim/limLinkMonitoringAlgo.o \
192 $(MAC_SRC_DIR)/pe/lim/limLogDump.o \
193 $(MAC_SRC_DIR)/pe/lim/limP2P.o \
194 $(MAC_SRC_DIR)/pe/lim/limProcessActionFrame.o \
195 $(MAC_SRC_DIR)/pe/lim/limProcessAssocReqFrame.o \
196 $(MAC_SRC_DIR)/pe/lim/limProcessAssocRspFrame.o \
197 $(MAC_SRC_DIR)/pe/lim/limProcessAuthFrame.o \
198 $(MAC_SRC_DIR)/pe/lim/limProcessBeaconFrame.o \
199 $(MAC_SRC_DIR)/pe/lim/limProcessCfgUpdates.o \
200 $(MAC_SRC_DIR)/pe/lim/limProcessDeauthFrame.o \
201 $(MAC_SRC_DIR)/pe/lim/limProcessDisassocFrame.o \
202 $(MAC_SRC_DIR)/pe/lim/limProcessLmmMessages.o \
203 $(MAC_SRC_DIR)/pe/lim/limProcessMessageQueue.o \
204 $(MAC_SRC_DIR)/pe/lim/limProcessMlmReqMessages.o \
205 $(MAC_SRC_DIR)/pe/lim/limProcessMlmRspMessages.o \
206 $(MAC_SRC_DIR)/pe/lim/limProcessProbeReqFrame.o \
207 $(MAC_SRC_DIR)/pe/lim/limProcessProbeRspFrame.o \
208 $(MAC_SRC_DIR)/pe/lim/limProcessSmeReqMessages.o \
209 $(MAC_SRC_DIR)/pe/lim/limPropExtsUtils.o \
Abhishek Singh00b71972016-01-07 10:51:04 +0530210 $(MAC_SRC_DIR)/pe/lim/limRMC.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800211 $(MAC_SRC_DIR)/pe/lim/limRoamingAlgo.o \
212 $(MAC_SRC_DIR)/pe/lim/limScanResultUtils.o \
213 $(MAC_SRC_DIR)/pe/lim/limSecurityUtils.o \
214 $(MAC_SRC_DIR)/pe/lim/limSendManagementFrames.o \
215 $(MAC_SRC_DIR)/pe/lim/limSendMessages.o \
216 $(MAC_SRC_DIR)/pe/lim/limSendSmeRspMessages.o \
217 $(MAC_SRC_DIR)/pe/lim/limSerDesUtils.o \
218 $(MAC_SRC_DIR)/pe/lim/limSession.o \
219 $(MAC_SRC_DIR)/pe/lim/limSessionUtils.o \
220 $(MAC_SRC_DIR)/pe/lim/limSmeReqUtils.o \
221 $(MAC_SRC_DIR)/pe/lim/limStaHashApi.o \
222 $(MAC_SRC_DIR)/pe/lim/limTimerUtils.o \
223 $(MAC_SRC_DIR)/pe/lim/limTrace.o \
224 $(MAC_SRC_DIR)/pe/lim/limUtils.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800225
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800226ifeq ($(CONFIG_QCOM_ESE),y)
227ifneq ($(CONFIG_QCOM_ESE_UPLOAD),y)
228MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/limProcessEseFrame.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800229endif
Srinivas Girigowda5cecb202013-10-08 09:13:25 -0700230endif
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800231
232ifeq ($(CONFIG_QCOM_TDLS),y)
233MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/limProcessTdls.o
234endif
235
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800236MAC_PMM_OBJS := $(MAC_SRC_DIR)/pe/pmm/pmmAP.o \
237 $(MAC_SRC_DIR)/pe/pmm/pmmApi.o \
238 $(MAC_SRC_DIR)/pe/pmm/pmmDebug.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800239
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800240MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/schApi.o \
241 $(MAC_SRC_DIR)/pe/sch/schBeaconGen.o \
242 $(MAC_SRC_DIR)/pe/sch/schBeaconProcess.o \
243 $(MAC_SRC_DIR)/pe/sch/schDebug.o \
244 $(MAC_SRC_DIR)/pe/sch/schMessage.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800245
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800246MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrmApi.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800247
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800248MAC_OBJS := $(MAC_CFG_OBJS) \
249 $(MAC_DPH_OBJS) \
250 $(MAC_LIM_OBJS) \
251 $(MAC_PMM_OBJS) \
252 $(MAC_SCH_OBJS) \
253 $(MAC_RRM_OBJS)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800254
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800255############ SAP ############
256SAP_DIR := CORE/SAP
257SAP_INC_DIR := $(SAP_DIR)/inc
258SAP_SRC_DIR := $(SAP_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800259
Jeff Johnson91a420a2012-12-16 11:16:18 -0800260SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
261 -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800262
263SAP_OBJS := $(SAP_SRC_DIR)/sapApiLinkCntl.o \
264 $(SAP_SRC_DIR)/sapChSelect.o \
265 $(SAP_SRC_DIR)/sapFsm.o \
266 $(SAP_SRC_DIR)/sapModule.o
267
268############ SME ############
269SME_DIR := CORE/SME
270SME_INC_DIR := $(SME_DIR)/inc
271SME_SRC_DIR := $(SME_DIR)/src
272
Jeff Johnson91a420a2012-12-16 11:16:18 -0800273SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
274 -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800275
276SME_CCM_OBJS := $(SME_SRC_DIR)/ccm/ccmApi.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800277 $(SME_SRC_DIR)/ccm/ccmLogDump.o
278
279SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csrApiRoam.o \
280 $(SME_SRC_DIR)/csr/csrApiScan.o \
281 $(SME_SRC_DIR)/csr/csrCmdProcess.o \
282 $(SME_SRC_DIR)/csr/csrLinkList.o \
283 $(SME_SRC_DIR)/csr/csrLogDump.o \
284 $(SME_SRC_DIR)/csr/csrNeighborRoam.o \
285 $(SME_SRC_DIR)/csr/csrUtil.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800286
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800287ifeq ($(CONFIG_QCOM_ESE),y)
288ifneq ($(CONFIG_QCOM_ESE_UPLOAD),y)
289SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csrEse.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800290endif
Srinivas Girigowda5cecb202013-10-08 09:13:25 -0700291endif
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800292
293ifeq ($(CONFIG_QCOM_TDLS),y)
294SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csrTdlsProcess.o
295endif
296
297SME_PMC_OBJS := $(SME_SRC_DIR)/pmc/pmcApi.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800298 $(SME_SRC_DIR)/pmc/pmc.o \
299 $(SME_SRC_DIR)/pmc/pmcLogDump.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800300
301SME_QOS_OBJS := $(SME_SRC_DIR)/QoS/sme_Qos.o
302
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800303SME_CMN_OBJS := $(SME_SRC_DIR)/sme_common/sme_Api.o \
Leela Venkata Kiran Kumar Reddy Chirala7367c202013-04-10 22:39:51 -0700304 $(SME_SRC_DIR)/sme_common/sme_FTApi.o \
305 $(SME_SRC_DIR)/sme_common/sme_Trace.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800306
307SME_BTC_OBJS := $(SME_SRC_DIR)/btc/btcApi.o
308
309SME_OEM_DATA_OBJS := $(SME_SRC_DIR)/oemData/oemDataApi.o
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800310
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800311SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_Api.o
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800312
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800313SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
314
Srinivas Dasari32a79262015-02-19 13:04:49 +0530315SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_Api.o
316
317
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800318SME_OBJS := $(SME_BTC_OBJS) \
319 $(SME_CCM_OBJS) \
320 $(SME_CMN_OBJS) \
321 $(SME_CSR_OBJS) \
322 $(SME_OEM_DATA_OBJS) \
323 $(SME_P2P_OBJS) \
324 $(SME_PMC_OBJS) \
325 $(SME_QOS_OBJS) \
Srinivas Dasari32a79262015-02-19 13:04:49 +0530326 $(SME_RRM_OBJS) \
327 $(SME_NAN_OBJS)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800328
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800329############ SVC ############
330SVC_DIR := CORE/SVC
331SVC_INC_DIR := $(SVC_DIR)/inc
332SVC_SRC_DIR := $(SVC_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800333
Jeff Johnson91a420a2012-12-16 11:16:18 -0800334SVC_INC := -I$(WLAN_ROOT)/$(SVC_INC_DIR) \
335 -I$(WLAN_ROOT)/$(SVC_DIR)/external
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800336
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800337BTC_SRC_DIR := $(SVC_SRC_DIR)/btc
338BTC_OBJS := $(BTC_SRC_DIR)/wlan_btc_svc.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800339
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800340NLINK_SRC_DIR := $(SVC_SRC_DIR)/nlink
341NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800342
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800343PTT_SRC_DIR := $(SVC_SRC_DIR)/ptt
344PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800345
Vinay Krishna Erannad938c422014-03-10 17:14:21 +0530346WLAN_LOGGING_SRC_DIR := $(SVC_SRC_DIR)/logging
347WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o
348
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800349SVC_OBJS := $(BTC_OBJS) \
350 $(NLINK_OBJS) \
Vinay Krishna Erannad938c422014-03-10 17:14:21 +0530351 $(PTT_OBJS) \
352 $(WLAN_LOGGING_OBJS)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800353
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800354############ SYS ############
355SYS_DIR := CORE/SYS
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800356
Jeff Johnson91a420a2012-12-16 11:16:18 -0800357SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
358 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/pal/inc \
359 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
360 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
361 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800362
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800363SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
364SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
365SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
366 $(SYS_LEGACY_SRC_DIR)/pal/src/palApiComm.o \
367 $(SYS_LEGACY_SRC_DIR)/pal/src/palTimer.o \
368 $(SYS_LEGACY_SRC_DIR)/platform/src/VossWrapper.o \
369 $(SYS_LEGACY_SRC_DIR)/system/src/macInitApi.o \
370 $(SYS_LEGACY_SRC_DIR)/system/src/sysEntryFunc.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800371 $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
372 $(SYS_LEGACY_SRC_DIR)/utils/src/logApi.o \
373 $(SYS_LEGACY_SRC_DIR)/utils/src/logDump.o \
374 $(SYS_LEGACY_SRC_DIR)/utils/src/macTrace.o \
375 $(SYS_LEGACY_SRC_DIR)/utils/src/parserApi.o \
376 $(SYS_LEGACY_SRC_DIR)/utils/src/utilsApi.o \
377 $(SYS_LEGACY_SRC_DIR)/utils/src/utilsParser.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800378
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800379############ TL ############
380TL_DIR := CORE/TL
381TL_INC_DIR := $(TL_DIR)/inc
382TL_SRC_DIR := $(TL_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800383
Jeff Johnson91a420a2012-12-16 11:16:18 -0800384TL_INC := -I$(WLAN_ROOT)/$(TL_INC_DIR) \
385 -I$(WLAN_ROOT)/$(TL_SRC_DIR)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800386
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800387TL_OBJS := $(TL_SRC_DIR)/wlan_qct_tl.o \
388 $(TL_SRC_DIR)/wlan_qct_tl_ba.o \
Katya Nigam42e16e82014-02-04 16:28:55 +0530389 $(TL_SRC_DIR)/wlan_qct_tl_hosupport.o \
390 $(TL_SRC_DIR)/wlan_qct_tl_trace.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800391
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800392############ VOSS ############
393VOSS_DIR := CORE/VOSS
394VOSS_INC_DIR := $(VOSS_DIR)/inc
395VOSS_SRC_DIR := $(VOSS_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800396
Jeff Johnson91a420a2012-12-16 11:16:18 -0800397VOSS_INC := -I$(WLAN_ROOT)/$(VOSS_INC_DIR) \
398 -I$(WLAN_ROOT)/$(VOSS_SRC_DIR)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800399
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800400VOSS_OBJS := $(VOSS_SRC_DIR)/vos_api.o \
401 $(VOSS_SRC_DIR)/vos_event.o \
402 $(VOSS_SRC_DIR)/vos_getBin.o \
403 $(VOSS_SRC_DIR)/vos_list.o \
404 $(VOSS_SRC_DIR)/vos_lock.o \
405 $(VOSS_SRC_DIR)/vos_memory.o \
406 $(VOSS_SRC_DIR)/vos_mq.o \
407 $(VOSS_SRC_DIR)/vos_nvitem.o \
408 $(VOSS_SRC_DIR)/vos_packet.o \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800409 $(VOSS_SRC_DIR)/vos_sched.o \
410 $(VOSS_SRC_DIR)/vos_threads.o \
411 $(VOSS_SRC_DIR)/vos_timer.o \
412 $(VOSS_SRC_DIR)/vos_trace.o \
413 $(VOSS_SRC_DIR)/vos_types.o \
Prasanna Kumarf6c94ae2013-04-11 20:05:21 -0700414 $(VOSS_SRC_DIR)/vos_utils.o \
415 $(VOSS_SRC_DIR)/wlan_nv_parser.o \
416 $(VOSS_SRC_DIR)/wlan_nv_stream_read.o \
417 $(VOSS_SRC_DIR)/wlan_nv_template_builtin.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800418
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800419ifeq ($(BUILD_DIAG_VERSION),1)
420VOSS_OBJS += $(VOSS_SRC_DIR)/vos_diag.o
421endif
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800422
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800423############ WDA ############
424WDA_DIR := CORE/WDA
425WDA_INC_DIR := $(WDA_DIR)/inc
426WDA_SRC_DIR := $(WDA_DIR)/src
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800427
Jeff Johnson91a420a2012-12-16 11:16:18 -0800428WDA_INC := -I$(WLAN_ROOT)/$(WDA_INC_DIR) \
429 -I$(WLAN_ROOT)/$(WDA_INC_DIR)/legacy \
430 -I$(WLAN_ROOT)/$(WDA_SRC_DIR)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800431
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800432WDA_OBJS := $(WDA_SRC_DIR)/wlan_qct_wda.o \
433 $(WDA_SRC_DIR)/wlan_qct_wda_debug.o \
434 $(WDA_SRC_DIR)/wlan_qct_wda_ds.o \
435 $(WDA_SRC_DIR)/wlan_qct_wda_legacy.o \
436 $(WDA_SRC_DIR)/wlan_nv.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800437
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800438############ WDI ############
439WDI_DIR := CORE/WDI
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800440
Jeff Johnson91a420a2012-12-16 11:16:18 -0800441WDI_CP_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/CP/inc/
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800442
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800443WDI_CP_SRC_DIR := $(WDI_DIR)/CP/src
444WDI_CP_OBJS := $(WDI_CP_SRC_DIR)/wlan_qct_wdi.o \
445 $(WDI_CP_SRC_DIR)/wlan_qct_wdi_dp.o \
446 $(WDI_CP_SRC_DIR)/wlan_qct_wdi_sta.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800447
Jeff Johnson91a420a2012-12-16 11:16:18 -0800448WDI_DP_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/DP/inc/
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800449
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800450WDI_DP_SRC_DIR := $(WDI_DIR)/DP/src
451WDI_DP_OBJS := $(WDI_DP_SRC_DIR)/wlan_qct_wdi_bd.o \
452 $(WDI_DP_SRC_DIR)/wlan_qct_wdi_ds.o
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800453
Jeff Johnson91a420a2012-12-16 11:16:18 -0800454WDI_TRP_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/TRP/CTS/inc/ \
455 -I$(WLAN_ROOT)/$(WDI_DIR)/TRP/DTS/inc/
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800456
457WDI_TRP_CTS_SRC_DIR := $(WDI_DIR)/TRP/CTS/src
Jeff Johnson91a420a2012-12-16 11:16:18 -0800458WDI_TRP_CTS_OBJS := $(WDI_TRP_CTS_SRC_DIR)/wlan_qct_wdi_cts.o
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800459
460WDI_TRP_DTS_SRC_DIR := $(WDI_DIR)/TRP/DTS/src
Jeff Johnson91a420a2012-12-16 11:16:18 -0800461WDI_TRP_DTS_OBJS := $(WDI_TRP_DTS_SRC_DIR)/wlan_qct_wdi_dts.o
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800462
463WDI_TRP_OBJS := $(WDI_TRP_CTS_OBJS) \
464 $(WDI_TRP_DTS_OBJS)
465
Jeff Johnson91a420a2012-12-16 11:16:18 -0800466WDI_WPAL_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/WPAL/inc
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800467
468WDI_WPAL_SRC_DIR := $(WDI_DIR)/WPAL/src
469WDI_WPAL_OBJS := $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_api.o \
470 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_device.o \
471 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_msg.o \
472 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_packet.o \
473 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_sync.o \
474 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_timer.o \
475 $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_trace.o
476
477WDI_INC := $(WDI_CP_INC) \
478 $(WDI_DP_INC) \
479 $(WDI_TRP_INC) \
480 $(WDI_WPAL_INC)
481
482WDI_OBJS := $(WDI_CP_OBJS) \
483 $(WDI_DP_OBJS) \
484 $(WDI_TRP_OBJS) \
485 $(WDI_WPAL_OBJS)
486
487
Jeff Johnson91a420a2012-12-16 11:16:18 -0800488RIVA_INC := -I$(WLAN_ROOT)/riva/inc
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800489
490LINUX_INC := -Iinclude/linux
491
492INCS := $(BAP_INC) \
493 $(DXE_INC) \
494 $(HDD_INC) \
495 $(LINUX_INC) \
496 $(MAC_INC) \
497 $(RIVA_INC) \
498 $(SAP_INC) \
499 $(SME_INC) \
500 $(SVC_INC) \
501 $(SYS_INC) \
502 $(TL_INC) \
503 $(VOSS_INC) \
504 $(WDA_INC) \
505 $(WDI_INC)
506
507OBJS := $(BAP_OBJS) \
508 $(DXE_OBJS) \
509 $(HDD_OBJS) \
510 $(MAC_OBJS) \
511 $(SAP_OBJS) \
512 $(SME_OBJS) \
513 $(SVC_OBJS) \
514 $(SYS_OBJS) \
515 $(TL_OBJS) \
516 $(VOSS_OBJS) \
517 $(WDA_OBJS) \
518 $(WDI_OBJS)
519
520EXTRA_CFLAGS += $(INCS)
Sushant Kaushik29fe8822015-10-16 10:43:26 +0530521EXTRA_CFLAGS += -fno-pic
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800522
Jeff Johnsoncfc48eb2013-03-06 09:50:58 -0800523CDEFINES := -DANI_BUS_TYPE_PLATFORM=1 \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800524 -DANI_LITTLE_BYTE_ENDIAN \
525 -DANI_LITTLE_BIT_ENDIAN \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800526 -DQC_WLAN_CHIPSET_PRIMA \
527 -DINTEGRATION_READY \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800528 -DDOT11F_LITTLE_ENDIAN_HOST \
529 -DGEN6_ONWARDS \
530 -DANI_COMPILER_TYPE_GCC \
531 -DANI_OS_TYPE_ANDROID=6 \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800532 -DANI_LOGDUMP \
533 -DWLAN_PERF \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800534 -DPTT_SOCK_SVC_ENABLE \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800535 -Wall\
536 -D__linux__ \
537 -DMSM_PLATFORM \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800538 -DHAL_SELF_STA_PER_BSS=1 \
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800539 -DWLAN_FEATURE_VOWIFI_11R \
540 -DWLAN_FEATURE_NEIGHBOR_ROAMING \
541 -DWLAN_FEATURE_NEIGHBOR_ROAMING_DEBUG \
542 -DWLAN_FEATURE_VOWIFI_11R_DEBUG \
543 -DFEATURE_WLAN_WAPI \
544 -DFEATURE_OEM_DATA_SUPPORT\
545 -DSOFTAP_CHANNEL_RANGE \
546 -DWLAN_AP_STA_CONCURRENCY \
547 -DFEATURE_WLAN_SCAN_PNO \
548 -DWLAN_FEATURE_PACKET_FILTERING \
549 -DWLAN_FEATURE_VOWIFI \
550 -DWLAN_FEATURE_11AC \
551 -DWLAN_FEATURE_P2P_DEBUG \
Yathish9f22e662012-12-10 14:21:35 -0800552 -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
Ravi Kumar Vaishnavb7652402013-01-18 19:05:15 -0800553 -DWLANTL_DEBUG\
Madan Mohan Koyyalamudi54c671e2013-07-25 11:54:26 +0530554 -DWLAN_NS_OFFLOAD \
Gopichand Nakkala7fcc6de2012-12-21 07:38:04 -0800555 -DWLAN_ACTIVEMODE_OFFLOAD_FEATURE \
Kumar Anandaca924e2013-07-22 14:35:34 -0700556 -DWLAN_FEATURE_HOLD_RX_WAKELOCK \
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700557 -DWLAN_SOFTAP_VSTA_FEATURE \
Kumar Anandaca924e2013-07-22 14:35:34 -0700558 -DWLAN_FEATURE_ROAM_SCAN_OFFLOAD \
559 -DWLAN_FEATURE_GTK_OFFLOAD \
Leo Chang0882b352013-08-19 16:20:13 -0700560 -DWLAN_WAKEUP_EVENTS \
Leo Chang397deb72013-08-22 11:33:16 -0700561 -DWLAN_KD_READY_NOTIFIER \
Abhishek Singh00b71972016-01-07 10:51:04 +0530562 -DWLAN_FEATURE_RMC \
Leo Changd9df8aa2013-09-26 13:32:26 -0700563 -DWLAN_NL80211_TESTMODE \
Rajeev79dbe4c2013-10-05 11:03:42 +0530564 -DFEATURE_WLAN_BATCH_SCAN \
Hema Aparna Medicharla830d59a2013-11-16 21:41:34 +0530565 -DFEATURE_WLAN_LPHB \
Kiet Lamcb76f1b2013-12-01 02:21:14 +0530566 -DFEATURE_WLAN_PAL_TIMER_DISABLE \
Leo Chang80de3c22013-11-26 10:52:12 -0800567 -DFEATURE_WLAN_PAL_MEM_DISABLE \
Mihir Shete5929ea52014-02-18 00:10:36 +0530568 -DFEATURE_WLAN_CH144 \
Mihir Shete44547fb2014-03-10 14:15:42 +0530569 -DWLAN_BUG_ON_SKB_ERROR \
Vinay Krishna Erannad938c422014-03-10 17:14:21 +0530570 -DWLAN_DXE_LOW_RESOURCE_TIMER \
Sunil Duttc69bccb2014-05-26 21:30:20 +0530571 -DWLAN_LOGGING_SOCK_SVC_ENABLE \
Dino Mycle6fb96c12014-06-10 11:52:40 +0530572 -DWLAN_FEATURE_LINK_LAYER_STATS \
Mukul Sharmaf1bd9322015-10-20 16:03:42 +0530573 -DWLAN_FEATURE_EXTSCAN \
Padma, Santhosh Kumar4a6c1882016-03-21 13:21:48 +0530574 -DFEATURE_EXT_LL_STAT \
Anurag Chouhan83026002016-12-13 22:46:21 +0530575 -DWLAN_VOWIFI_DEBUG \
Manjeet Singh3ed79242017-01-11 19:04:32 +0530576 -DDHCP_SERVER_OFFLOAD \
577 -DWLAN_FEATURE_TSF
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800578
Jeff Johnson91a420a2012-12-16 11:16:18 -0800579ifneq ($(CONFIG_PRONTO_WLAN),)
580CDEFINES += -DWCN_PRONTO
581CDEFINES += -DWCN_PRONTO_V1
582endif
583
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800584ifeq ($(BUILD_DEBUG_VERSION),1)
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800585CDEFINES += -DWLAN_DEBUG \
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800586 -DTRACE_RECORD \
Leela V Kiran Kumar Reddy Chiralac3b9d382013-01-31 20:49:53 -0800587 -DLIM_TRACE_RECORD \
Leela Venkata Kiran Kumar Reddy Chirala7367c202013-04-10 22:39:51 -0700588 -DSME_TRACE_RECORD \
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800589 -DPE_DEBUG_LOGW \
590 -DPE_DEBUG_LOGE \
Sravan Kumar Kairama8269e72015-11-06 12:13:24 +0530591 -DDXE_TRACE \
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800592 -DDEBUG
593endif
594
595ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
596CDEFINES += -DTIMER_MANAGER
597CDEFINES += -DMEMORY_DEBUG
598endif
599
600ifeq ($(HAVE_CFG80211),1)
601CDEFINES += -DWLAN_FEATURE_P2P
602CDEFINES += -DWLAN_FEATURE_WFD
Gopichand Nakkalafebb97e2013-04-18 19:25:48 +0530603ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
604CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
605CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
606endif
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800607endif
608
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800609ifeq ($(CONFIG_QCOM_ESE),y)
610CDEFINES += -DFEATURE_WLAN_ESE
611ifeq ($(CONFIG_QCOM_ESE_UPLOAD),y)
612CDEFINES += -DFEATURE_WLAN_ESE_UPLOAD
Srinivas Girigowda5cecb202013-10-08 09:13:25 -0700613endif
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800614endif
615
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800616#normally, TDLS negative behavior is not needed
617ifeq ($(CONFIG_QCOM_TDLS),y)
618CDEFINES += -DFEATURE_WLAN_TDLS
Chilam NG571c65a2013-01-19 12:27:36 +0530619CDEFINES += -DCONFIG_TDLS_IMPLICIT
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800620endif
621
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800622ifeq ($(CONFIG_PRIMA_WLAN_BTAMP),y)
623CDEFINES += -DWLAN_BTAMP_FEATURE
624endif
625
626ifeq ($(CONFIG_PRIMA_WLAN_LFR),y)
627CDEFINES += -DFEATURE_WLAN_LFR
628endif
629
630ifeq ($(CONFIG_PRIMA_WLAN_OKC),y)
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800631CDEFINES += -DFEATURE_WLAN_OKC
632endif
633
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800634ifeq ($(CONFIG_PRIMA_WLAN_11AC_HIGH_TP),y)
635CDEFINES += -DWLAN_FEATURE_11AC_HIGH_TP
636endif
637
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800638ifeq ($(BUILD_DIAG_VERSION),1)
639CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
640CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
641CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
642endif
643
644# enable the MAC Address auto-generation feature
645CDEFINES += -DWLAN_AUTOGEN_MACADDR_FEATURE
646
Chet Lanctot6802b302013-04-04 16:50:46 -0700647ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
648CDEFINES += -DWLAN_FEATURE_11W
649endif
650
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800651ifeq ($(PANIC_ON_BUG),1)
652CDEFINES += -DPANIC_ON_BUG
653endif
654
655ifeq ($(RE_ENABLE_WIFI_ON_WDI_TIMEOUT),1)
656CDEFINES += -DWDI_RE_ENABLE_WIFI_ON_WDI_TIMEOUT
657endif
658
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800659ifeq ($(KERNEL_BUILD),1)
660CDEFINES += -DWLAN_OPEN_SOURCE
661endif
662
Amar Singhala663bb32013-02-14 13:48:43 -0800663ifeq ($(findstring opensource, $(WLAN_ROOT)), opensource)
664CDEFINES += -DWLAN_OPEN_SOURCE
665endif
666
Amar Singhalfddc28c2013-09-05 13:03:40 -0700667ifeq ($(CONFIG_ENABLE_LINUX_REG), y)
668CDEFINES += -DCONFIG_ENABLE_LINUX_REG
669endif
670
Agrawal Ashish17ef5082016-10-17 18:33:21 +0530671# Enable feature SAP Authentication Offload
672ifeq ($(SAP_AUTH_OFFLOAD), y)
673CDEFINES += -DSAP_AUTH_OFFLOAD
674endif
675
Kapil Guptaee33bf12016-12-20 18:27:37 +0530676ifeq ($(CONFIG_WLAN_FEATURE_AP_FIND), y)
677CDEFINES += -DWLAN_FEATURE_APFIND
678endif
679
Leo Chang0b0e45a2013-12-15 15:18:55 -0800680CDEFINES += -DFEATURE_WLAN_CH_AVOID
Hardik Kantilal Patelce62e8b2014-11-21 16:31:38 +0530681CDEFINES += -DWLAN_FEATURE_AP_HT40_24G
Leo Chang0b0e45a2013-12-15 15:18:55 -0800682
Jeff Johnson1f5ab3e2014-01-22 13:09:03 -0800683# Some kernel include files are being moved. Check to see if
684# the old version of the files are present
685
686ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/mach-msm/include/mach/msm_smd.h),)
Jeff Johnsonda0c2212014-01-03 12:06:27 -0800687CDEFINES += -DEXISTS_MSM_SMD
688endif
689
Jeff Johnson1f5ab3e2014-01-22 13:09:03 -0800690ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/mach-msm/include/mach/msm_smsm.h),)
Jeff Johnsonda0c2212014-01-03 12:06:27 -0800691CDEFINES += -DEXISTS_MSM_SMSM
692endif
693
Jeff Johnson51019dc2013-02-21 16:44:09 -0800694# Fix build for GCC 4.7
695EXTRA_CFLAGS += -Wno-maybe-uninitialized -Wno-unused-function
696
Srinivas Girigowda8bf64cb2015-09-30 19:50:09 +0530697ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y)
698CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS
699endif
700
Anurag Chouhan0b29de02016-12-16 13:18:40 +0530701ifeq ($(CONFIG_MDNS_OFFLOAD_SUPPORT), y)
702CDEFINES += -DMDNS_OFFLOAD
703endif
704
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800705KBUILD_CPPFLAGS += $(CDEFINES)
706
Jeff Johnson25abf4d2012-12-01 12:42:42 -0800707# Module information used by KBuild framework
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800708obj-$(CONFIG_PRIMA_WLAN) += $(MODNAME).o
Jeff Johnson91a420a2012-12-16 11:16:18 -0800709obj-$(CONFIG_PRONTO_WLAN) += $(MODNAME).o
Jeff Johnson2c24a3b2012-12-10 12:28:11 -0800710$(MODNAME)-y := $(OBJS)