blob: f2a6d7c7051c33b2924a6f7415c9203ea4282d8c [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001# We can build either as part of a standalone Kernel build or as
2# an external module. Determine which mechanism is being used
3ifeq ($(MODNAME),)
Jeff Johnsoneadeb932018-04-07 15:32:36 -07004 KERNEL_BUILD := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005else
Jeff Johnsoneadeb932018-04-07 15:32:36 -07006 KERNEL_BUILD := n
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007endif
8
Jeff Johnsoneadeb932018-04-07 15:32:36 -07009ifeq ($(KERNEL_BUILD), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010 # These are provided in external module based builds
11 # Need to explicitly define for Kernel-based builds
12 MODNAME := wlan
13 WLAN_ROOT := drivers/staging/qcacld-3.0
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -070014 WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
15 WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080016endif
17
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -070018WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn
19WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -080020
Nirav Shahd2aa9632018-05-27 22:02:53 +053021CONFIG_QCA_CLD_WLAN_PROFILE ?= default
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -070022
Nirav Shahd2aa9632018-05-27 22:02:53 +053023include $(WLAN_ROOT)/configs/$(CONFIG_QCA_CLD_WLAN_PROFILE)_defconfig
Jeff Johnsonec273f32018-04-13 20:40:05 -070024
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080025############ UAPI ############
26UAPI_DIR := uapi
27UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
28
29############ COMMON ############
30COMMON_DIR := core/common
31COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
32
33############ HDD ############
34HDD_DIR := core/hdd
35HDD_INC_DIR := $(HDD_DIR)/inc
36HDD_SRC_DIR := $(HDD_DIR)/src
37
38HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
39 -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
40
41HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
42 $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070043 $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
Poddar, Siddarth34872782017-08-10 14:08:51 +053044 $(HDD_SRC_DIR)/wlan_hdd_data_stall_detection.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080045 $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070046 $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080047 $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
48 $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
49 $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
50 $(HDD_SRC_DIR)/wlan_hdd_main.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070051 $(HDD_SRC_DIR)/wlan_hdd_object_manager.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080052 $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070053 $(HDD_SRC_DIR)/wlan_hdd_p2p.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080054 $(HDD_SRC_DIR)/wlan_hdd_power.o \
Amar Singhale4f28ee2015-10-21 14:36:56 -070055 $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080056 $(HDD_SRC_DIR)/wlan_hdd_scan.o \
57 $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070058 $(HDD_SRC_DIR)/wlan_hdd_stats.o \
Amar Singhal0928b192017-12-01 10:50:54 -080059 $(HDD_SRC_DIR)/wlan_hdd_sysfs.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080060 $(HDD_SRC_DIR)/wlan_hdd_trace.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070061 $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080062 $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
SaidiReddy Yenuga744073f2017-03-09 17:31:25 +053063 $(HDD_SRC_DIR)/wlan_hdd_wowl.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080064
Rachit Kankane0dc3e852018-05-07 17:33:42 +053065ifeq ($(CONFIG_WLAN_WEXT_SUPPORT_ENABLE), y)
66HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_wext.o \
67 $(HDD_SRC_DIR)/wlan_hdd_hostapd_wext.o
68endif
69
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -070070ifeq ($(CONFIG_WLAN_DEBUGFS), y)
71HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
Qiwei Cai3719efe2018-06-11 21:09:29 +080072ifeq ($(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS), y)
Krishna Kumaar Natarajanc7e2bb72017-03-10 10:38:46 -080073HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_llstat.o
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -070074endif
Qiwei Cai3719efe2018-06-11 21:09:29 +080075endif
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -070076
Sandeep Puligilla8e89d572018-04-02 18:07:45 -070077ifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y)
78HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_spectralscan.o
79endif
80
Agrawal Ashishb141b092016-09-02 19:59:26 +053081ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
82HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o
83endif
Amar Singhale4f28ee2015-10-21 14:36:56 -070084
Wen Gong3f003382018-05-14 14:26:37 +080085ifeq ($(CONFIG_FEATURE_MEMDUMP_ENABLE), y)
Wen Gongaa6d55d2018-04-26 16:33:21 +080086HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_memdump.o
87endif
88
Jeff Johnson6fa1e012017-04-05 06:40:53 -070089ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
90HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_fips.o
91endif
92
Jeff Johnsoneadeb932018-04-07 15:32:36 -070093ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
Jeff Johnson8bb61112018-03-31 13:33:54 -070094HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
95endif
96
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +053097ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
98HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_apf.o
99endif
100
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700101ifeq ($(CONFIG_WLAN_FEATURE_LPSS), y)
Jeff Johnson2b0a7b82016-05-18 15:08:02 -0700102HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o
103endif
104
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800105ifeq ($(CONFIG_WLAN_LRO), y)
106HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
107endif
108
109ifeq ($(CONFIG_WLAN_NAPI), y)
110HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
111endif
112
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700113ifeq ($(CONFIG_IPA_OFFLOAD), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800114HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
115endif
116
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700117ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800118HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
119endif
120
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700121ifeq ($(CONFIG_QCOM_TDLS), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800122HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
123endif
124
Yu Wang000dc2f2017-05-26 17:38:48 +0800125ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
126CONFIG_WLAN_SYNC_TSF := y
127endif
128
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700129ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
Manikandan Mohandcc21ba2016-03-15 14:31:56 -0700130HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
131endif
132
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700133ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800134HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
135endif
136
Nachiket Kukade98f562a2017-12-15 12:18:07 +0530137ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530138HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
139endif
140
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800141ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
142HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
143endif
144
Ravi Joshia063dd92016-05-25 16:43:13 -0700145ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
146HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
147endif
148
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700149ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
Krishna Kumaar Natarajaned1efd92016-09-24 18:05:47 -0700150HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o
151endif
152
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -0700153ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
154HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_twt.o
155endif
156
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -0700157ifeq ($(CONFIG_LITHIUM), y)
Ravi Joshi1c2cfb62017-01-18 14:40:08 -0800158HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o
159endif
160
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700161ifeq ($(CONFIG_WLAN_NUD_TRACKING), y)
Alok Kumarb64650c2018-03-23 17:05:11 +0530162HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nud_tracking.o
163endif
164
Qiwei Cai4505fc62018-05-17 18:35:19 +0800165ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
166HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_packet_filter.o
167endif
168
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800169########### HOST DIAG LOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800170HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800171
172HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
173HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
174
175HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
176 -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
177
178HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
179
180############ EPPING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800181EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800182EPPING_INC_DIR := $(EPPING_DIR)/inc
183EPPING_SRC_DIR := $(EPPING_DIR)/src
184
185EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
186
187EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
188 $(EPPING_SRC_DIR)/epping_txrx.o \
189 $(EPPING_SRC_DIR)/epping_tx.o \
190 $(EPPING_SRC_DIR)/epping_rx.o \
191 $(EPPING_SRC_DIR)/epping_helper.o \
192
193
194############ MAC ############
195MAC_DIR := core/mac
196MAC_INC_DIR := $(MAC_DIR)/inc
197MAC_SRC_DIR := $(MAC_DIR)/src
198
199MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
200 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
201 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
202 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
Ravi Joshia063dd92016-05-25 16:43:13 -0700203 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
204 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800205
206MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800207 $(MAC_SRC_DIR)/cfg/cfg_param_name.o \
208 $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \
209 $(MAC_SRC_DIR)/cfg/cfg_send_msg.o
210
211MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
212
213MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
214 $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
215 $(MAC_SRC_DIR)/pe/lim/lim_api.o \
216 $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800217 $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
218 $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \
219 $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800220 $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
221 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
222 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
223 $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
224 $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
225 $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
226 $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
227 $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
228 $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
229 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
230 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
231 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
232 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
233 $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
234 $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
235 $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
236 $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
237 $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
238 $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
239 $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
240 $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \
241 $(MAC_SRC_DIR)/pe/lim/lim_session.o \
242 $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
243 $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
244 $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \
245 $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
246 $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
247 $(MAC_SRC_DIR)/pe/lim/lim_utils.o
248
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700249ifeq ($(CONFIG_QCOM_TDLS), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800250MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
251endif
252
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700253ifeq ($(CONFIG_WLAN_FEATURE_FILS), y)
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +0530254MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_fils.o
255endif
256
Ravi Joshia063dd92016-05-25 16:43:13 -0700257ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
258MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
259endif
260
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700261ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800262 MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
263 $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
264 $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
265 $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
266 $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
267endif
268
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800269MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
270 $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
271 $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800272 $(MAC_SRC_DIR)/pe/sch/sch_message.o
273
274MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
275
276MAC_OBJS := $(MAC_CFG_OBJS) \
277 $(MAC_DPH_OBJS) \
278 $(MAC_LIM_OBJS) \
279 $(MAC_SCH_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700280 $(MAC_RRM_OBJS) \
281 $(MAC_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800282
283############ SAP ############
284SAP_DIR := core/sap
285SAP_INC_DIR := $(SAP_DIR)/inc
286SAP_SRC_DIR := $(SAP_DIR)/src
287
288SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
289 -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
290
291SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
292 $(SAP_SRC_DIR)/sap_ch_select.o \
293 $(SAP_SRC_DIR)/sap_fsm.o \
294 $(SAP_SRC_DIR)/sap_module.o
295
Dustin Brown84f46ea2018-02-15 11:57:36 -0800296############ CFG ############
297CFG_REL_DIR := $(WLAN_COMMON_ROOT)/cfg
298CFG_DIR := $(WLAN_ROOT)/$(CFG_REL_DIR)
299CFG_INC := \
300 -I$(CFG_DIR)/inc \
301 -I$(CFG_DIR)/dispatcher/inc \
302 -I$(WLAN_ROOT)/components/cfg
303CFG_OBJS := \
304 $(CFG_REL_DIR)/src/cfg.o
305
Jeff Johnsonb4e2d822018-04-12 15:53:24 -0700306############ DFS ############
Arif Hussain757b45f2017-02-11 16:47:06 -0800307DFS_DIR := $(WLAN_COMMON_ROOT)/umac/dfs
308DFS_CORE_INC_DIR := $(DFS_DIR)/core/inc
309DFS_CORE_SRC_DIR := $(DFS_DIR)/core/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800310
Arif Hussain757b45f2017-02-11 16:47:06 -0800311DFS_DISP_INC_DIR := $(DFS_DIR)/dispatcher/inc
312DFS_DISP_SRC_DIR := $(DFS_DIR)/dispatcher/src
313DFS_TARGET_INC_DIR := $(WLAN_COMMON_ROOT)/target_if/dfs/inc
314DFS_CMN_SERVICES_INC_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/dfs/inc
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800315
Arif Hussain757b45f2017-02-11 16:47:06 -0800316DFS_INC := -I$(WLAN_ROOT)/$(DFS_DISP_INC_DIR) \
317 -I$(WLAN_ROOT)/$(DFS_TARGET_INC_DIR) \
318 -I$(WLAN_ROOT)/$(DFS_CMN_SERVICES_INC_DIR)
319
Arif Hussain02c2b632018-03-08 23:09:21 -0800320DFS_OBJS := $(DFS_CORE_SRC_DIR)/misc/dfs.o \
321 $(DFS_CORE_SRC_DIR)/misc/dfs_cac.o \
322 $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o \
323 $(DFS_CORE_SRC_DIR)/misc/dfs_random_chan_sel.o \
324 $(DFS_CORE_SRC_DIR)/misc/dfs_process_radar_found_ind.o \
325 $(DFS_DISP_SRC_DIR)/wlan_dfs_init_deinit_api.o \
326 $(DFS_DISP_SRC_DIR)/wlan_dfs_lmac_api.o \
327 $(DFS_DISP_SRC_DIR)/wlan_dfs_mlme_api.o \
328 $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \
329 $(DFS_DISP_SRC_DIR)/wlan_dfs_ucfg_api.o \
330 $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \
331 $(DFS_DISP_SRC_DIR)/wlan_dfs_utils_api.o \
Arif Hussain757b45f2017-02-11 16:47:06 -0800332 $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800333
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700334ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
Arif Hussain02c2b632018-03-08 23:09:21 -0800335DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_full_offload.o \
336 $(DFS_CORE_SRC_DIR)/misc/dfs_full_offload.o
337else
338DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_partial_offload.o \
339 $(DFS_CORE_SRC_DIR)/filtering/dfs_fcc_bin5.o \
340 $(DFS_CORE_SRC_DIR)/filtering/dfs_bindetects.o \
341 $(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o \
342 $(DFS_CORE_SRC_DIR)/filtering/dfs_init.o \
343 $(DFS_CORE_SRC_DIR)/filtering/dfs_misc.o \
344 $(DFS_CORE_SRC_DIR)/filtering/dfs_phyerr_tlv.o \
345 $(DFS_CORE_SRC_DIR)/filtering/dfs_process_phyerr.o \
346 $(DFS_CORE_SRC_DIR)/filtering/dfs_process_radarevent.o \
347 $(DFS_CORE_SRC_DIR)/filtering/dfs_staggered.o \
348 $(DFS_CORE_SRC_DIR)/filtering/dfs_radar.o \
349 $(DFS_CORE_SRC_DIR)/filtering/dfs_ar.o \
350 $(DFS_CORE_SRC_DIR)/filtering/dfs_partial_offload_radar.o \
351 $(DFS_CORE_SRC_DIR)/misc/dfs_filter_init.o \
352 $(DFS_CORE_SRC_DIR)/misc/dfs_zero_cac.o
353endif
354
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800355############ SME ############
356SME_DIR := core/sme
357SME_INC_DIR := $(SME_DIR)/inc
358SME_SRC_DIR := $(SME_DIR)/src
359
360SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
361 -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
362
363SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
364 $(SME_SRC_DIR)/csr/csr_api_scan.o \
365 $(SME_SRC_DIR)/csr/csr_cmd_process.o \
366 $(SME_SRC_DIR)/csr/csr_link_list.o \
367 $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800368 $(SME_SRC_DIR)/csr/csr_util.o \
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800369
370
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700371ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800372SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800373 $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800374endif
375
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800376SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
377
378SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
379 $(SME_SRC_DIR)/common/sme_ft_api.o \
380 $(SME_SRC_DIR)/common/sme_power_save.o \
381 $(SME_SRC_DIR)/common/sme_trace.o
382
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800383SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
384
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700385ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800386SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o
387endif
388
Ravi Joshia063dd92016-05-25 16:43:13 -0700389ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
390SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
391endif
392
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800393SME_OBJS := $(SME_CMN_OBJS) \
394 $(SME_CSR_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800395 $(SME_QOS_OBJS) \
396 $(SME_RRM_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700397 $(SME_NAN_OBJS) \
398 $(SME_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800399
400############ NLINK ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800401NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800402NLINK_INC_DIR := $(NLINK_DIR)/inc
403NLINK_SRC_DIR := $(NLINK_DIR)/src
404
405NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
406NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
407
408############ PTT ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800409PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800410PTT_INC_DIR := $(PTT_DIR)/inc
411PTT_SRC_DIR := $(PTT_DIR)/src
412
413PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
414PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
415
416############ WLAN_LOGGING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800417WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800418WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
419WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
420
421WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
Deepak Dhamdhere5d7ea2f2017-10-19 15:08:45 -0700422WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o \
423 $(WLAN_LOGGING_SRC_DIR)/wlan_roam_debug.o
Jeff Johnson8fba4d72018-04-08 08:46:04 -0700424
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800425############ SYS ############
426SYS_DIR := core/mac/src/sys
427
428SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
429 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
430 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
431 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
432
433SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
434SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
435SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
436 $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
437 $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
438 $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
439 $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800440 $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
441 $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800442 $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
443
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800444############ Qca-wifi-host-cmn ############
445QDF_OS_DIR := qdf
446QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700447QDF_OS_SRC_DIR := $(QDF_OS_DIR)/src
448QDF_OS_LINUX_SRC_DIR := $(QDF_OS_DIR)/linux/src
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800449QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700450QDF_LINUX_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_LINUX_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800451
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800452QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700453 -I$(WLAN_COMMON_INC)/$(QDF_OS_LINUX_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800454
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700455QDF_OBJS := $(QDF_LINUX_OBJ_DIR)/qdf_defer.o \
456 $(QDF_LINUX_OBJ_DIR)/qdf_event.o \
Dustin Brown911057b2018-02-05 16:42:18 -0800457 $(QDF_LINUX_OBJ_DIR)/qdf_file.o \
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700458 $(QDF_LINUX_OBJ_DIR)/qdf_list.o \
459 $(QDF_LINUX_OBJ_DIR)/qdf_lock.o \
460 $(QDF_LINUX_OBJ_DIR)/qdf_mc_timer.o \
461 $(QDF_LINUX_OBJ_DIR)/qdf_mem.o \
462 $(QDF_LINUX_OBJ_DIR)/qdf_nbuf.o \
463 $(QDF_LINUX_OBJ_DIR)/qdf_threads.o \
464 $(QDF_LINUX_OBJ_DIR)/qdf_crypto.o \
Dustin Brown70960c92018-01-17 14:56:41 -0800465 $(QDF_LINUX_OBJ_DIR)/qdf_trace.o \
Wu Gao24466e32018-05-10 19:08:26 +0800466 $(QDF_LINUX_OBJ_DIR)/qdf_idr.o \
Dustin Brown0805bef2018-04-12 16:12:21 -0700467 $(QDF_OBJ_DIR)/qdf_flex_mem.o \
Dustin Brown911057b2018-02-05 16:42:18 -0800468 $(QDF_OBJ_DIR)/qdf_parse.o \
Rajeev Kumara6268de2018-03-09 14:58:53 -0800469 $(QDF_OBJ_DIR)/qdf_platform.o \
Dustin Brown59877b02018-02-05 14:22:51 -0800470 $(QDF_OBJ_DIR)/qdf_str.o \
Rajeev Kumar64de4542018-02-23 13:51:38 -0800471 $(QDF_OBJ_DIR)/qdf_types.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800472
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700473ifeq ($(CONFIG_WLAN_DEBUGFS), y)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700474QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_debugfs.o
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700475endif
476
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700477ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairamb9484f32018-02-22 17:16:14 +0530478QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_ipa.o
479endif
480
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700481# enable CPU hotplug support if SMP is enabled
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700482ifeq ($(CONFIG_SMP), y)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700483 QDF_OBJS += $(QDF_OBJ_DIR)/qdf_cpuhp.o
484 QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_cpuhp.o
485endif
Wu Gao64b31482017-03-10 15:16:10 +0800486
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700487ifeq ($(CONFIG_LEAK_DETECTION), y)
Dustin Brown21a761d2017-11-15 16:37:00 -0800488 QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debug_domain.o
489endif
490
Wu Gao64b31482017-03-10 15:16:10 +0800491##########OS_IF #######
492OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if
493
494OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux \
495 -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700496 -I$(WLAN_COMMON_INC)/os_if/linux/p2p/inc \
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800497 -I$(WLAN_COMMON_INC)/os_if/linux/spectral/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700498 -I$(WLAN_COMMON_INC)/os_if/linux/tdls/inc
Wu Gao64b31482017-03-10 15:16:10 +0800499
Naveen Rawate02f8f52018-04-05 11:58:04 -0700500OS_IF_OBJ := $(OS_IF_DIR)/linux/p2p/src/wlan_cfg80211_p2p.o \
501 $(OS_IF_DIR)/linux/wlan_osif_request_manager.o
Sandeep Puligillafdd201e2017-02-02 18:43:46 -0800502
Frank Liu65b17d92016-11-23 15:58:44 +0800503############ UMAC_DISP ############
504UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
505UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
506UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
507UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
508
509UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
510
511UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
512
Abhishek Singh9be07e22017-02-21 10:59:57 +0530513############# UMAC_SCAN ############
514UMAC_SCAN_DIR := umac/scan
515UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc
516UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src
517UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530518UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc
Abhishek Singh9be07e22017-02-21 10:59:57 +0530519
520UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR)
521UMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \
Paul Zhanga05a0252018-01-22 11:08:21 +0800522 $(UMAC_SCAN_CORE_DIR)/wlan_scan_11d.o \
Abhishek Singh82571c82017-11-24 12:12:19 +0530523 $(UMAC_SCAN_CORE_DIR)/wlan_scan_bss_score.o \
524 $(UMAC_SCAN_CORE_DIR)/wlan_scan_filter.o \
Abhishek Singh9be07e22017-02-21 10:59:57 +0530525 $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \
526 $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \
527 $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \
528 $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \
Abhishek Singh310503c2017-03-07 11:19:10 +0530529 $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \
530 $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \
531 $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \
532 $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530533
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800534############# UMAC_SPECTRAL_SCAN ############
535UMAC_SPECTRAL_DIR := spectral
536UMAC_SPECTRAL_DISP_INC_DIR := $(UMAC_SPECTRAL_DIR)/dispatcher/inc
537UMAC_SPECTRAL_CORE_INC_DIR := $(UMAC_SPECTRAL_DIR)/core
538UMAC_SPECTRAL_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/core
539UMAC_SPECTRAL_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/dispatcher/src
540UMAC_TARGET_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/target_if/spectral
541
Sandeep Puligilla019a1bd2018-02-04 22:57:44 -0800542UMAC_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_DISP_INC_DIR) \
543 -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_CORE_INC_DIR) \
544 -I$(WLAN_COMMON_INC)/target_if/direct_buf_rx/inc
Sandeep Puligilla8e89d572018-04-02 18:07:45 -0700545ifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y)
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800546UMAC_SPECTRAL_OBJS := $(UMAC_SPECTRAL_CORE_DIR)/spectral_offload.o \
547 $(UMAC_SPECTRAL_CORE_DIR)/spectral_common.o \
548 $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_ucfg_api.o \
549 $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_utils_api.o \
550 $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_tgt_api.o \
551 $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/wlan_cfg80211_spectral.o \
Sandeep Puligilla019a1bd2018-02-04 22:57:44 -0800552 $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/os_if_spectral_netlink.o \
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800553 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_netlink.o \
554 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_phyerr.o \
555 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral.o \
556 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_sim.o
Sandeep Puligilla8e89d572018-04-02 18:07:45 -0700557endif
Himanshu Agarwalb229a142017-12-21 10:16:45 +0530558############# UMAC_GREEN_AP ############
559UMAC_GREEN_AP_DIR := umac/green_ap
560UMAC_GREEN_AP_DISP_INC_DIR := $(UMAC_GREEN_AP_DIR)/dispatcher/inc
561UMAC_GREEN_AP_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/core/src
562UMAC_GREEN_AP_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/dispatcher/src
563UMAC_TARGET_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/target_if/green_ap/inc
564
565UMAC_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_GREEN_AP_DISP_INC_DIR)
566UMAC_GREEN_AP_OBJS := $(UMAC_GREEN_AP_CORE_DIR)/wlan_green_ap_main.o \
567 $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_api.o \
568 $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_ucfg_api.o \
569 $(WLAN_COMMON_ROOT)/target_if/green_ap/src/target_if_green_ap.o
Jeff Johnson8fba4d72018-04-08 08:46:04 -0700570
Ryan Hsuc8b27a42018-01-02 13:57:56 -0800571############# FTM CORE ############
572FTM_CORE_DIR := ftm
573TARGET_IF_FTM_DIR := target_if/ftm
574OS_IF_LINUX_FTM_DIR := os_if/linux/ftm
575
576FTM_CORE_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/core/src
577FTM_DISP_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/dispatcher/src
578TARGET_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(TARGET_IF_FTM_DIR)/src
579OS_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(OS_IF_LINUX_FTM_DIR)/src
580
581FTM_CORE_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/core/src
582FTM_DISP_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/dispatcher/inc
583TARGET_IF_FTM_INC := $(WLAN_COMMON_INC)/$(TARGET_IF_FTM_DIR)/inc
584OS_IF_FTM_INC := $(WLAN_COMMON_INC)/$(OS_IF_LINUX_FTM_DIR)/inc
585
586FTM_INC := -I$(FTM_DISP_INC) \
587 -I$(FTM_CORE_INC) \
588 -I$(OS_IF_FTM_INC) \
589 -I$(TARGET_IF_FTM_INC)
590
591FTM_OBJS := $(FTM_DISP_SRC)/wlan_ftm_init_deinit.o \
592 $(FTM_DISP_SRC)/wlan_ftm_ucfg_api.o \
593 $(FTM_CORE_SRC)/wlan_ftm_svc.o \
594 $(OS_IF_FTM_SRC)/wlan_cfg80211_ftm.o \
595 $(TARGET_IF_FTM_SRC)/target_if_ftm.o
596
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700597ifeq ($(CONFIG_LINUX_QCMBR), y)
Ryan Hsuc8b27a42018-01-02 13:57:56 -0800598FTM_OBJS += $(OS_IF_FTM_SRC)/wlan_ioctl_ftm.o
599endif
Himanshu Agarwalb229a142017-12-21 10:16:45 +0530600
Abhishek Singh9be07e22017-02-21 10:59:57 +0530601############# UMAC_CMN_SERVICES ############
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530602UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
603 -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
604UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530605
Dhanashri Atre170855e2016-12-15 13:26:54 -0800606ifeq ($(CONFIG_WLAN_LRO), y)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700607QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_lro.o
Dhanashri Atre170855e2016-12-15 13:26:54 -0800608endif
609
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800610############ CDS (Connectivity driver services) ############
611CDS_DIR := core/cds
612CDS_INC_DIR := $(CDS_DIR)/inc
613CDS_SRC_DIR := $(CDS_DIR)/src
614
615CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
616 -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
617
618CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800619 $(CDS_SRC_DIR)/cds_reg_service.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800620 $(CDS_SRC_DIR)/cds_packet.o \
621 $(CDS_SRC_DIR)/cds_regdomain.o \
622 $(CDS_SRC_DIR)/cds_sched.o \
Krunal Sonid32c6bc2016-10-18 18:00:21 -0700623 $(CDS_SRC_DIR)/cds_utils.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800624
625
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530626###### UMAC OBJMGR ########
627UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
628
629UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
630 -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
631 -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \
632 -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc
633
634UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
635 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
636 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
637 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
638 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
639
Vignesh Viswanathan45fc4b02018-02-06 11:30:48 +0530640ifeq ($(CONFIG_WLAN_OBJMGR_DEBUG), y)
641UMAC_OBJMGR_OBJS += $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_debug.o
642endif
643
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530644########### UMAC MGMT TXRX ##########
645UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
646
Himanshu Agarwal795b7f72017-01-17 21:19:43 +0530647UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530648
649UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
650 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
651 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
652
Mukul Sharmac5de6772017-01-05 14:32:36 +0530653########## POWER MANAGEMENT OFFLOADS (PMO) ##########
Rajeev Kumarf46083e2017-07-17 17:48:16 -0700654PMO_DIR := components/pmo
Mukul Sharmad75a6672017-06-22 15:40:53 +0530655PMO_INC := -I$(WLAN_ROOT)/$(PMO_DIR)/core/inc \
656 -I$(WLAN_ROOT)/$(PMO_DIR)/core/src \
657 -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/inc \
658 -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/src \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530659
Rajeev Kumar6bdee8e2018-04-18 17:36:05 -0700660ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
Mukul Sharmac5de6772017-01-05 14:32:36 +0530661PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \
Dustin Brownf1d27802018-03-01 17:28:07 -0800662 $(PMO_DIR)/core/src/wlan_pmo_apf.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530663 $(PMO_DIR)/core/src/wlan_pmo_arp.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530664 $(PMO_DIR)/core/src/wlan_pmo_gtk.o \
665 $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \
666 $(PMO_DIR)/core/src/wlan_pmo_static_config.o \
667 $(PMO_DIR)/core/src/wlan_pmo_wow.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530668 $(PMO_DIR)/core/src/wlan_pmo_lphb.o \
669 $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700670 $(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530671 $(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530672 $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \
673 $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \
674 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530675 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \
676 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \
677 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530678 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
679 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +0530680 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700681 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530682 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o
Rajeev Kumar6bdee8e2018-04-18 17:36:05 -0700683endif
Mukul Sharmac5de6772017-01-05 14:32:36 +0530684
Qiwei Cai1083f5b2018-07-02 19:10:11 +0800685ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
686PMO_OBJS += $(PMO_DIR)/core/src/wlan_pmo_ns.o \
687 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o
688endif
689
Nachiket Kukade98f562a2017-12-15 12:18:07 +0530690########## DISA (ENCRYPTION TEST) ##########
691
692DISA_DIR := components/disa
693DISA_INC := -I$(WLAN_ROOT)/$(DISA_DIR)/core/inc \
694 -I$(WLAN_ROOT)/$(DISA_DIR)/dispatcher/inc
695
696ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
697DISA_OBJS := $(DISA_DIR)/core/src/wlan_disa_main.o \
698 $(DISA_DIR)/dispatcher/src/wlan_disa_obj_mgmt_api.o \
699 $(DISA_DIR)/dispatcher/src/wlan_disa_tgt_api.o \
700 $(DISA_DIR)/dispatcher/src/wlan_disa_ucfg_api.o
701endif
702
Zhang Qian47e22ce2018-01-04 15:38:38 +0800703######## OCB ##############
704OCB_DIR := components/ocb
705OCB_INC := -I$(WLAN_ROOT)/$(OCB_DIR)/core/inc \
706 -I$(WLAN_ROOT)/$(OCB_DIR)/dispatcher/inc
707
708ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
709OCB_OBJS := $(OCB_DIR)/dispatcher/src/wlan_ocb_ucfg_api.o \
710 $(OCB_DIR)/dispatcher/src/wlan_ocb_tgt_api.o \
711 $(OCB_DIR)/core/src/wlan_ocb_main.o
712endif
713
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530714######## IPA ##############
715IPA_DIR := components/ipa
716IPA_INC := -I$(WLAN_ROOT)/$(IPA_DIR)/core/inc \
717 -I$(WLAN_ROOT)/$(IPA_DIR)/dispatcher/inc
718
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700719ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530720IPA_OBJS := $(IPA_DIR)/dispatcher/src/wlan_ipa_ucfg_api.o \
721 $(IPA_DIR)/dispatcher/src/wlan_ipa_obj_mgmt_api.o \
722 $(IPA_DIR)/dispatcher/src/wlan_ipa_tgt_api.o \
Sravan Kumar Kairamd01b4452018-03-07 17:37:09 +0530723 $(IPA_DIR)/core/src/wlan_ipa_main.o \
Sravan Kumar Kairam2e7aae92018-03-06 19:32:49 +0530724 $(IPA_DIR)/core/src/wlan_ipa_core.o \
Sravan Kumar Kairam271fab22018-03-07 18:57:41 +0530725 $(IPA_DIR)/core/src/wlan_ipa_stats.o \
Sravan Kumar Kairam2e7aae92018-03-06 19:32:49 +0530726 $(IPA_DIR)/core/src/wlan_ipa_rm.o
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530727endif
728
Sandeep Puligillac5609d52018-05-17 19:23:41 -0700729
730######## MLME ##############
731MLME_DIR := components/mlme
732MLME_INC := -I$(WLAN_ROOT)/$(MLME_DIR)/core/inc \
733 -I$(WLAN_ROOT)/$(MLME_DIR)/dispatcher/inc
734
735MLME_OBJS := $(MLME_DIR)/core/src/wlan_mlme_main.o
736
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +0530737########## ACTION OUI ##########
738
739ACTION_OUI_DIR := components/action_oui
740ACTION_OUI_INC := -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/core/inc \
741 -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/dispatcher/inc
742
743ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
744ACTION_OUI_OBJS := $(ACTION_OUI_DIR)/core/src/wlan_action_oui_main.o \
745 $(ACTION_OUI_DIR)/core/src/wlan_action_oui_parse.o \
746 $(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_tgt_api.o \
747 $(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_ucfg_api.o
748endif
749
Mukul Sharmad75a6672017-06-22 15:40:53 +0530750########## CLD TARGET_IF #######
Rajeev Kumarf46083e2017-07-17 17:48:16 -0700751CLD_TARGET_IF_DIR := components/target_if
Mukul Sharmad75a6672017-06-22 15:40:53 +0530752
753CLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \
Zhang Qian47e22ce2018-01-04 15:38:38 +0800754 -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src
Mukul Sharmad75a6672017-06-22 15:40:53 +0530755
Wu Gaoa9d336b2018-05-30 14:48:04 +0800756ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
Mukul Sharmad75a6672017-06-22 15:40:53 +0530757CLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
758 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
759 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \
760 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
761 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
762 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
Mukul Sharmad75a6672017-06-22 15:40:53 +0530763 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o \
764 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
765 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
Zhang Qian47e22ce2018-01-04 15:38:38 +0800766 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o
Qiwei Cai1083f5b2018-07-02 19:10:11 +0800767ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
768CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o
769endif
Wu Gaoa9d336b2018-05-30 14:48:04 +0800770endif
Zhang Qian47e22ce2018-01-04 15:38:38 +0800771
772ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
773CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ocb/inc
774CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ocb/src/target_if_ocb.o
775endif
Mukul Sharmad75a6672017-06-22 15:40:53 +0530776
Nachiket Kukade98f562a2017-12-15 12:18:07 +0530777ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
778CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/disa/inc
779CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/disa/src/target_if_disa.o
780endif
781
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700782ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530783CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ipa/inc
784CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ipa/src/target_if_ipa.o
785endif
786
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +0530787ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
788CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/action_oui/inc
789CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/action_oui/src/target_if_action_oui.o
790endif
791
Wu Gao64b31482017-03-10 15:16:10 +0800792############## UMAC P2P ###########
793P2P_DIR := umac/p2p
794P2P_CORE_DIR := $(P2P_DIR)/core
795P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src
796P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR)
797P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
798P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
799P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src
800P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR)
801UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \
802 -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc
803UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
804 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
Wu Gaoe5689792018-07-05 19:20:13 +0800805 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_cfg.o \
Wu Gao64b31482017-03-10 15:16:10 +0800806 $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
807 $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
808 $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o
809
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -0800810###### UMAC POLICY MGR ########
811UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr
812
813UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \
814 -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src
815
816UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
817 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
818 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
819 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
820 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \
821
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700822###### UMAC TDLS ########
823UMAC_TDLS_DIR := $(WLAN_COMMON_ROOT)/umac/tdls
824
825UMAC_TDLS_INC := -I$(WLAN_COMMON_INC)/umac/tdls/dispatcher/inc
826
827UMAC_TDLS_OBJS := $(UMAC_TDLS_DIR)/core/src/wlan_tdls_main.o \
828 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \
829 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_peer.o \
830 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_mgmt.o \
831 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_ct.o \
832 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \
833 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \
834 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \
Wu Gaobdb7f272018-07-05 19:33:26 +0800835 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_cfg.o \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700836 $(WLAN_COMMON_ROOT)/os_if/linux/tdls/src/wlan_cfg80211_tdls.o
837
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800838########### BMI ###########
839BMI_DIR := core/bmi
840
841BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
842
Qiwei Caia01a9622018-07-11 10:02:03 +0800843ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800844BMI_OBJS := $(BMI_DIR)/src/bmi.o \
Qiwei Caia01a9622018-07-11 10:02:03 +0800845 $(BMI_DIR)/src/bmi_1.o \
Poddar, Siddarthef1f3022016-05-10 20:10:43 +0530846 $(BMI_DIR)/src/ol_fw.o \
847 $(BMI_DIR)/src/ol_fw_common.o
Qiwei Caia01a9622018-07-11 10:02:03 +0800848endif
Govind Singh0fea23a2016-03-18 12:59:27 +0530849
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530850########## TARGET_IF #######
851TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
852
853TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
Rajeev Kumarda2444c2017-01-10 22:42:07 -0800854 -I$(WLAN_COMMON_INC)/target_if/core/src \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530855 -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -0800856 -I$(WLAN_COMMON_INC)/target_if/p2p/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700857 -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
858 -I$(WLAN_COMMON_INC)/target_if/tdls/inc
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530859
Rajeev Kumarda2444c2017-01-10 22:42:07 -0800860TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -0800861 $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700862 $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
Arunk Khandavallia6305a32018-01-25 11:19:18 +0530863 $(TARGET_IF_DIR)/tdls/src/target_if_tdls.o \
864 $(TARGET_IF_DIR)/init_deinit/src/init_cmd_api.o \
Sourav Mohapatracf632572018-04-02 11:01:35 +0530865 $(TARGET_IF_DIR)/init_deinit/src/init_deinit_lmac.o \
Arunk Khandavallia6305a32018-01-25 11:19:18 +0530866 $(TARGET_IF_DIR)/init_deinit/src/init_event_handler.o \
867 $(TARGET_IF_DIR)/init_deinit/src/service_ready_util.o \
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530868
Mukul Sharmadad267e2017-02-04 13:25:34 +0530869########### GLOBAL_LMAC_IF ##########
870GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
871
872GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
873 -I$(WLAN_COMMON_INC)/global_lmac_if/src
874
875GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
876
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800877########### WMI ###########
Govind Singh0fea23a2016-03-18 12:59:27 +0530878WMI_ROOT_DIR := wmi
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800879
Govind Singh0fea23a2016-03-18 12:59:27 +0530880WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
881WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
882WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800883
Govind Singh0fea23a2016-03-18 12:59:27 +0530884WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
885
886WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
887 $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
888 $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
889 $(WMI_OBJ_DIR)/wmi_unified_api.o \
Wen Gong01a2c632018-04-11 18:34:55 +0800890 $(WMI_OBJ_DIR)/wmi_unified_reg_api.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800891
Wu Gaoa9d336b2018-05-30 14:48:04 +0800892ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
893WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o
894endif
895
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +0530896ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
897WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_apf_tlv.o
898endif
899
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +0530900ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
901WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_action_oui_tlv.o
902endif
903
Zhang Qian47e22ce2018-01-04 15:38:38 +0800904ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
905ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
906WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_ut.o
907endif
908endif
909
Wen Gong01a2c632018-04-11 18:34:55 +0800910ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
911WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o
912endif
913
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -0700914ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
915WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_api.o
916WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_tlv.o
917endif
918
Wen Gongbd949fc2018-05-21 18:35:13 +0800919ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
920WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_api.o
921WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_tlv.o
922endif
923
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800924########### FWLOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800925FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800926
927FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
928
929FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
930
931############ TXRX ############
932TXRX_DIR := core/dp/txrx
933TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
934
935TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
936 $(TXRX_DIR)/ol_cfg.o \
937 $(TXRX_DIR)/ol_rx.o \
938 $(TXRX_DIR)/ol_rx_fwd.o \
939 $(TXRX_DIR)/ol_txrx.o \
940 $(TXRX_DIR)/ol_rx_defrag.o \
941 $(TXRX_DIR)/ol_tx_desc.o \
942 $(TXRX_DIR)/ol_tx.o \
943 $(TXRX_DIR)/ol_rx_reorder_timeout.o \
944 $(TXRX_DIR)/ol_rx_reorder.o \
945 $(TXRX_DIR)/ol_rx_pn.o \
946 $(TXRX_DIR)/ol_tx_queue.o \
947 $(TXRX_DIR)/ol_txrx_peer_find.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800948 $(TXRX_DIR)/ol_txrx_encap.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530949 $(TXRX_DIR)/ol_tx_send.o \
950 $(TXRX_DIR)/ol_tx_sched.o \
951 $(TXRX_DIR)/ol_tx_classify.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800952
Nirav Shahbb8e47c2018-05-17 16:56:41 +0530953ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
954TXRX_OBJS += $(TXRX_DIR)/ol_txrx_event.o
955endif
956
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800957ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
958TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
959endif
960
Nirav Shahc4aa1ab2018-04-21 12:38:44 +0530961ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY), y)
962TXRX_OBJS += $(TXRX_DIR)/ol_txrx_legacy_flow_control.o
963endif
964
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700965ifeq ($(CONFIG_IPA_OFFLOAD), y)
Yun Parkb4f591d2017-03-29 15:51:01 -0700966TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o
967endif
968
Nirav Shah5ff1fd02018-03-11 14:55:53 +0530969ifeq ($(CONFIG_WLAN_FASTPATH), y)
970TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_fastpath.o
971else
972TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_legacy.o
973endif
974
Nirav Shah46fc6302018-04-21 12:49:28 +0530975ifeq ($(CONFIG_QCA_SUPPORT_TX_THROTTLE), y)
976TXRX_OBJS += $(TXRX_DIR)/ol_tx_throttle.o
977endif
978
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -0700979ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -0700980############ DP 3.0 ############
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -0700981DP_INC := -I$(WLAN_COMMON_INC)/dp/inc \
982 -I$(WLAN_COMMON_INC)/dp/wifi3.0 \
983 -I$(WLAN_COMMON_INC)/target_if/dp/inc
Leo Chang5f7a1e02016-11-04 14:04:26 -0700984
985DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
986DP_OBJS := $(DP_SRC)/dp_main.o \
987 $(DP_SRC)/dp_tx.o \
988 $(DP_SRC)/dp_tx_desc.o \
989 $(DP_SRC)/dp_rx.o \
990 $(DP_SRC)/dp_rx_err.o \
991 $(DP_SRC)/dp_htt.o \
992 $(DP_SRC)/dp_peer.o \
Debashis Dutt237c6142017-01-04 11:28:59 -0800993 $(DP_SRC)/dp_rx_desc.o \
Ravi Joshi12665a02017-03-08 16:35:04 -0800994 $(DP_SRC)/dp_reo.o \
995 $(DP_SRC)/dp_rx_mon_dest.o \
Ravi Joshic4a41082017-01-09 22:27:58 -0800996 $(DP_SRC)/dp_rx_mon_status.o \
Venkata Sharath Chandra Manchalabcdfdb12017-03-29 19:25:45 -0700997 $(DP_SRC)/dp_rx_defrag.o \
Sravan Kumar Kairamb8bdf522018-05-30 22:14:50 +0530998 $(DP_SRC)/dp_stats.o \
999 $(WLAN_COMMON_ROOT)/target_if/dp/src/target_if_dp.o
Manjunathappa Prakash6c547362017-03-30 20:11:47 -07001000ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1001DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o
1002endif
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001003endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001004
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001005ifeq ($(CONFIG_IPA_OFFLOAD), y)
Yun Parkb4f591d2017-03-29 15:51:01 -07001006DP_OBJS += $(DP_SRC)/dp_ipa.o
1007endif
1008
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001009ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
Venkata Sharath Chandra Manchala1240fc72017-10-26 17:32:29 -07001010DP_OBJS += $(DP_SRC)/dp_wdi_event.o
1011endif
1012
Leo Chang5f7a1e02016-11-04 14:04:26 -07001013############ CFG ############
Ravi Joshid55b18a2017-02-17 10:48:14 -08001014WCFG_DIR := wlan_cfg
1015WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
1016WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
Nirav Shah9272dbb2018-07-18 12:01:39 +05301017
1018ifeq ($(CONFIG_LITHIUM), y)
Ravi Joshid55b18a2017-02-17 10:48:14 -08001019WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
Nirav Shah9272dbb2018-07-18 12:01:39 +05301020endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001021
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001022############ OL ############
1023OL_DIR := core/dp/ol
1024OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
1025
Dhanashri Atre12a08392016-02-17 13:10:34 -08001026############ CDP ############
1027CDP_ROOT_DIR := dp
1028CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
1029CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
1030
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001031############ PKTLOG ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001032PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001033PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
1034
1035PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
1036 $(PKTLOG_DIR)/pktlog_internal.o \
1037 $(PKTLOG_DIR)/linux_ac.o
1038
1039############ HTT ############
1040HTT_DIR := core/dp/htt
1041HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
1042
1043HTT_OBJS := $(HTT_DIR)/htt_tx.o \
1044 $(HTT_DIR)/htt.o \
1045 $(HTT_DIR)/htt_t2h.o \
1046 $(HTT_DIR)/htt_h2t.o \
1047 $(HTT_DIR)/htt_fw_stats.o \
1048 $(HTT_DIR)/htt_rx.o
1049
Nirav Shah73713f72018-05-17 14:50:41 +05301050ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
1051HTT_OBJS += $(HTT_DIR)/htt_monitor_rx.o
1052endif
Rajeev Kumar97767a02016-11-30 11:20:40 -08001053
1054############## INIT-DEINIT ###########
1055INIT_DEINIT_DIR := init_deinit/dispatcher
1056INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
1057INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
1058INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
1059INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
1060INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
1061
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001062############## REGULATORY ###########
1063REGULATORY_DIR := umac/regulatory
1064REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
1065REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
1066REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
1067REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
1068REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
1069REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
1070REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
1071REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
1072REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \
1073 $(REG_CORE_OBJ_DIR)/reg_services.o \
Amar Singhaleac64132017-05-05 13:02:37 -07001074 $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001075 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
1076 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
1077 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
1078
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001079############## Control path common scheduler ##########
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001080SCHEDULER_DIR := scheduler
1081SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
1082SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
1083SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
1084SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
1085SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
1086 $(SCHEDULER_OBJ_DIR)/scheduler_core.o
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001087
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001088###### UMAC SERIALIZATION ########
1089UMAC_SER_DIR := umac/cmn_services/serialization
1090UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
1091UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
1092UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
Rajeev Kumar97767a02016-11-30 11:20:40 -08001093
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001094UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
1095UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_dequeue.o \
1096 $(UMAC_SER_OBJ_DIR)/wlan_serialization_enqueue.o \
1097 $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
1098 $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
1099 $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
Varun Reddy Yeturu35c07f92017-02-28 10:35:00 -08001100 $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001101 $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001102
1103###### WIFI POS ########
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001104WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
1105WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
1106WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
1107WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
1108WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
1109WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
1110
1111
1112ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1113WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
1114 $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
1115 $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
1116 $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
1117 $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
1118 $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o
1119endif
1120
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001121###### CP STATS ########
Naveen Rawat96a77d32018-01-12 15:26:14 -08001122CP_STATS_OS_IF_SRC := $(WLAN_COMMON_ROOT)/os_if/linux/cp_stats/src
1123CP_STATS_TGT_SRC := $(WLAN_COMMON_ROOT)/target_if/cp_stats/src
1124CP_STATS_CORE_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/core/src
1125CP_STATS_DISPATCHER_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/dispatcher/src
1126
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001127CP_STATS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/cp_stats/inc
1128CP_STATS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/cp_stats/inc
1129CP_STATS_DISPATCHER_INC := -I$(WLAN_COMMON_INC)/umac/cp_stats/dispatcher/inc
1130
Naveen Rawat96a77d32018-01-12 15:26:14 -08001131ifeq ($(CONFIG_CP_STATS), y)
1132CP_STATS_OBJS := $(CP_STATS_TGT_SRC)/target_if_mc_cp_stats.o \
1133 $(CP_STATS_CORE_SRC)/wlan_cp_stats_comp_handler.o \
1134 $(CP_STATS_CORE_SRC)/wlan_cp_stats_obj_mgr_handler.o \
Naveen Rawat96a77d32018-01-12 15:26:14 -08001135 $(CP_STATS_CORE_SRC)/wlan_cp_stats_ol_api.o \
1136 $(CP_STATS_OS_IF_SRC)/wlan_cfg80211_mc_cp_stats.o \
1137 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_utils_api.o \
1138 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_tgt_api.o \
1139 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_ucfg_api.o
1140endif
1141
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001142######################### NAN #########################
1143NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src
1144NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc
1145NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src
1146NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc
1147NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src
1148NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc
1149NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src
1150NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc
1151
1152ifeq ($(CONFIG_NAN_CONVERGENCE), y)
1153WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
1154 $(NAN_CORE_DIR)/nan_api.o \
1155 $(NAN_CORE_DIR)/nan_utils.o \
1156 $(NAN_UCFG_DIR)/nan_ucfg_api.o \
1157 $(NAN_TGT_DIR)/target_if_nan.o \
1158 $(NAN_OS_IF_DIR)/os_if_nan.o
1159endif
1160#######################################################
1161
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001162############## HTC ##########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001163HTC_DIR := htc
1164HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001165
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001166HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
1167 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
1168 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
1169 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001170
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001171ifeq ($(CONFIG_FEATURE_HTC_CREDIT_HISTORY), y)
Rachit Kankaneb1035622018-01-24 18:41:35 +05301172HTC_OBJS += $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_credit_history.o
1173endif
1174
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001175########### HIF ###########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001176HIF_DIR := hif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001177HIF_CE_DIR := $(HIF_DIR)/src/ce
Houston Hoffman1edffd32016-01-27 16:30:34 -08001178
1179HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
1180
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001181HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001182HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
Mohit Khannada4f4432016-05-17 15:02:09 -07001183HIF_USB_DIR := $(HIF_DIR)/src/usb
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301184HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
1185
1186HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
1187HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
1188HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001189
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001190HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
tfyu350d9f72017-08-10 15:13:06 +08001191 -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src
Houston Hoffman1edffd32016-01-27 16:30:34 -08001192
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001193ifeq ($(CONFIG_HIF_PCI), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001194HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001195HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
tfyu350d9f72017-08-10 15:13:06 +08001196HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001197endif
1198
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001199ifeq ($(CONFIG_HIF_SNOC), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001200HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001201HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
tfyu350d9f72017-08-10 15:13:06 +08001202HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001203endif
1204
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001205ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001206HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1207HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
1208endif
1209
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001210ifeq ($(CONFIG_HIF_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301211HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1212HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
1213HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
1214endif
1215
1216HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
1217 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
Nirav Shaheb017be2018-02-15 11:20:58 +05301218 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o
1219
1220ifeq ($(CONFIG_WLAN_NAPI), y)
1221HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o
1222HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o
1223endif
1224
Qiwei Caia01a9622018-07-11 10:02:03 +08001225HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301226 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
1227 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
1228 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001229 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301230
Qiwei Caia01a9622018-07-11 10:02:03 +08001231ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
1232HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o
1233endif
1234
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001235ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001236ifeq ($(CONFIG_CNSS_QCA6290), y)
1237HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o
Houston Hoffmana0f93492016-11-18 13:42:12 -08001238endif
1239
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001240ifeq ($(CONFIG_CNSS_QCA6390), y)
1241HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6390def.o
1242endif
1243
1244HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
1245endif
Houston Hoffmanb4d45672017-04-24 11:56:50 -07001246
Mohit Khannada4f4432016-05-17 15:02:09 -07001247HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
1248 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
1249 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
1250 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
1251
Qiwei Caia01a9622018-07-11 10:02:03 +08001252HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301253 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
1254 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301255 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o \
1256 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/transfer.o
Qiwei Caia01a9622018-07-11 10:02:03 +08001257
1258ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
1259HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o
1260endif
1261
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301262ifeq ($(CONFIG_SDIO_TRANSFER), adma)
1263HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/adma.o
1264else
1265HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/mailbox.o
1266endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301267
1268HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301269 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o \
1270 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/dev_quirks.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001271
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001272ifeq ($(CONFIG_WLAN_NAPI), y)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001273HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001274endif
1275
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001276ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), y)
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07001277 HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o
1278endif
1279
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001280HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001281HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301282HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001283
Houston Hoffman1edffd32016-01-27 16:30:34 -08001284HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
Houston Hoffmanb61b9b12016-03-03 20:04:16 -08001285HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
Srinivas Girigowdac7a1b0a2017-12-08 12:00:00 -08001286HIF_OBJS += $(HIF_COMMON_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001287
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001288ifeq ($(CONFIG_HIF_PCI), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001289HIF_OBJS += $(HIF_PCIE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301290HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001291HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
1292endif
1293
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001294ifeq ($(CONFIG_HIF_SNOC), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001295HIF_OBJS += $(HIF_SNOC_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301296HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001297HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001298endif
1299
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001300ifeq ($(CONFIG_HIF_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301301HIF_OBJS += $(HIF_SDIO_OBJS)
1302HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301303HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
1304endif
1305
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001306ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001307HIF_OBJS += $(HIF_USB_OBJS)
Mohit Khannada4f4432016-05-17 15:02:09 -07001308HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
1309endif
1310
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001311ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001312############ HAL ############
1313HAL_DIR := hal
1314HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
1315 -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
1316
1317HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
1318 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001319 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \
1320 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001321
1322ifeq ($(CONFIG_CNSS_QCA6290), y)
1323HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6290
1324HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6290/hal_6290_srng.o
1325else ifeq ($(CONFIG_CNSS_QCA6390), y)
1326HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6390
1327HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6390/hal_6390_srng.o
1328else
1329#error "Not 11ax"
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001330endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001331
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001332endif #####CONFIG_LITHIUM####
1333
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001334############ WMA ############
1335WMA_DIR := core/wma
1336
1337WMA_INC_DIR := $(WMA_DIR)/inc
1338WMA_SRC_DIR := $(WMA_DIR)/src
1339
1340WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
1341 -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
1342
Ravi Joshia063dd92016-05-25 16:43:13 -07001343ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
1344WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
1345endif
1346
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001347WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
1348 $(WMA_SRC_DIR)/wma_scan_roam.o \
1349 $(WMA_SRC_DIR)/wma_dev_if.o \
1350 $(WMA_SRC_DIR)/wma_mgmt.o \
1351 $(WMA_SRC_DIR)/wma_power.o \
1352 $(WMA_SRC_DIR)/wma_data.o \
1353 $(WMA_SRC_DIR)/wma_utils.o \
1354 $(WMA_SRC_DIR)/wma_features.o \
Ravi Joshia063dd92016-05-25 16:43:13 -07001355 $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
1356 $(WMA_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001357
Agrawal Ashishb141b092016-09-02 19:59:26 +05301358ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonb90ab572017-01-31 15:57:35 -08001359WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
Agrawal Ashishb141b092016-09-02 19:59:26 +05301360endif
Jeff Johnson6136fb92017-03-30 15:21:49 -07001361ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
1362WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o
1363endif
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001364ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001365WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
1366endif
Krishna Kumaar Natarajand0bbb3c2017-03-13 17:04:58 -07001367ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
1368WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
1369endif
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -07001370ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
1371WMA_OBJS += $(WMA_SRC_DIR)/wma_twt.o
1372endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001373############## PLD ##########
1374PLD_DIR := core/pld
1375PLD_INC_DIR := $(PLD_DIR)/inc
1376PLD_SRC_DIR := $(PLD_DIR)/src
1377
1378PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
1379 -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
1380
1381PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
1382
Nirav Shah2f3281d2018-04-20 13:37:56 +05301383ifeq ($(CONFIG_HIF_PCI), y)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001384PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
1385endif
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001386ifeq ($(CONFIG_ICNSS), y)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001387PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
1388endif
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001389ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301390PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
1391endif
Ajit Pal Singh6c6e81c2018-06-13 15:26:37 +05301392ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001393PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
1394endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001395
psimha0b6bb892017-10-10 14:28:34 -07001396ifeq ($(CONFIG_QCA6290_11AX), y)
psimha699e12b2018-02-12 16:27:18 -08001397TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/11ax/v2 \
psimha0b6bb892017-10-10 14:28:34 -07001398 -I$(WLAN_ROOT)/../fw-api/fw
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001399else ifeq ($(CONFIG_QCA6390_11AX), y)
1400TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6390/v1 \
1401 -I$(WLAN_ROOT)/../fw-api/fw
psimha0b6bb892017-10-10 14:28:34 -07001402else
Dhanashri Atref067b582017-04-14 16:56:24 -07001403TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2 \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001404 -I$(WLAN_ROOT)/../fw-api/fw
psimha0b6bb892017-10-10 14:28:34 -07001405endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001406
Dustin Brown0bec9a92017-08-17 15:44:34 -07001407LINUX_INC := -Iinclude
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001408
1409INCS := $(HDD_INC) \
1410 $(EPPING_INC) \
1411 $(LINUX_INC) \
1412 $(MAC_INC) \
1413 $(SAP_INC) \
1414 $(SME_INC) \
1415 $(SYS_INC) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001416 $(QDF_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001417 $(CDS_INC) \
Dustin Brown84f46ea2018-02-15 11:57:36 -08001418 $(CFG_INC) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301419 $(DFS_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301420 $(TARGET_IF_INC) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301421 $(CLD_TARGET_IF_INC) \
Sandeep Puligillafdd201e2017-02-02 18:43:46 -08001422 $(OS_IF_INC) \
Ryan Hsuc8b27a42018-01-02 13:57:56 -08001423 $(GLOBAL_LMAC_IF_INC) \
1424 $(FTM_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001425
1426INCS += $(WMA_INC) \
1427 $(UAPI_INC) \
1428 $(COMMON_INC) \
1429 $(WMI_INC) \
1430 $(FWLOG_INC) \
1431 $(TXRX_INC) \
1432 $(OL_INC) \
Dhanashri Atre12a08392016-02-17 13:10:34 -08001433 $(CDP_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001434 $(PKTLOG_INC) \
1435 $(HTT_INC) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001436 $(INIT_DEINIT_INC) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001437 $(SCHEDULER_INC) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001438 $(REGULATORY_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001439 $(HTC_INC) \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001440 $(DFS_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001441 $(WCFG_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001442
1443INCS += $(HIF_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001444 $(BMI_INC)
1445
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001446ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001447INCS += $(HAL_INC) \
1448 $(DP_INC)
1449endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001450
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001451################ WIFI POS ################
1452INCS += $(WIFI_POS_API_INC)
1453INCS += $(WIFI_POS_TGT_INC)
1454INCS += $(WIFI_POS_OS_IF_INC)
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001455################ CP STATS ################
1456INCS += $(CP_STATS_OS_IF_INC)
1457INCS += $(CP_STATS_TGT_INC)
1458INCS += $(CP_STATS_DISPATCHER_INC)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001459################ NAN POS ################
1460INCS += $(NAN_CORE_INC)
1461INCS += $(NAN_UCFG_INC)
1462INCS += $(NAN_TGT_INC)
1463INCS += $(NAN_OS_IF_INC)
1464##########################################
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301465INCS += $(UMAC_OBJMGR_INC)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301466INCS += $(UMAC_MGMT_TXRX_INC)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301467INCS += $(PMO_INC)
Wu Gao64b31482017-03-10 15:16:10 +08001468INCS += $(UMAC_P2P_INC)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001469INCS += $(UMAC_POLICY_MGR_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001470INCS += $(TARGET_INC)
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001471INCS += $(UMAC_TDLS_INC)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001472INCS += $(UMAC_SER_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001473INCS += $(NLINK_INC) \
1474 $(PTT_INC) \
1475 $(WLAN_LOGGING_INC)
1476
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001477INCS += $(PLD_INC)
Zhang Qian47e22ce2018-01-04 15:38:38 +08001478INCS += $(OCB_INC)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001479
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301480INCS += $(IPA_INC)
Sandeep Puligillac5609d52018-05-17 19:23:41 -07001481INCS += $(MLME_INC)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301482
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001483ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001484INCS += $(PKTLOG_INC)
1485endif
1486
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001487ifeq ($(BUILD_DIAG_VERSION), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001488INCS += $(HOST_DIAG_LOG_INC)
1489endif
1490
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301491INCS += $(DISA_INC)
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05301492INCS += $(ACTION_OUI_INC)
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301493
Frank Liu65b17d92016-11-23 15:58:44 +08001494INCS += $(UMAC_DISP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301495INCS += $(UMAC_SCAN_INC)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301496INCS += $(UMAC_TARGET_SCAN_INC)
Himanshu Agarwalb229a142017-12-21 10:16:45 +05301497INCS += $(UMAC_GREEN_AP_INC)
1498INCS += $(UMAC_TARGET_GREEN_AP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301499INCS += $(UMAC_COMMON_INC)
Sandeep Puligilla342d2a62017-12-12 15:40:00 -08001500INCS += $(UMAC_SPECTRAL_INC)
1501INCS += $(UMAC_TARGET_SPECTRAL_INC)
Frank Liu65b17d92016-11-23 15:58:44 +08001502
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001503OBJS := $(HDD_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001504 $(MAC_OBJS) \
1505 $(SAP_OBJS) \
1506 $(SME_OBJS) \
1507 $(SYS_OBJS) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001508 $(QDF_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001509 $(CDS_OBJS) \
Dustin Brown84f46ea2018-02-15 11:57:36 -08001510 $(CFG_OBJS) \
Ryan Hsuc8b27a42018-01-02 13:57:56 -08001511 $(FTM_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001512
1513OBJS += $(WMA_OBJS) \
1514 $(TXRX_OBJS) \
1515 $(WMI_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001516 $(HTC_OBJS) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001517 $(INIT_DEINIT_OBJS) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001518 $(SCHEDULER_OBJS) \
Wen Gong01a2c632018-04-11 18:34:55 +08001519 $(REGULATORY_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001520
1521OBJS += $(HIF_OBJS) \
1522 $(BMI_OBJS) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301523 $(HTT_OBJS) \
Wu Gao64b31482017-03-10 15:16:10 +08001524 $(OS_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301525 $(TARGET_IF_OBJ) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301526 $(CLD_TARGET_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301527 $(GLOBAL_LMAC_IF_OBJ)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001528
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001529ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001530OBJS += $(HAL_OBJS)
1531endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001532
Wen Gong99768902018-04-25 12:07:49 +08001533ifeq ($(CONFIG_FEATURE_FW_LOG_PARSING), y)
1534OBJS += $(FWLOG_OBJS)
1535endif
1536
Nirav Shah459bebf2018-01-17 16:59:14 +05301537ifeq ($(CONFIG_FEATURE_EPPING), y)
1538OBJS += $(EPPING_OBJS)
1539endif
1540
Wen Gong01a2c632018-04-11 18:34:55 +08001541ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
1542OBJS += $(DFS_OBJS)
1543endif
Nirav Shah459bebf2018-01-17 16:59:14 +05301544
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301545OBJS += $(UMAC_OBJMGR_OBJS)
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001546OBJS += $(WIFI_POS_OBJS)
Naveen Rawat96a77d32018-01-12 15:26:14 -08001547OBJS += $(CP_STATS_OBJS)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001548OBJS += $(WLAN_NAN_OBJS)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301549OBJS += $(UMAC_MGMT_TXRX_OBJS)
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001550OBJS += $(UMAC_TDLS_OBJS)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301551OBJS += $(PMO_OBJS)
Wu Gao64b31482017-03-10 15:16:10 +08001552OBJS += $(UMAC_P2P_OBJS)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001553OBJS += $(UMAC_POLICY_MGR_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001554OBJS += $(WLAN_LOGGING_OBJS)
1555OBJS += $(NLINK_OBJS)
1556OBJS += $(PTT_OBJS)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001557OBJS += $(UMAC_SER_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001558OBJS += $(PLD_OBJS)
Sandeep Puligillac5609d52018-05-17 19:23:41 -07001559OBJS += $(MLME_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001560
Zhang Qian47e22ce2018-01-04 15:38:38 +08001561ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1562OBJS += $(OCB_OBJS)
1563endif
1564
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001565ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301566OBJS += $(IPA_OBJS)
1567endif
1568
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001569ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001570OBJS += $(PKTLOG_OBJS)
1571endif
1572
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001573ifeq ($(BUILD_DIAG_VERSION), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001574OBJS += $(HOST_DIAG_LOG_OBJS)
1575endif
1576
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301577ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
1578OBJS += $(DISA_OBJS)
1579endif
1580
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05301581ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
1582OBJS += $(ACTION_OUI_OBJS)
1583endif
1584
Frank Liu65b17d92016-11-23 15:58:44 +08001585OBJS += $(UMAC_DISP_OBJS)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301586OBJS += $(UMAC_SCAN_OBJS)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301587OBJS += $(UMAC_COMMON_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001588OBJS += $(WCFG_OBJS)
Sandeep Puligilla8e89d572018-04-02 18:07:45 -07001589
Sandeep Puligilla342d2a62017-12-12 15:40:00 -08001590OBJS += $(UMAC_SPECTRAL_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001591
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001592ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
Himanshu Agarwalb229a142017-12-21 10:16:45 +05301593OBJS += $(UMAC_GREEN_AP_OBJS)
1594endif
1595
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001596ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001597OBJS += $(DP_OBJS)
1598endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001599
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07001600ccflags-y += $(INCS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001601
Jeff Johnsonee869842018-04-17 11:14:03 -07001602cppflags-y += -DANI_OS_TYPE_ANDROID=6 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001603 -Wall\
1604 -Werror\
Jeff Johnsona63a9b62018-04-12 15:30:45 -07001605 -D__linux__
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001606
Jeff Johnsonee869842018-04-17 11:14:03 -07001607cppflags-$(CONFIG_PTT_SOCK_SVC_ENABLE) += -DPTT_SOCK_SVC_ENABLE
1608cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DFEATURE_WLAN_WAPI
1609cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DATH_SUPPORT_WAPI
1610cppflags-$(CONFIG_AGEIE_ON_SCAN_RESULTS) += -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS
1611cppflags-$(CONFIG_SOFTAP_CHANNEL_RANGE) += -DSOFTAP_CHANNEL_RANGE
1612cppflags-$(CONFIG_FEATURE_WLAN_SCAN_PNO) += -DFEATURE_WLAN_SCAN_PNO
1613cppflags-$(CONFIG_WLAN_FEATURE_PACKET_FILTERING) += -DWLAN_FEATURE_PACKET_FILTERING
1614cppflags-$(CONFIG_WLAN_NS_OFFLOAD) += -DWLAN_NS_OFFLOAD
1615cppflags-$(CONFIG_FEATURE_WLAN_RA_FILTERING) += -DFEATURE_WLAN_RA_FILTERING
1616cppflags-$(CONFIG_FEATURE_WLAN_LPHB) += -DFEATURE_WLAN_LPHB
1617cppflags-$(CONFIG_QCA_SUPPORT_TX_THROTTLE) += -DQCA_SUPPORT_TX_THROTTLE
1618cppflags-$(CONFIG_WMI_INTERFACE_EVENT_LOGGING) += -DWMI_INTERFACE_EVENT_LOGGING
1619cppflags-$(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS) += -DWLAN_FEATURE_LINK_LAYER_STATS
1620cppflags-$(CONFIG_FEATURE_WLAN_EXTSCAN) += -DFEATURE_WLAN_EXTSCAN
1621cppflags-$(CONFIG_160MHZ_SUPPORT) += -DCONFIG_160MHZ_SUPPORT
1622cppflags-$(CONFIG_MCL) += -DCONFIG_MCL
1623cppflags-$(CONFIG_MCL_REGDB) += -DCONFIG_MCL_REGDB
1624cppflags-$(CONFIG_LEGACY_CHAN_ENUM) += -DCONFIG_LEGACY_CHAN_ENUM
Jeff Johnsonee869842018-04-17 11:14:03 -07001625cppflags-$(CONFIG_WLAN_PMO_ENABLE) += -DWLAN_PMO_ENABLE
1626cppflags-$(CONFIG_CONVERGED_P2P_ENABLE) += -DCONVERGED_P2P_ENABLE
1627cppflags-$(CONFIG_WLAN_POLICY_MGR_ENABLE) += -DWLAN_POLICY_MGR_ENABLE
1628cppflags-$(CONFIG_SUPPORT_11AX) += -DSUPPORT_11AX
1629cppflags-$(CONFIG_HDD_INIT_WITH_RTNL_LOCK) += -DCONFIG_HDD_INIT_WITH_RTNL_LOCK
1630cppflags-$(CONFIG_CONVERGED_TDLS_ENABLE) += -DCONVERGED_TDLS_ENABLE
1631cppflags-$(CONFIG_WLAN_CONV_SPECTRAL_ENABLE) += -DWLAN_CONV_SPECTRAL_ENABLE
Jeff Johnsonee869842018-04-17 11:14:03 -07001632cppflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS
Nirav Shah73713f72018-05-17 14:50:41 +05301633cppflags-$(CONFIG_FEATURE_MONITOR_MODE_SUPPORT) += -DFEATURE_MONITOR_MODE_SUPPORT
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -07001634cppflags-$(CONFIG_WLAN_FEATURE_TWT) += -DWLAN_SUPPORT_TWT
Jeff Johnson8daf7682018-04-11 07:42:56 -07001635
Jeff Johnsonee869842018-04-17 11:14:03 -07001636cppflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL
1637cppflags-$(CONFIG_WIFI_POS_CONVERGED) += -DWIFI_POS_CONVERGED
1638cppflags-$(CONFIG_WIFI_POS_LEGACY) += -DFEATURE_OEM_DATA_SUPPORT
1639cppflags-$(CONFIG_FEATURE_HTC_CREDIT_HISTORY) += -DFEATURE_HTC_CREDIT_HISTORY
1640cppflags-$(CONFIG_WLAN_FEATURE_P2P_DEBUG) += -DWLAN_FEATURE_P2P_DEBUG
Rachit Kankane0dc3e852018-05-07 17:33:42 +05301641cppflags-$(CONFIG_WLAN_WEXT_SUPPORT_ENABLE) += -DWLAN_WEXT_SUPPORT_ENABLE
Jeff Johnsonee869842018-04-17 11:14:03 -07001642cppflags-$(CONFIG_WLAN_LOGGING_SOCK_SVC) += -DWLAN_LOGGING_SOCK_SVC_ENABLE
Rachit Kankane0868f8f2018-06-22 18:52:03 +05301643cppflags-$(CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY) += -DWLAN_LOGGING_BUFFERS_DYNAMICALLY
Jeff Johnsonee869842018-04-17 11:14:03 -07001644cppflags-$(CONFIG_WLAN_FEATURE_FILS) += -DWLAN_FEATURE_FILS_SK
Naveen Rawat96a77d32018-01-12 15:26:14 -08001645cppflags-$(CONFIG_CP_STATS) += -DQCA_SUPPORT_CP_STATS
Wen Gong3f003382018-05-14 14:26:37 +08001646cppflags-$(CONFIG_FEATURE_MEMDUMP_ENABLE) += -DWLAN_FEATURE_MEMDUMP_ENABLE
Wen Gong99768902018-04-25 12:07:49 +08001647cppflags-$(CONFIG_FEATURE_FW_LOG_PARSING) += -DFEATURE_FW_LOG_PARSING
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +05301648
Nirav Shah1575dd72018-06-24 13:46:39 +05301649cppflags-$(CONFIG_PLD_SDIO_CNSS_FLAG) += -DCONFIG_PLD_SDIO_CNSS
1650cppflags-$(CONFIG_PLD_PCIE_CNSS_FLAG) += -DCONFIG_PLD_PCIE_CNSS
1651cppflags-$(CONFIG_PLD_PCIE_INIT_FLAG) += -DCONFIG_PLD_PCIE_INIT
Yue Mae6a7a322016-08-31 11:09:23 -07001652
Lin Bai59b79762017-09-01 16:18:55 +08001653#Enable NL80211 test mode
Jeff Johnsonee869842018-04-17 11:14:03 -07001654cppflags-$(CONFIG_NL80211_TESTMODE) += -DWLAN_NL80211_TESTMODE
Lin Bai59b79762017-09-01 16:18:55 +08001655
Yue Ma2b091312017-02-15 15:56:47 -08001656# Flag to enable bus auto suspend
Jeff Johnsonfe6f0b02018-04-11 09:27:04 -07001657ifeq ($(CONFIG_HIF_PCI), y)
Yue Ma2b091312017-02-15 15:56:47 -08001658ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001659cppflags-y += -DFEATURE_RUNTIME_PM
Yue Ma2b091312017-02-15 15:56:47 -08001660endif
1661endif
1662
Jeff Johnsonee869842018-04-17 11:14:03 -07001663cppflags-$(CONFIG_ICNSS) += -DCONFIG_PLD_SNOC_ICNSS
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001664
Jeff Johnsonee869842018-04-17 11:14:03 -07001665cppflags-$(CONFIG_ICNSS) += -DQCA_WIFI_3_0
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001666
Jeff Johnsonee869842018-04-17 11:14:03 -07001667cppflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0_ADRASTEA
1668cppflags-$(CONFIG_ADRASTEA_SHADOW_REGISTERS) += -DADRASTEA_SHADOW_REGISTERS
1669cppflags-$(CONFIG_ADRASTEA_RRI_ON_DDR) += -DADRASTEA_RRI_ON_DDR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001670
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001671ifeq ($(CONFIG_QMI_SUPPORT), n)
Jeff Johnsonee869842018-04-17 11:14:03 -07001672cppflags-y += -DCONFIG_BYPASS_QMI
Yuanyuan Liuf45ab3d2017-12-14 11:00:09 -08001673endif
1674
Jeff Johnsonee869842018-04-17 11:14:03 -07001675cppflags-$(CONFIG_WLAN_FASTPATH) += -DWLAN_FEATURE_FASTPATH
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001676
Jeff Johnsonee869842018-04-17 11:14:03 -07001677cppflags-$(CONFIG_FEATURE_PKTLOG) += -DFEATURE_PKTLOG
Poddar, Siddartheefe3482016-09-21 18:12:59 +05301678
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001679ifeq ($(CONFIG_WLAN_NAPI), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001680cppflags-y += -DFEATURE_NAPI
1681cppflags-y += -DHIF_IRQ_AFFINITY
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001682ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001683cppflags-y += -DFEATURE_NAPI_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001684endif
1685endif
1686
Yue Madf224b82016-04-21 12:46:04 -07001687ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
Jeff Johnsonee869842018-04-17 11:14:03 -07001688cppflags-y += -DMSM_PLATFORM
Yuanyuan Liu5af44362016-04-01 21:57:06 -07001689endif
1690
Jeff Johnsonee869842018-04-17 11:14:03 -07001691cppflags-y += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001692
Jeff Johnsonee869842018-04-17 11:14:03 -07001693cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_CONTROL_V2
1694cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
1695cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY) += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001696
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001697ifeq ($(BUILD_DEBUG_VERSION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001698cppflags-y += -DWLAN_DEBUG
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001699ifeq ($(CONFIG_TRACE_RECORD_FEATURE), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001700cppflags-y += -DTRACE_RECORD \
Rachit Kankane0baf6e72018-01-19 15:01:50 +05301701 -DLIM_TRACE_RECORD \
1702 -DSME_TRACE_RECORD \
1703 -DHDD_TRACE_RECORD
1704endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001705endif
Dustin Brown0ea8d3b2018-07-06 13:58:49 -07001706cppflags-$(CONFIG_UNIT_TEST) += -DWLAN_UNIT_TEST
Jeff Johnsonee869842018-04-17 11:14:03 -07001707cppflags-$(CONFIG_WLAN_DEBUG_CRASH_INJECT) += -DCONFIG_WLAN_DEBUG_CRASH_INJECT
1708cppflags-$(CONFIG_FEATURE_UNIT_TEST_SUSPEND) += -DWLAN_SUSPEND_RESUME_TEST
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07001709
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001710ifeq ($(CONFIG_LEAK_DETECTION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001711cppflags-y += \
Dustin Brown63ef3182018-04-02 10:57:18 -07001712 -DCONFIG_HALT_KMEMLEAK \
1713 -DCONFIG_LEAK_DETECTION \
1714 -DMEMORY_DEBUG \
1715 -DNBUF_MEMORY_DEBUG \
Dustin Brownf39413a2018-07-05 14:01:23 -07001716 -DNBUF_MAP_UNMAP_DEBUG \
Dustin Brown63ef3182018-04-02 10:57:18 -07001717 -DTIMER_MANAGER
Dustin Brown21a761d2017-11-15 16:37:00 -08001718endif
1719
Jeff Johnsonee869842018-04-17 11:14:03 -07001720cppflags-y += -DWLAN_FEATURE_P2P
1721cppflags-y += -DWLAN_FEATURE_WFD
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001722ifeq ($(CONFIG_QCOM_VOWIFI_11R), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001723cppflags-y += -DKERNEL_SUPPORT_11R_CFG80211
1724cppflags-y += -DUSE_80211_WMMTSPEC_FOR_RIC
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001725endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001726
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001727ifeq ($(CONFIG_QCOM_ESE), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001728cppflags-y += -DFEATURE_WLAN_ESE
1729cppflags-y += -DQCA_COMPUTE_TX_DELAY
1730cppflags-y += -DQCA_COMPUTE_TX_DELAY_PER_TID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001731endif
1732
1733#normally, TDLS negative behavior is not needed
Jeff Johnsonee869842018-04-17 11:14:03 -07001734cppflags-$(CONFIG_QCOM_TDLS) += -DFEATURE_WLAN_TDLS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001735
Jeff Johnsonee869842018-04-17 11:14:03 -07001736cppflags-$(CONFIG_QCACLD_WLAN_LFR3) += -DWLAN_FEATURE_ROAM_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001737
Jeff Johnsonee869842018-04-17 11:14:03 -07001738cppflags-$(CONFIG_CNSS_GENL) += -DCNSS_GENL
Selvaraj, Sridhar046d77d2017-03-07 14:53:13 +05301739
Jeff Johnsonee869842018-04-17 11:14:03 -07001740cppflags-$(CONFIG_QCACLD_WLAN_LFR2) += -DWLAN_FEATURE_HOST_ROAM
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -08001741
Qiwei Caid96c0212018-06-15 11:12:49 +08001742cppflags-$(CONFIG_FEATURE_ROAM_DEBUG) += -DFEATURE_ROAM_DEBUG
1743
Jeff Johnsonee869842018-04-17 11:14:03 -07001744cppflags-$(CONFIG_WLAN_POWER_DEBUGFS) += -DWLAN_POWER_DEBUGFS
Sridhar Selvarajdc400d22016-10-18 17:18:03 +05301745
Rajeev Kumar69d7d492017-02-13 21:48:16 -08001746# Enable object manager reference count debug infrastructure
Jeff Johnsonee869842018-04-17 11:14:03 -07001747cppflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_DEBUG
Rajeev Kumar69d7d492017-02-13 21:48:16 -08001748
Jeff Johnsonee869842018-04-17 11:14:03 -07001749cppflags-$(CONFIG_WLAN_FEATURE_SAE) += -DWLAN_FEATURE_SAE
Padma, Santhosh Kumar07eb80b2017-07-05 16:10:06 +05301750
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001751ifeq ($(BUILD_DIAG_VERSION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001752cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT
1753cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
1754cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001755ifeq ($(CONFIG_HIF_PCI), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001756cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001757endif
1758endif
1759
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001760ifeq ($(CONFIG_HIF_USB), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001761cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1762cppflags-y += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
1763cppflags-y += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001764endif
1765
Jeff Johnsonee869842018-04-17 11:14:03 -07001766cppflags-$(CONFIG_WLAN_FEATURE_11W) += -DWLAN_FEATURE_11W
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001767
Jeff Johnsonee869842018-04-17 11:14:03 -07001768cppflags-$(CONFIG_QCA_TXDESC_SANITY_CHECKS) += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
gbiane55c9562016-11-01 14:47:47 +08001769
Jeff Johnsonee869842018-04-17 11:14:03 -07001770cppflags-$(CONFIG_QCOM_LTE_COEX) += -DFEATURE_WLAN_CH_AVOID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001771
Jeff Johnsonee869842018-04-17 11:14:03 -07001772cppflags-$(CONFIG_WLAN_FEATURE_LPSS) += -DWLAN_FEATURE_LPSS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001773
Nirav Shaha72db1d2018-06-06 17:11:07 +05301774cppflags-$(CONFIG_DESC_DUP_DETECT_DEBUG) += -DDESC_DUP_DETECT_DEBUG
1775cppflags-$(CONFIG_DEBUG_RX_RING_BUFFER) += -DDEBUG_RX_RING_BUFFER
Nirav Shah76291962016-04-25 10:50:37 +05301776
Jeff Johnsonee869842018-04-17 11:14:03 -07001777cppflags-$(PANIC_ON_BUG) += -DPANIC_ON_BUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001778
Jeff Johnsonee869842018-04-17 11:14:03 -07001779cppflags-$(WLAN_WARN_ON_ASSERT) += -DWLAN_WARN_ON_ASSERT
Dustin Brown0634ba32018-03-22 13:00:44 -07001780
Rajeev Kumar6bdee8e2018-04-18 17:36:05 -07001781ccflags-$(CONFIG_POWER_MANAGEMENT_OFFLOAD) += -DWLAN_POWER_MANAGEMENT_OFFLOAD
1782
Jeff Johnsonee869842018-04-17 11:14:03 -07001783cppflags-$(CONFIG_WLAN_LOG_FATAL) += -DWLAN_LOG_FATAL
1784cppflags-$(CONFIG_WLAN_LOG_ERROR) += -DWLAN_LOG_ERROR
1785cppflags-$(CONFIG_WLAN_LOG_WARN) += -DWLAN_LOG_WARN
1786cppflags-$(CONFIG_WLAN_LOG_INFO) += -DWLAN_LOG_INFO
1787cppflags-$(CONFIG_WLAN_LOG_DEBUG) += -DWLAN_LOG_DEBUG
Dustin Brown92def292018-03-14 15:02:14 -07001788
Jeff Johnsonee869842018-04-17 11:14:03 -07001789cppflags-$(WLAN_OPEN_SOURCE) += -DWLAN_OPEN_SOURCE
Dustin Brown92def292018-03-14 15:02:14 -07001790
Jeff Johnsonee869842018-04-17 11:14:03 -07001791cppflags-$(CONFIG_FEATURE_STATS_EXT) += -DWLAN_FEATURE_STATS_EXT
Dustin Brown92def292018-03-14 15:02:14 -07001792
Jeff Johnsonee869842018-04-17 11:14:03 -07001793cppflags-$(CONFIG_QCACLD_FEATURE_NAN) += -DWLAN_FEATURE_NAN
Dustin Brown92def292018-03-14 15:02:14 -07001794
Jeff Johnsonee869842018-04-17 11:14:03 -07001795cppflags-$(CONFIG_QCA_IBSS_SUPPORT) += -DQCA_IBSS_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001796
1797#Enable OL debug and wmi unified functions
Jeff Johnsonee869842018-04-17 11:14:03 -07001798cppflags-$(CONFIG_ATH_PERF_PWR_OFFLOAD) += -DATH_PERF_PWR_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001799
1800#Disable packet log
Jeff Johnsonee869842018-04-17 11:14:03 -07001801cppflags-$(CONFIG_REMOVE_PKT_LOG) += -DREMOVE_PKT_LOG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001802
1803#Enable 11AC TX
Jeff Johnsonee869842018-04-17 11:14:03 -07001804cppflags-$(CONFIG_ATH_11AC_TXCOMPACT) += -DATH_11AC_TXCOMPACT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001805
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001806#Enable PCI specific APIS (dma, etc)
Jeff Johnsonee869842018-04-17 11:14:03 -07001807cppflags-$(CONFIG_HIF_PCI) += -DHIF_PCI
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001808
Jeff Johnsonee869842018-04-17 11:14:03 -07001809cppflags-$(CONFIG_HIF_SNOC) += -DHIF_SNOC
Houston Hoffman1edffd32016-01-27 16:30:34 -08001810
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301811#Enable High Latency related Flags
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001812ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001813cppflags-y += -DCONFIG_HL_SUPPORT \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301814 -DCONFIG_AR6320_SUPPORT \
1815 -DSDIO_3_0 \
1816 -DHIF_SDIO \
1817 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
1818 -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
1819 -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \
1820 -DHIF_MBOX_SLEEP_WAR \
1821 -DDEBUG_HL_LOGGING \
1822 -DQCA_BAD_PEER_TX_FLOW_CL \
1823 -DCONFIG_TX_DESC_HI_PRIO_RESERVE \
1824 -DCONFIG_PER_VDEV_TX_DESC_POOL \
1825 -DCONFIG_SDIO \
1826 -DFEATURE_WLAN_FORCE_SAP_SCC
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301827
1828ifeq ($(CONFIG_SDIO_TRANSFER), adma)
1829cppflags-y += -DCONFIG_SDIO_TRANSFER_ADMA
1830else
1831cppflags-y += -DCONFIG_SDIO_TRANSFER_MAILBOX
1832endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301833endif
1834
Agrawal Ashishb141b092016-09-02 19:59:26 +05301835ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001836cppflags-y += -DWLAN_FEATURE_DSRC
Zhang Qian47e22ce2018-01-04 15:38:38 +08001837
1838ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001839cppflags-y += -DWLAN_OCB_UT
Zhang Qian47e22ce2018-01-04 15:38:38 +08001840endif
1841
Agrawal Ashishb141b092016-09-02 19:59:26 +05301842endif
1843
Jeff Johnsonee869842018-04-17 11:14:03 -07001844cppflags-$(CONFIG_FEATURE_SKB_PRE_ALLOC) += -DFEATURE_SKB_PRE_ALLOC
bings7762da12017-03-06 07:21:04 +08001845
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001846#Enable USB specific APIS
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001847ifeq ($(CONFIG_HIF_USB), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001848cppflags-y += -DHIF_USB \
Nirav Shaheb017be2018-02-15 11:20:58 +05301849 -DDEBUG_HL_LOGGING \
Mohit Khannae7a43572016-10-10 17:34:21 -07001850 -DCONFIG_HL_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001851endif
1852
Ajit Pal Singh0bd748a2018-06-19 11:48:02 +05301853#Enable Genoa specific features.
1854cppflags-$(CONFIG_QCA_HL_NETDEV_FLOW_CONTROL) += -DQCA_HL_NETDEV_FLOW_CONTROL
1855cppflags-$(CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL) += -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL
1856cppflags-$(CONFIG_FEATURE_HL_DBS_GROUP_CREDIT_SHARING) += -DFEATURE_HL_DBS_GROUP_CREDIT_SHARING
1857cppflags-$(CONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE) += -DCONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE
1858
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001859#Enable FW logs through ini
Jeff Johnsonee869842018-04-17 11:14:03 -07001860cppflags-y += -DCONFIG_FW_LOGS_BASED_ON_INI
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001861
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001862#Enable power management suspend/resume functionality
Jeff Johnsonee869842018-04-17 11:14:03 -07001863cppflags-$(CONFIG_ATH_BUS_PM) += -DATH_BUS_PM
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001864
1865#Enable FLOWMAC module support
Jeff Johnsonee869842018-04-17 11:14:03 -07001866cppflags-$(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE) += -DATH_SUPPORT_FLOWMAC_MODULE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001867
1868#Enable spectral support
Jeff Johnsonee869842018-04-17 11:14:03 -07001869cppflags-$(CONFIG_ATH_SUPPORT_SPECTRAL) += -DATH_SUPPORT_SPECTRAL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001870
1871#Enable WDI Event support
Jeff Johnsonee869842018-04-17 11:14:03 -07001872cppflags-$(CONFIG_WDI_EVENT_ENABLE) += -DWDI_EVENT_ENABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001873
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07001874#Endianness selection
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001875ifeq ($(CONFIG_LITTLE_ENDIAN), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001876cppflags-y += -DANI_LITTLE_BYTE_ENDIAN
1877cppflags-y += -DANI_LITTLE_BIT_ENDIAN
1878cppflags-y += -DDOT11F_LITTLE_ENDIAN_HOST
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001879else
Jeff Johnsonee869842018-04-17 11:14:03 -07001880cppflags-y += -DANI_BIG_BYTE_ENDIAN
1881cppflags-y += -DBIG_ENDIAN_HOST
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001882endif
1883
1884#Enable TX reclaim support
Jeff Johnsonee869842018-04-17 11:14:03 -07001885cppflags-$(CONFIG_TX_CREDIT_RECLAIM_SUPPORT) += -DTX_CREDIT_RECLAIM_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001886
1887#Enable FTM support
Jeff Johnsonee869842018-04-17 11:14:03 -07001888cppflags-$(CONFIG_QCA_WIFI_FTM) += -DQCA_WIFI_FTM
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001889
1890#Enable Checksum Offload support
Jeff Johnsonee869842018-04-17 11:14:03 -07001891cppflags-$(CONFIG_CHECKSUM_OFFLOAD) += -DCHECKSUM_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001892
1893#Enable Checksum Offload support
Jeff Johnsonee869842018-04-17 11:14:03 -07001894cppflags-$(CONFIG_IPA_OFFLOAD) += -DIPA_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001895
anisha agarwal188d2542017-03-21 13:15:58 -07001896ifeq ($(CONFIG_ARCH_SDX20), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001897cppflags-y += -DSYNC_IPA_READY
bings7762da12017-03-06 07:21:04 +08001898endif
1899
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001900#Enable GTK Offload
Jeff Johnsonee869842018-04-17 11:14:03 -07001901cppflags-$(CONFIG_GTK_OFFLOAD) += -DWLAN_FEATURE_GTK_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001902
Jeff Johnsonb8b39762018-04-06 20:08:10 -07001903#Enable External WoW
Jeff Johnsonee869842018-04-17 11:14:03 -07001904cppflags-$(CONFIG_EXT_WOW) += -DWLAN_FEATURE_EXTWOW_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001905
1906#Mark it as SMP Kernel
Jeff Johnsonee869842018-04-17 11:14:03 -07001907cppflags-$(CONFIG_SMP) += -DQCA_CONFIG_SMP
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001908
Jeff Johnsonee869842018-04-17 11:14:03 -07001909cppflags-$(CONFIG_CHNL_MATRIX_RESTRICTION) += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001910
Zhu Jianmin04392c42017-05-12 16:34:53 +08001911#Enable ICMP packet disable powersave feature
Jeff Johnsonee869842018-04-17 11:14:03 -07001912cppflags-$(CONFIG_ICMP_DISABLE_PS) += -DWLAN_ICMP_DISABLE_PS
Zhu Jianmin04392c42017-05-12 16:34:53 +08001913
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07001914#Enable OBSS feature
Jeff Johnsonee869842018-04-17 11:14:03 -07001915cppflags-y += -DQCA_HT_2040_COEX
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07001916
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001917#enable MCC TO SCC switch
Jeff Johnsonee869842018-04-17 11:14:03 -07001918cppflags-$(CONFIG_FEATURE_WLAN_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001919
1920#enable wlan auto shutdown feature
Jeff Johnsonee869842018-04-17 11:14:03 -07001921cppflags-$(CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN) += -DFEATURE_WLAN_AUTO_SHUTDOWN
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001922
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001923#enable AP-AP ACS Optimization
Jeff Johnsonee869842018-04-17 11:14:03 -07001924cppflags-$(CONFIG_FEATURE_WLAN_AP_AP_ACS_OPTIMIZE) += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001925
1926#Enable 4address scheme
Jeff Johnsonee869842018-04-17 11:14:03 -07001927cppflags-$(CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME) += -DFEATURE_WLAN_STA_4ADDR_SCHEME
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001928
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08001929#enable MDM/SDX special config
Jeff Johnsonee869842018-04-17 11:14:03 -07001930cppflags-$(CONFIG_MDM_PLATFORM) += -DMDM_PLATFORM
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08001931
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001932#Disable STA-AP Mode DFS support
Jeff Johnsonee869842018-04-17 11:14:03 -07001933cppflags-$(CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE) += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001934
1935#Open P2P device interface only for non-Mobile router use cases
Jeff Johnsonee869842018-04-17 11:14:03 -07001936cppflags-$(CONFIG_WLAN_OPEN_P2P_INTERFACE) += -DWLAN_OPEN_P2P_INTERFACE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001937
1938#Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
Jeff Johnsonee869842018-04-17 11:14:03 -07001939cppflags-$(CONFIG_WLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY) += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001940
1941#Green AP feature
Jeff Johnsonee869842018-04-17 11:14:03 -07001942cppflags-$(CONFIG_QCACLD_FEATURE_GREEN_AP) += -DWLAN_SUPPORT_GREEN_AP
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001943
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +05301944ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
1945cppflags-$(CONFIG_QCACLD_FEATURE_APF) += -DFEATURE_WLAN_APF
1946endif
1947
Yun Park637d6482016-10-05 10:51:33 -07001948#Stats & Quota Metering feature
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001949ifeq ($(CONFIG_IPA_OFFLOAD), y)
1950ifeq ($(CONFIG_QCACLD_FEATURE_METERING), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001951cppflags-y += -DFEATURE_METERING
Yun Park637d6482016-10-05 10:51:33 -07001952endif
Yun Parkb4f591d2017-03-29 15:51:01 -07001953endif
Yun Park637d6482016-10-05 10:51:33 -07001954
Jeff Johnsonee869842018-04-17 11:14:03 -07001955cppflags-$(CONFIG_TUFELLO_DUAL_FW_SUPPORT) += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
1956cppflags-$(CONFIG_CHANNEL_HOPPING_ALL_BANDS) += -DCHANNEL_HOPPING_ALL_BANDS
gaolez76d2a162017-03-21 19:23:58 +08001957
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001958#Enable Signed firmware support for split binary format
Jeff Johnsonee869842018-04-17 11:14:03 -07001959cppflags-$(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT) += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001960
1961#Enable single firmware binary format
Jeff Johnsonee869842018-04-17 11:14:03 -07001962cppflags-$(CONFIG_QCA_SINGLE_BINARY_SUPPORT) += -DQCA_SINGLE_BINARY_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001963
1964#Enable collecting target RAM dump after kernel panic
Jeff Johnsonee869842018-04-17 11:14:03 -07001965cppflags-$(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC) += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001966
1967#Enable/disable secure firmware feature
Jeff Johnsonee869842018-04-17 11:14:03 -07001968cppflags-$(CONFIG_FEATURE_SECURE_FIRMWARE) += -DFEATURE_SECURE_FIRMWARE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001969
Jeff Johnsonee869842018-04-17 11:14:03 -07001970cppflags-$(CONFIG_ATH_PCIE_ACCESS_DEBUG) += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001971
Jeff Johnson69ba6d02018-04-12 16:05:32 -07001972# Enable feature support for Linux version QCMBR
Jeff Johnsonee869842018-04-17 11:14:03 -07001973cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001974
Manikandan Mohandcc21ba2016-03-15 14:31:56 -07001975# Enable featue sync tsf between multi devices
Jeff Johnsonee869842018-04-17 11:14:03 -07001976cppflags-$(CONFIG_WLAN_SYNC_TSF) += -DWLAN_FEATURE_TSF
1977cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS) += -DWLAN_FEATURE_TSF_PLUS
Yu Wang000dc2f2017-05-26 17:38:48 +08001978
Jeff Johnsonee869842018-04-17 11:14:03 -07001979cppflags-$(CONFIG_ATH_PROCFS_DIAG_SUPPORT) += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
Nirav Shahe8ac3402017-12-31 15:36:32 +05301980
Jeff Johnsonee869842018-04-17 11:14:03 -07001981cppflags-$(CONFIG_HELIUMPLUS) += -DHELIUMPLUS
Manjunathappa Prakash7b0ad462018-04-15 00:37:16 -07001982cppflags-$(CONFIG_RX_OL) += -DRECEIVE_OFFLOAD
chenguo0f3636b2018-05-10 14:24:49 +08001983cppflags-$(CONFIG_TX_TID_OVERRIDE) += -DATH_TX_PRI_OVERRIDE
Jeff Johnsonee869842018-04-17 11:14:03 -07001984cppflags-$(CONFIG_AR900B) += -DAR900B
1985cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
1986cppflags-$(CONFIG_OL_RX_INDICATION_RECORD) += -DOL_RX_INDICATION_RECORD
1987cppflags-$(CONFIG_TSOSEG_DEBUG) += -DTSOSEG_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001988
Jeff Johnsonee869842018-04-17 11:14:03 -07001989cppflags-$(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING) += -DENABLE_DEBUG_ADDRESS_MARKING
1990cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
1991cppflags-$(CONFIG_FEATURE_TSO_DEBUG) += -DFEATURE_TSO_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001992
Jeff Johnsonee869842018-04-17 11:14:03 -07001993cppflags-$(CONFIG_WLAN_LRO) += -DFEATURE_LRO
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001994
Jeff Johnsonee869842018-04-17 11:14:03 -07001995cppflags-$(CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE) += -DFEATURE_AP_MCC_CH_AVOIDANCE
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001996
Jeff Johnsonee869842018-04-17 11:14:03 -07001997cppflags-$(CONFIG_MPC_UT_FRAMEWORK) += -DMPC_UT_FRAMEWORK
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001998
Jeff Johnsonee869842018-04-17 11:14:03 -07001999cppflags-$(CONFIG_FEATURE_EPPING) += -DWLAN_FEATURE_EPPING
Nirav Shah459bebf2018-01-17 16:59:14 +05302000
Jeff Johnsonee869842018-04-17 11:14:03 -07002001cppflags-$(CONFIG_WLAN_OFFLOAD_PACKETS) += -DWLAN_FEATURE_OFFLOAD_PACKETS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002002
Jeff Johnsonee869842018-04-17 11:14:03 -07002003cppflags-$(CONFIG_WLAN_FEATURE_DISA) += -DWLAN_FEATURE_DISA
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +05302004
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05302005cppflags-$(CONFIG_WLAN_FEATURE_ACTION_OUI) += -DWLAN_FEATURE_ACTION_OUI
2006
Jeff Johnsonee869842018-04-17 11:14:03 -07002007cppflags-$(CONFIG_WLAN_FEATURE_FIPS) += -DWLAN_FEATURE_FIPS
Jeff Johnson7869aad2017-05-15 15:46:36 -07002008
Jeff Johnsonee869842018-04-17 11:14:03 -07002009cppflags-$(CONFIG_LFR_SUBNET_DETECTION) += -DFEATURE_LFR_SUBNET_DETECTION
Ravi Joshi61c3c7a2015-11-09 18:41:20 -08002010
Jeff Johnsonee869842018-04-17 11:14:03 -07002011cppflags-$(CONFIG_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +05302012
Jeff Johnsonee869842018-04-17 11:14:03 -07002013cppflags-$(CONFIG_WLAN_FEATURE_NAN_DATAPATH) += -DWLAN_FEATURE_NAN_DATAPATH
Ravi Joshia063dd92016-05-25 16:43:13 -07002014
Jeff Johnsonee869842018-04-17 11:14:03 -07002015cppflags-$(CONFIG_NAN_CONVERGENCE) += -DWLAN_FEATURE_NAN_CONVERGENCE
Naveen Rawat6d2bf182017-03-22 10:18:00 -07002016
Jeff Johnsonee869842018-04-17 11:14:03 -07002017cppflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW
Will Huang3cd2b7c2017-11-17 13:16:56 +08002018
Yue Ma91e1c002018-05-24 11:18:36 -07002019cppflags-$(CONFIG_QCA_WIFI_NAPIER_EMULATION) += -DQCA_WIFI_NAPIER_EMULATION
Jeff Johnsonee869842018-04-17 11:14:03 -07002020cppflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2
2021cppflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF
2022cppflags-$(CONFIG_QCA_WIFI_QCA6290) += -DQCA_WIFI_QCA6290
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07002023cppflags-$(CONFIG_QCA6390_HEADERS_DEF) += -DQCA6390_HEADERS_DEF
2024cppflags-$(CONFIG_QCA_WIFI_QCA6390) += -DQCA_WIFI_QCA6390
Jeff Johnsonee869842018-04-17 11:14:03 -07002025cppflags-$(CONFIG_QCA_WIFI_QCA8074) += -DQCA_WIFI_QCA8074
2026cppflags-$(CONFIG_QCA_WIFI_QCA8074_VP) += -DQCA_WIFI_QCA8074_VP
2027cppflags-$(CONFIG_DP_INTR_POLL_BASED) += -DDP_INTR_POLL_BASED
2028cppflags-$(CONFIG_TX_PER_PDEV_DESC_POOL) += -DTX_PER_PDEV_DESC_POOL
2029cppflags-$(CONFIG_DP_TRACE) += -DCONFIG_DP_TRACE
2030cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
2031cppflags-$(CONFIG_TSO_DEBUG_LOG_ENABLE) += -DTSO_DEBUG_LOG_ENABLE
2032cppflags-$(CONFIG_DP_LFR) += -DDP_LFR
2033cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
Qiwei Caia01a9622018-07-11 10:02:03 +08002034cppflags-$(CONFIG_WLAN_FEATURE_BMI) += -DWLAN_FEATURE_BMI
Leo Chang5f7a1e02016-11-04 14:04:26 -07002035
Nirav Shahc8047a82018-06-22 16:39:01 +05302036ccflags-$(CONFIG_QCA_LL_TX_FLOW_CONTROL_RESIZE) += -DQCA_LL_TX_FLOW_CONTROL_RESIZE
2037
psimha0b6bb892017-10-10 14:28:34 -07002038ifeq ($(CONFIG_QCA6290_11AX), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002039cppflags-y += -DQCA_WIFI_QCA6290_11AX
psimha0b6bb892017-10-10 14:28:34 -07002040endif
2041
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07002042
Jeff Johnsonee869842018-04-17 11:14:03 -07002043cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX
2044cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX_BSS_COLOR
Krishna Kumaar Natarajan639c6ff2017-02-13 14:01:04 -08002045
Sravan Kumar Kairam7bca07e2018-07-05 18:32:22 +05302046cppflags-$(CONFIG_LITHIUM) += -DFEATURE_AST
2047
Leo Chang5f7a1e02016-11-04 14:04:26 -07002048# Dummy flag for WIN/MCL converged data path compilation
Jeff Johnsonee869842018-04-17 11:14:03 -07002049cppflags-y += -DDP_PRINT_ENABLE=0
2050cppflags-y += -DATH_SUPPORT_WRAP=0
2051cppflags-y += -DQCA_HOST2FW_RXBUF_RING
Leo Chang5f7a1e02016-11-04 14:04:26 -07002052#endof dummy flags
2053
Jianmin Zhu91e834d2018-07-12 11:07:42 +08002054# Enable lock of serialization component to avoid race condition issues
2055cppflags-y += -DWLAN_CMD_SERIALIZATION_LOCKING
2056
Nirav Shah8ba94a52018-06-07 09:06:25 +05302057ccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os
2058
Arif Hussain757b45f2017-02-11 16:47:06 -08002059# DFS component
Wen Gong01a2c632018-04-11 18:34:55 +08002060cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_MCL_DFS_SUPPORT
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002061ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
Wen Gong01a2c632018-04-11 18:34:55 +08002062cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_FULL_OFFLOAD
Arif Hussain02c2b632018-03-08 23:09:21 -08002063else
Wen Gong01a2c632018-04-11 18:34:55 +08002064cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_PARTIAL_OFFLOAD
Arif Hussain02c2b632018-03-08 23:09:21 -08002065endif
Wen Gong01a2c632018-04-11 18:34:55 +08002066cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DDFS_COMPONENT_ENABLE
2067cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_USE_POLICY_MANAGER
2068cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
Arif Hussain757b45f2017-02-11 16:47:06 -08002069
Jeff Johnsonee869842018-04-17 11:14:03 -07002070cppflags-$(CONFIG_WLAN_DEBUGFS) += -DWLAN_DEBUGFS
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -07002071
Jeff Johnsonee869842018-04-17 11:14:03 -07002072cppflags-$(CONFIG_DYNAMIC_DEBUG) += -DFEATURE_MULTICAST_HOST_FW_MSGS
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08002073
Jeff Johnsonee869842018-04-17 11:14:03 -07002074cppflags-$(CONFIG_ENABLE_SMMU_S1_TRANSLATION) += -DENABLE_SMMU_S1_TRANSLATION
Himanshu Agarwaledf30dc2017-06-05 15:54:27 +05302075
Alok Kumarb64650c2018-03-23 17:05:11 +05302076#Flag to enable NUD tracking
Jeff Johnsonee869842018-04-17 11:14:03 -07002077cppflags-$(CONFIG_WLAN_NUD_TRACKING) += -DWLAN_NUD_TRACKING
2078
Nirav Shah997e0832018-06-06 17:49:12 +05302079# configure log buffer size
2080ifdef CONFIG_CFG_NUM_DP_TRACE_RECORD
2081ccflags-y += -DMAX_QDF_DP_TRACE_RECORDS=$(CONFIG_CFG_NUM_DP_TRACE_RECORD)
2082endif
2083
2084ifdef CONFIG_CFG_NUM_HTC_CREDIT_HISTORY
2085ccflags-y += -DHTC_CREDIT_HISTORY_MAX=$(CONFIG_CFG_NUM_HTC_CREDIT_HISTORY)
2086endif
2087
2088ifdef CONFIG_CFG_NUM_WMI_EVENT_HISTORY
2089ccflags-y += -DWMI_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_EVENT_HISTORY)
2090endif
2091
2092ifdef CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY
2093ccflags-y += -DWMI_MGMT_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY)
2094endif
2095
2096ifdef CONFIG_CFG_NUM_TX_RX_HISTOGRAM
2097ccflags-y += -DNUM_TX_RX_HISTOGRAM=$(CONFIG_CFG_NUM_TX_RX_HISTOGRAM)
2098endif
2099
2100ifdef CONFIG_CFG_NUM_RX_IND_RECORD
2101ccflags-y += -DOL_RX_INDICATION_MAX_RECORDS=$(CONFIG_CFG_NUM_RX_IND_RECORD)
2102endif
2103
Qiwei Caiad9b01c2018-07-09 17:21:31 +08002104ifdef CONFIG_CFG_NUM_ROAM_DEBUG_RECORD
2105ccflags-y += -DWLAN_ROAM_DEBUG_MAX_REC=$(CONFIG_CFG_NUM_ROAM_DEBUG_RECORD)
2106endif
2107
Rachit Kankane8863cba2018-06-05 17:31:48 +05302108ifdef CONFIG_CFG_PMO_WOW_FILTERS_MAX
2109ccflags-y += -DPMO_WOW_FILTERS_MAX=$(CONFIG_CFG_PMO_WOW_FILTERS_MAX)
2110endif
Nirav Shah997e0832018-06-06 17:49:12 +05302111
jsreekumac44b922018-06-12 20:18:39 +05302112ifdef CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV
2113ccflags-y += -DCFG_TGT_DEFAULT_GTK_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV)
2114endif
2115
2116ifdef CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV
2117ccflags-y += -DCFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV)
2118endif
2119
2120ifdef CONFIG_CFG_MAX_PERIODIC_TX_PTRNS
2121ccflags-y += -DWMA_MAXNUM_PERIODIC_TX_PTRNS=$(CONFIG_CFG_MAX_PERIODIC_TX_PTRNS)
2122endif
2123
2124ifdef CONFIG_CFG_MAX_STA_VDEVS
2125ccflags-y += -DCFG_TGT_DEFAULT_MAX_STA_VDEVS=$(CONFIG_CFG_MAX_STA_VDEVS)
2126endif
2127
Rachit Kankane0106e382018-05-16 18:59:28 +05302128ifdef CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS
2129ccflags-y += -DNUM_OF_ADDITIONAL_FW_PEERS=$(CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS)
2130endif
2131
jsreekumac44b922018-06-12 20:18:39 +05302132ifdef CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES
2133ccflags-y += -DCFG_TGT_NUM_TDLS_CONN_TABLE_ENTRIES=$(CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES)
2134endif
2135
Jeff Johnsonee869842018-04-17 11:14:03 -07002136KBUILD_CPPFLAGS += $(cppflags-y)
Alok Kumarb64650c2018-03-23 17:05:11 +05302137
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002138# Currently, for versions of gcc which support it, the kernel Makefile
2139# is disabling the maybe-uninitialized warning. Re-enable it for the
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002140# WLAN driver. Note that we must use ccflags-y here so that it
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002141# will override the kernel settings.
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002142ifeq ($(call cc-option-yn, -Wmaybe-uninitialized), y)
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002143ccflags-y += -Wmaybe-uninitialized
Leo Chang5f7a1e02016-11-04 14:04:26 -07002144ifneq (y,$(CONFIG_ARCH_MSM))
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002145ccflags-y += -Wframe-larger-than=4096
Leo Chang5f7a1e02016-11-04 14:04:26 -07002146endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002147endif
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002148ccflags-y += -Wmissing-prototypes
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002149
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002150ifeq ($(call cc-option-yn, -Wheader-guard), y)
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002151ccflags-y += -Wheader-guard
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002152endif
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302153# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
Yu Wang66e4ff22017-02-15 19:09:24 +08002154# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302155# any string that must be unique for all instances of the driver on the system.
2156# This allows multiple instances of the driver with different module names.
2157# If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
2158# treat the driver as the primary driver.
2159ifneq ($(MODNAME), wlan)
Yu Wang66e4ff22017-02-15 19:09:24 +08002160CHIP_NAME ?= $(MODNAME)
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07002161ccflags-y += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302162endif
2163
2164# WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
2165# system. If it is not defined, then the host driver will use the first 4
2166# characters (including NULL) of MULTI_IF_NAME to construct
2167# WLAN_HDD_ADAPTER_MAGIC.
2168ifdef WLAN_HDD_ADAPTER_MAGIC
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07002169ccflags-y += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302170endif
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002171
Dustin Brown9b217c02018-03-29 11:17:53 -07002172# Determine if we are building against an arm architecture host
2173ifeq ($(findstring arm, $(ARCH)),)
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07002174 ccflags-y += -DWLAN_HOST_ARCH_ARM=0
Dustin Brown9b217c02018-03-29 11:17:53 -07002175else
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07002176 ccflags-y += -DWLAN_HOST_ARCH_ARM=1
Dustin Brown9b217c02018-03-29 11:17:53 -07002177endif
2178
Naveen Rawat93836252017-06-20 16:30:59 -07002179# inject some build related information
Dustin Brown96cd9632017-11-13 12:45:04 -08002180ifeq ($(CONFIG_BUILD_TAG), y)
Dustin Brown0e769d02017-11-14 12:52:32 -08002181CLD_CHECKOUT = $(shell cd "$(WLAN_ROOT)" && \
2182 git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+)
2183CLD_IDS = $(shell cd "$(WLAN_ROOT)" && \
2184 git log $(CLD_CHECKOUT)~..HEAD | \
2185 sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
2186 paste -sd "," -)
2187
2188CMN_CHECKOUT = $(shell cd "$(WLAN_COMMON_INC)" && \
2189 git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+)
2190CMN_IDS = $(shell cd "$(WLAN_COMMON_INC)" && \
2191 git log $(CMN_CHECKOUT)~..HEAD | \
2192 sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
2193 paste -sd "," -)
2194
Dustin Brown96cd9632017-11-13 12:45:04 -08002195TIMESTAMP = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
Dustin Brown0e769d02017-11-14 12:52:32 -08002196BUILD_TAG = "$(TIMESTAMP); cld:$(CLD_IDS); cmn:$(CMN_IDS);"
Mahesh Kumar Kalikot Veetil48af32b2018-02-23 11:50:19 -08002197# It's assumed that BUILD_TAG is used only in wlan_hdd_main.c
2198CFLAGS_wlan_hdd_main.o += -DBUILD_TAG=\"$(BUILD_TAG)\"
Naveen Rawat93836252017-06-20 16:30:59 -07002199endif
2200
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002201# Module information used by KBuild framework
2202obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
2203$(MODNAME)-y := $(OBJS)
Srinivas Girigowdac7a1b0a2017-12-08 12:00:00 -08002204OBJS_DIRS := $(dir $(OBJS)) \
2205 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ \
2206 $(QDF_OBJ_DIR)/ \
2207 $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/ \
2208 $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/ \
2209 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/
2210CLEAN_DIRS := $(addsuffix *.o,$(sort $(OBJS_DIRS))) \
2211 $(addsuffix .*.o.cmd,$(sort $(OBJS_DIRS)))
2212clean-files := $(CLEAN_DIRS)