blob: 6e957b55ba9d4f24483694dee1ccf29038557ef7 [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
Mukul Sharmad75a6672017-06-22 15:40:53 +0530737########## CLD TARGET_IF #######
Rajeev Kumarf46083e2017-07-17 17:48:16 -0700738CLD_TARGET_IF_DIR := components/target_if
Mukul Sharmad75a6672017-06-22 15:40:53 +0530739
740CLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \
Zhang Qian47e22ce2018-01-04 15:38:38 +0800741 -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src
Mukul Sharmad75a6672017-06-22 15:40:53 +0530742
Wu Gaoa9d336b2018-05-30 14:48:04 +0800743ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
Mukul Sharmad75a6672017-06-22 15:40:53 +0530744CLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
745 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
746 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \
747 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
748 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
749 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
Mukul Sharmad75a6672017-06-22 15:40:53 +0530750 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o \
751 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
752 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
Zhang Qian47e22ce2018-01-04 15:38:38 +0800753 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o
Qiwei Cai1083f5b2018-07-02 19:10:11 +0800754ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
755CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o
756endif
Wu Gaoa9d336b2018-05-30 14:48:04 +0800757endif
Zhang Qian47e22ce2018-01-04 15:38:38 +0800758
759ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
760CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ocb/inc
761CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ocb/src/target_if_ocb.o
762endif
Mukul Sharmad75a6672017-06-22 15:40:53 +0530763
Nachiket Kukade98f562a2017-12-15 12:18:07 +0530764ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
765CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/disa/inc
766CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/disa/src/target_if_disa.o
767endif
768
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700769ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530770CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ipa/inc
771CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ipa/src/target_if_ipa.o
772endif
773
Wu Gao64b31482017-03-10 15:16:10 +0800774############## UMAC P2P ###########
775P2P_DIR := umac/p2p
776P2P_CORE_DIR := $(P2P_DIR)/core
777P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src
778P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR)
779P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
780P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
781P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src
782P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR)
783UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \
784 -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc
785UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
786 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
Wu Gaoe5689792018-07-05 19:20:13 +0800787 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_cfg.o \
Wu Gao64b31482017-03-10 15:16:10 +0800788 $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
789 $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
790 $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o
791
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -0800792###### UMAC POLICY MGR ########
793UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr
794
795UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \
796 -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src
797
798UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
799 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
800 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
801 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
802 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \
803
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700804###### UMAC TDLS ########
805UMAC_TDLS_DIR := $(WLAN_COMMON_ROOT)/umac/tdls
806
807UMAC_TDLS_INC := -I$(WLAN_COMMON_INC)/umac/tdls/dispatcher/inc
808
809UMAC_TDLS_OBJS := $(UMAC_TDLS_DIR)/core/src/wlan_tdls_main.o \
810 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \
811 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_peer.o \
812 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_mgmt.o \
813 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_ct.o \
814 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \
815 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \
816 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \
817 $(WLAN_COMMON_ROOT)/os_if/linux/tdls/src/wlan_cfg80211_tdls.o
818
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800819########### BMI ###########
820BMI_DIR := core/bmi
821
822BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
823
Qiwei Caia01a9622018-07-11 10:02:03 +0800824ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800825BMI_OBJS := $(BMI_DIR)/src/bmi.o \
Qiwei Caia01a9622018-07-11 10:02:03 +0800826 $(BMI_DIR)/src/bmi_1.o \
Poddar, Siddarthef1f3022016-05-10 20:10:43 +0530827 $(BMI_DIR)/src/ol_fw.o \
828 $(BMI_DIR)/src/ol_fw_common.o
Qiwei Caia01a9622018-07-11 10:02:03 +0800829endif
Govind Singh0fea23a2016-03-18 12:59:27 +0530830
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530831########## TARGET_IF #######
832TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
833
834TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
Rajeev Kumarda2444c2017-01-10 22:42:07 -0800835 -I$(WLAN_COMMON_INC)/target_if/core/src \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530836 -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -0800837 -I$(WLAN_COMMON_INC)/target_if/p2p/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700838 -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
839 -I$(WLAN_COMMON_INC)/target_if/tdls/inc
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530840
Rajeev Kumarda2444c2017-01-10 22:42:07 -0800841TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -0800842 $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700843 $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
Arunk Khandavallia6305a32018-01-25 11:19:18 +0530844 $(TARGET_IF_DIR)/tdls/src/target_if_tdls.o \
845 $(TARGET_IF_DIR)/init_deinit/src/init_cmd_api.o \
Sourav Mohapatracf632572018-04-02 11:01:35 +0530846 $(TARGET_IF_DIR)/init_deinit/src/init_deinit_lmac.o \
Arunk Khandavallia6305a32018-01-25 11:19:18 +0530847 $(TARGET_IF_DIR)/init_deinit/src/init_event_handler.o \
848 $(TARGET_IF_DIR)/init_deinit/src/service_ready_util.o \
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530849
Mukul Sharmadad267e2017-02-04 13:25:34 +0530850########### GLOBAL_LMAC_IF ##########
851GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
852
853GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
854 -I$(WLAN_COMMON_INC)/global_lmac_if/src
855
856GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
857
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800858########### WMI ###########
Govind Singh0fea23a2016-03-18 12:59:27 +0530859WMI_ROOT_DIR := wmi
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800860
Govind Singh0fea23a2016-03-18 12:59:27 +0530861WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
862WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
863WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800864
Govind Singh0fea23a2016-03-18 12:59:27 +0530865WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
866
867WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
868 $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
869 $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
870 $(WMI_OBJ_DIR)/wmi_unified_api.o \
Wen Gong01a2c632018-04-11 18:34:55 +0800871 $(WMI_OBJ_DIR)/wmi_unified_reg_api.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800872
Wu Gaoa9d336b2018-05-30 14:48:04 +0800873ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
874WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o
875endif
876
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +0530877ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
878WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_apf_tlv.o
879endif
880
Zhang Qian47e22ce2018-01-04 15:38:38 +0800881ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
882ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
883WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_ut.o
884endif
885endif
886
Wen Gong01a2c632018-04-11 18:34:55 +0800887ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
888WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o
889endif
890
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -0700891ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
892WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_api.o
893WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_tlv.o
894endif
895
Wen Gongbd949fc2018-05-21 18:35:13 +0800896ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
897WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_api.o
898WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_tlv.o
899endif
900
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800901########### FWLOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800902FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800903
904FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
905
906FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
907
908############ TXRX ############
909TXRX_DIR := core/dp/txrx
910TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
911
912TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
913 $(TXRX_DIR)/ol_cfg.o \
914 $(TXRX_DIR)/ol_rx.o \
915 $(TXRX_DIR)/ol_rx_fwd.o \
916 $(TXRX_DIR)/ol_txrx.o \
917 $(TXRX_DIR)/ol_rx_defrag.o \
918 $(TXRX_DIR)/ol_tx_desc.o \
919 $(TXRX_DIR)/ol_tx.o \
920 $(TXRX_DIR)/ol_rx_reorder_timeout.o \
921 $(TXRX_DIR)/ol_rx_reorder.o \
922 $(TXRX_DIR)/ol_rx_pn.o \
923 $(TXRX_DIR)/ol_tx_queue.o \
924 $(TXRX_DIR)/ol_txrx_peer_find.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800925 $(TXRX_DIR)/ol_txrx_encap.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530926 $(TXRX_DIR)/ol_tx_send.o \
927 $(TXRX_DIR)/ol_tx_sched.o \
928 $(TXRX_DIR)/ol_tx_classify.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800929
Nirav Shahbb8e47c2018-05-17 16:56:41 +0530930ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
931TXRX_OBJS += $(TXRX_DIR)/ol_txrx_event.o
932endif
933
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800934ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
935TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
936endif
937
Nirav Shahc4aa1ab2018-04-21 12:38:44 +0530938ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY), y)
939TXRX_OBJS += $(TXRX_DIR)/ol_txrx_legacy_flow_control.o
940endif
941
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700942ifeq ($(CONFIG_IPA_OFFLOAD), y)
Yun Parkb4f591d2017-03-29 15:51:01 -0700943TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o
944endif
945
Nirav Shah5ff1fd02018-03-11 14:55:53 +0530946ifeq ($(CONFIG_WLAN_FASTPATH), y)
947TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_fastpath.o
948else
949TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_legacy.o
950endif
951
Nirav Shah46fc6302018-04-21 12:49:28 +0530952ifeq ($(CONFIG_QCA_SUPPORT_TX_THROTTLE), y)
953TXRX_OBJS += $(TXRX_DIR)/ol_tx_throttle.o
954endif
955
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -0700956ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -0700957############ DP 3.0 ############
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -0700958DP_INC := -I$(WLAN_COMMON_INC)/dp/inc \
959 -I$(WLAN_COMMON_INC)/dp/wifi3.0 \
960 -I$(WLAN_COMMON_INC)/target_if/dp/inc
Leo Chang5f7a1e02016-11-04 14:04:26 -0700961
962DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
963DP_OBJS := $(DP_SRC)/dp_main.o \
964 $(DP_SRC)/dp_tx.o \
965 $(DP_SRC)/dp_tx_desc.o \
966 $(DP_SRC)/dp_rx.o \
967 $(DP_SRC)/dp_rx_err.o \
968 $(DP_SRC)/dp_htt.o \
969 $(DP_SRC)/dp_peer.o \
Debashis Dutt237c6142017-01-04 11:28:59 -0800970 $(DP_SRC)/dp_rx_desc.o \
Ravi Joshi12665a02017-03-08 16:35:04 -0800971 $(DP_SRC)/dp_reo.o \
972 $(DP_SRC)/dp_rx_mon_dest.o \
Ravi Joshic4a41082017-01-09 22:27:58 -0800973 $(DP_SRC)/dp_rx_mon_status.o \
Venkata Sharath Chandra Manchalabcdfdb12017-03-29 19:25:45 -0700974 $(DP_SRC)/dp_rx_defrag.o \
Sravan Kumar Kairamb8bdf522018-05-30 22:14:50 +0530975 $(DP_SRC)/dp_stats.o \
976 $(WLAN_COMMON_ROOT)/target_if/dp/src/target_if_dp.o
Manjunathappa Prakash6c547362017-03-30 20:11:47 -0700977ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
978DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o
979endif
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -0800980endif
Leo Chang5f7a1e02016-11-04 14:04:26 -0700981
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700982ifeq ($(CONFIG_IPA_OFFLOAD), y)
Yun Parkb4f591d2017-03-29 15:51:01 -0700983DP_OBJS += $(DP_SRC)/dp_ipa.o
984endif
985
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700986ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
Venkata Sharath Chandra Manchala1240fc72017-10-26 17:32:29 -0700987DP_OBJS += $(DP_SRC)/dp_wdi_event.o
988endif
989
Leo Chang5f7a1e02016-11-04 14:04:26 -0700990############ CFG ############
Ravi Joshid55b18a2017-02-17 10:48:14 -0800991WCFG_DIR := wlan_cfg
992WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
993WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
994WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
Leo Chang5f7a1e02016-11-04 14:04:26 -0700995
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800996############ OL ############
997OL_DIR := core/dp/ol
998OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
999
Dhanashri Atre12a08392016-02-17 13:10:34 -08001000############ CDP ############
1001CDP_ROOT_DIR := dp
1002CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
1003CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
1004
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001005############ PKTLOG ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001006PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001007PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
1008
1009PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
1010 $(PKTLOG_DIR)/pktlog_internal.o \
1011 $(PKTLOG_DIR)/linux_ac.o
1012
1013############ HTT ############
1014HTT_DIR := core/dp/htt
1015HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
1016
1017HTT_OBJS := $(HTT_DIR)/htt_tx.o \
1018 $(HTT_DIR)/htt.o \
1019 $(HTT_DIR)/htt_t2h.o \
1020 $(HTT_DIR)/htt_h2t.o \
1021 $(HTT_DIR)/htt_fw_stats.o \
1022 $(HTT_DIR)/htt_rx.o
1023
Nirav Shah73713f72018-05-17 14:50:41 +05301024ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
1025HTT_OBJS += $(HTT_DIR)/htt_monitor_rx.o
1026endif
Rajeev Kumar97767a02016-11-30 11:20:40 -08001027
1028############## INIT-DEINIT ###########
1029INIT_DEINIT_DIR := init_deinit/dispatcher
1030INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
1031INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
1032INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
1033INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
1034INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
1035
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001036############## REGULATORY ###########
1037REGULATORY_DIR := umac/regulatory
1038REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
1039REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
1040REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
1041REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
1042REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
1043REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
1044REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
1045REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
1046REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \
1047 $(REG_CORE_OBJ_DIR)/reg_services.o \
Amar Singhaleac64132017-05-05 13:02:37 -07001048 $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001049 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
1050 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
1051 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
1052
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001053############## Control path common scheduler ##########
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001054SCHEDULER_DIR := scheduler
1055SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
1056SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
1057SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
1058SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
1059SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
1060 $(SCHEDULER_OBJ_DIR)/scheduler_core.o
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001061
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001062###### UMAC SERIALIZATION ########
1063UMAC_SER_DIR := umac/cmn_services/serialization
1064UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
1065UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
1066UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
Rajeev Kumar97767a02016-11-30 11:20:40 -08001067
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001068UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
1069UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_dequeue.o \
1070 $(UMAC_SER_OBJ_DIR)/wlan_serialization_enqueue.o \
1071 $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
1072 $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
1073 $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
Varun Reddy Yeturu35c07f92017-02-28 10:35:00 -08001074 $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001075 $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001076
1077###### WIFI POS ########
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001078WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
1079WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
1080WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
1081WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
1082WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
1083WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
1084
1085
1086ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1087WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
1088 $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
1089 $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
1090 $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
1091 $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
1092 $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o
1093endif
1094
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001095###### CP STATS ########
Naveen Rawat96a77d32018-01-12 15:26:14 -08001096CP_STATS_OS_IF_SRC := $(WLAN_COMMON_ROOT)/os_if/linux/cp_stats/src
1097CP_STATS_TGT_SRC := $(WLAN_COMMON_ROOT)/target_if/cp_stats/src
1098CP_STATS_CORE_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/core/src
1099CP_STATS_DISPATCHER_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/dispatcher/src
1100
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001101CP_STATS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/cp_stats/inc
1102CP_STATS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/cp_stats/inc
1103CP_STATS_DISPATCHER_INC := -I$(WLAN_COMMON_INC)/umac/cp_stats/dispatcher/inc
1104
Naveen Rawat96a77d32018-01-12 15:26:14 -08001105ifeq ($(CONFIG_CP_STATS), y)
1106CP_STATS_OBJS := $(CP_STATS_TGT_SRC)/target_if_mc_cp_stats.o \
1107 $(CP_STATS_CORE_SRC)/wlan_cp_stats_comp_handler.o \
1108 $(CP_STATS_CORE_SRC)/wlan_cp_stats_obj_mgr_handler.o \
Naveen Rawat96a77d32018-01-12 15:26:14 -08001109 $(CP_STATS_CORE_SRC)/wlan_cp_stats_ol_api.o \
1110 $(CP_STATS_OS_IF_SRC)/wlan_cfg80211_mc_cp_stats.o \
1111 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_utils_api.o \
1112 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_tgt_api.o \
1113 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_ucfg_api.o
1114endif
1115
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001116######################### NAN #########################
1117NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src
1118NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc
1119NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src
1120NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc
1121NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src
1122NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc
1123NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src
1124NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc
1125
1126ifeq ($(CONFIG_NAN_CONVERGENCE), y)
1127WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
1128 $(NAN_CORE_DIR)/nan_api.o \
1129 $(NAN_CORE_DIR)/nan_utils.o \
1130 $(NAN_UCFG_DIR)/nan_ucfg_api.o \
1131 $(NAN_TGT_DIR)/target_if_nan.o \
1132 $(NAN_OS_IF_DIR)/os_if_nan.o
1133endif
1134#######################################################
1135
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001136############## HTC ##########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001137HTC_DIR := htc
1138HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001139
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001140HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
1141 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
1142 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
1143 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001144
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001145ifeq ($(CONFIG_FEATURE_HTC_CREDIT_HISTORY), y)
Rachit Kankaneb1035622018-01-24 18:41:35 +05301146HTC_OBJS += $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_credit_history.o
1147endif
1148
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001149########### HIF ###########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001150HIF_DIR := hif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001151HIF_CE_DIR := $(HIF_DIR)/src/ce
Houston Hoffman1edffd32016-01-27 16:30:34 -08001152
1153HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
1154
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001155HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001156HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
Mohit Khannada4f4432016-05-17 15:02:09 -07001157HIF_USB_DIR := $(HIF_DIR)/src/usb
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301158HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
1159
1160HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
1161HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
1162HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001163
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001164HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
tfyu350d9f72017-08-10 15:13:06 +08001165 -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src
Houston Hoffman1edffd32016-01-27 16:30:34 -08001166
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001167ifeq ($(CONFIG_HIF_PCI), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001168HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001169HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
tfyu350d9f72017-08-10 15:13:06 +08001170HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001171endif
1172
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001173ifeq ($(CONFIG_HIF_SNOC), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001174HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001175HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
tfyu350d9f72017-08-10 15:13:06 +08001176HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001177endif
1178
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001179ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001180HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1181HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
1182endif
1183
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001184ifeq ($(CONFIG_HIF_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301185HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1186HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
1187HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
1188endif
1189
1190HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
1191 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
Nirav Shaheb017be2018-02-15 11:20:58 +05301192 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o
1193
1194ifeq ($(CONFIG_WLAN_NAPI), y)
1195HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o
1196HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o
1197endif
1198
Qiwei Caia01a9622018-07-11 10:02:03 +08001199HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301200 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
1201 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
1202 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001203 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301204
Qiwei Caia01a9622018-07-11 10:02:03 +08001205ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
1206HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o
1207endif
1208
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001209ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001210ifeq ($(CONFIG_CNSS_QCA6290), y)
1211HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o
Houston Hoffmana0f93492016-11-18 13:42:12 -08001212endif
1213
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001214ifeq ($(CONFIG_CNSS_QCA6390), y)
1215HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6390def.o
1216endif
1217
1218HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
1219endif
Houston Hoffmanb4d45672017-04-24 11:56:50 -07001220
Mohit Khannada4f4432016-05-17 15:02:09 -07001221HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
1222 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
1223 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
1224 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
1225
Qiwei Caia01a9622018-07-11 10:02:03 +08001226HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301227 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
1228 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301229 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o \
1230 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/transfer.o
Qiwei Caia01a9622018-07-11 10:02:03 +08001231
1232ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
1233HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o
1234endif
1235
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301236ifeq ($(CONFIG_SDIO_TRANSFER), adma)
1237HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/adma.o
1238else
1239HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/mailbox.o
1240endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301241
1242HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301243 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o \
1244 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/dev_quirks.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001245
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001246ifeq ($(CONFIG_WLAN_NAPI), y)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001247HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001248endif
1249
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001250ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), y)
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07001251 HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o
1252endif
1253
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001254HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001255HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301256HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001257
Houston Hoffman1edffd32016-01-27 16:30:34 -08001258HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
Houston Hoffmanb61b9b12016-03-03 20:04:16 -08001259HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
Srinivas Girigowdac7a1b0a2017-12-08 12:00:00 -08001260HIF_OBJS += $(HIF_COMMON_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001261
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001262ifeq ($(CONFIG_HIF_PCI), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001263HIF_OBJS += $(HIF_PCIE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301264HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001265HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
1266endif
1267
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001268ifeq ($(CONFIG_HIF_SNOC), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001269HIF_OBJS += $(HIF_SNOC_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301270HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001271HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001272endif
1273
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001274ifeq ($(CONFIG_HIF_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301275HIF_OBJS += $(HIF_SDIO_OBJS)
1276HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301277HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
1278endif
1279
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001280ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001281HIF_OBJS += $(HIF_USB_OBJS)
Mohit Khannada4f4432016-05-17 15:02:09 -07001282HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
1283endif
1284
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001285ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001286############ HAL ############
1287HAL_DIR := hal
1288HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
1289 -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
1290
1291HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
1292 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001293 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \
1294 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001295
1296ifeq ($(CONFIG_CNSS_QCA6290), y)
1297HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6290
1298HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6290/hal_6290_srng.o
1299else ifeq ($(CONFIG_CNSS_QCA6390), y)
1300HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6390
1301HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6390/hal_6390_srng.o
1302else
1303#error "Not 11ax"
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001304endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001305
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001306endif #####CONFIG_LITHIUM####
1307
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001308############ WMA ############
1309WMA_DIR := core/wma
1310
1311WMA_INC_DIR := $(WMA_DIR)/inc
1312WMA_SRC_DIR := $(WMA_DIR)/src
1313
1314WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
1315 -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
1316
Ravi Joshia063dd92016-05-25 16:43:13 -07001317ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
1318WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
1319endif
1320
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001321WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
1322 $(WMA_SRC_DIR)/wma_scan_roam.o \
1323 $(WMA_SRC_DIR)/wma_dev_if.o \
1324 $(WMA_SRC_DIR)/wma_mgmt.o \
1325 $(WMA_SRC_DIR)/wma_power.o \
1326 $(WMA_SRC_DIR)/wma_data.o \
1327 $(WMA_SRC_DIR)/wma_utils.o \
1328 $(WMA_SRC_DIR)/wma_features.o \
Ravi Joshia063dd92016-05-25 16:43:13 -07001329 $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
1330 $(WMA_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001331
Agrawal Ashishb141b092016-09-02 19:59:26 +05301332ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonb90ab572017-01-31 15:57:35 -08001333WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
Agrawal Ashishb141b092016-09-02 19:59:26 +05301334endif
Jeff Johnson6136fb92017-03-30 15:21:49 -07001335ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
1336WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o
1337endif
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001338ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001339WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
1340endif
Krishna Kumaar Natarajand0bbb3c2017-03-13 17:04:58 -07001341ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
1342WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
1343endif
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -07001344ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
1345WMA_OBJS += $(WMA_SRC_DIR)/wma_twt.o
1346endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001347############## PLD ##########
1348PLD_DIR := core/pld
1349PLD_INC_DIR := $(PLD_DIR)/inc
1350PLD_SRC_DIR := $(PLD_DIR)/src
1351
1352PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
1353 -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
1354
1355PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
1356
Nirav Shah2f3281d2018-04-20 13:37:56 +05301357ifeq ($(CONFIG_HIF_PCI), y)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001358PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
1359endif
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001360ifeq ($(CONFIG_ICNSS), y)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001361PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
1362endif
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001363ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301364PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
1365endif
Ajit Pal Singh6c6e81c2018-06-13 15:26:37 +05301366ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001367PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
1368endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001369
psimha0b6bb892017-10-10 14:28:34 -07001370ifeq ($(CONFIG_QCA6290_11AX), y)
psimha699e12b2018-02-12 16:27:18 -08001371TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/11ax/v2 \
psimha0b6bb892017-10-10 14:28:34 -07001372 -I$(WLAN_ROOT)/../fw-api/fw
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001373else ifeq ($(CONFIG_QCA6390_11AX), y)
1374TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6390/v1 \
1375 -I$(WLAN_ROOT)/../fw-api/fw
psimha0b6bb892017-10-10 14:28:34 -07001376else
Dhanashri Atref067b582017-04-14 16:56:24 -07001377TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2 \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001378 -I$(WLAN_ROOT)/../fw-api/fw
psimha0b6bb892017-10-10 14:28:34 -07001379endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001380
Dustin Brown0bec9a92017-08-17 15:44:34 -07001381LINUX_INC := -Iinclude
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001382
1383INCS := $(HDD_INC) \
1384 $(EPPING_INC) \
1385 $(LINUX_INC) \
1386 $(MAC_INC) \
1387 $(SAP_INC) \
1388 $(SME_INC) \
1389 $(SYS_INC) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001390 $(QDF_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001391 $(CDS_INC) \
Dustin Brown84f46ea2018-02-15 11:57:36 -08001392 $(CFG_INC) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301393 $(DFS_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301394 $(TARGET_IF_INC) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301395 $(CLD_TARGET_IF_INC) \
Sandeep Puligillafdd201e2017-02-02 18:43:46 -08001396 $(OS_IF_INC) \
Ryan Hsuc8b27a42018-01-02 13:57:56 -08001397 $(GLOBAL_LMAC_IF_INC) \
1398 $(FTM_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001399
1400INCS += $(WMA_INC) \
1401 $(UAPI_INC) \
1402 $(COMMON_INC) \
1403 $(WMI_INC) \
1404 $(FWLOG_INC) \
1405 $(TXRX_INC) \
1406 $(OL_INC) \
Dhanashri Atre12a08392016-02-17 13:10:34 -08001407 $(CDP_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001408 $(PKTLOG_INC) \
1409 $(HTT_INC) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001410 $(INIT_DEINIT_INC) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001411 $(SCHEDULER_INC) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001412 $(REGULATORY_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001413 $(HTC_INC) \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001414 $(DFS_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001415 $(WCFG_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001416
1417INCS += $(HIF_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001418 $(BMI_INC)
1419
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001420ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001421INCS += $(HAL_INC) \
1422 $(DP_INC)
1423endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001424
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001425################ WIFI POS ################
1426INCS += $(WIFI_POS_API_INC)
1427INCS += $(WIFI_POS_TGT_INC)
1428INCS += $(WIFI_POS_OS_IF_INC)
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001429################ CP STATS ################
1430INCS += $(CP_STATS_OS_IF_INC)
1431INCS += $(CP_STATS_TGT_INC)
1432INCS += $(CP_STATS_DISPATCHER_INC)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001433################ NAN POS ################
1434INCS += $(NAN_CORE_INC)
1435INCS += $(NAN_UCFG_INC)
1436INCS += $(NAN_TGT_INC)
1437INCS += $(NAN_OS_IF_INC)
1438##########################################
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301439INCS += $(UMAC_OBJMGR_INC)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301440INCS += $(UMAC_MGMT_TXRX_INC)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301441INCS += $(PMO_INC)
Wu Gao64b31482017-03-10 15:16:10 +08001442INCS += $(UMAC_P2P_INC)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001443INCS += $(UMAC_POLICY_MGR_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001444INCS += $(TARGET_INC)
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001445INCS += $(UMAC_TDLS_INC)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001446INCS += $(UMAC_SER_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001447INCS += $(NLINK_INC) \
1448 $(PTT_INC) \
1449 $(WLAN_LOGGING_INC)
1450
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001451INCS += $(PLD_INC)
Zhang Qian47e22ce2018-01-04 15:38:38 +08001452INCS += $(OCB_INC)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001453
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301454INCS += $(IPA_INC)
Sandeep Puligillac5609d52018-05-17 19:23:41 -07001455INCS += $(MLME_INC)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301456
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001457ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001458INCS += $(PKTLOG_INC)
1459endif
1460
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001461ifeq ($(BUILD_DIAG_VERSION), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001462INCS += $(HOST_DIAG_LOG_INC)
1463endif
1464
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301465INCS += $(DISA_INC)
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301466
Frank Liu65b17d92016-11-23 15:58:44 +08001467INCS += $(UMAC_DISP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301468INCS += $(UMAC_SCAN_INC)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301469INCS += $(UMAC_TARGET_SCAN_INC)
Himanshu Agarwalb229a142017-12-21 10:16:45 +05301470INCS += $(UMAC_GREEN_AP_INC)
1471INCS += $(UMAC_TARGET_GREEN_AP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301472INCS += $(UMAC_COMMON_INC)
Sandeep Puligilla342d2a62017-12-12 15:40:00 -08001473INCS += $(UMAC_SPECTRAL_INC)
1474INCS += $(UMAC_TARGET_SPECTRAL_INC)
Frank Liu65b17d92016-11-23 15:58:44 +08001475
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001476OBJS := $(HDD_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001477 $(MAC_OBJS) \
1478 $(SAP_OBJS) \
1479 $(SME_OBJS) \
1480 $(SYS_OBJS) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001481 $(QDF_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001482 $(CDS_OBJS) \
Dustin Brown84f46ea2018-02-15 11:57:36 -08001483 $(CFG_OBJS) \
Ryan Hsuc8b27a42018-01-02 13:57:56 -08001484 $(FTM_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001485
1486OBJS += $(WMA_OBJS) \
1487 $(TXRX_OBJS) \
1488 $(WMI_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001489 $(HTC_OBJS) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001490 $(INIT_DEINIT_OBJS) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001491 $(SCHEDULER_OBJS) \
Wen Gong01a2c632018-04-11 18:34:55 +08001492 $(REGULATORY_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001493
1494OBJS += $(HIF_OBJS) \
1495 $(BMI_OBJS) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301496 $(HTT_OBJS) \
Wu Gao64b31482017-03-10 15:16:10 +08001497 $(OS_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301498 $(TARGET_IF_OBJ) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301499 $(CLD_TARGET_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301500 $(GLOBAL_LMAC_IF_OBJ)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001501
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001502ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001503OBJS += $(HAL_OBJS)
1504endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001505
Wen Gong99768902018-04-25 12:07:49 +08001506ifeq ($(CONFIG_FEATURE_FW_LOG_PARSING), y)
1507OBJS += $(FWLOG_OBJS)
1508endif
1509
Nirav Shah459bebf2018-01-17 16:59:14 +05301510ifeq ($(CONFIG_FEATURE_EPPING), y)
1511OBJS += $(EPPING_OBJS)
1512endif
1513
Wen Gong01a2c632018-04-11 18:34:55 +08001514ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
1515OBJS += $(DFS_OBJS)
1516endif
Nirav Shah459bebf2018-01-17 16:59:14 +05301517
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301518OBJS += $(UMAC_OBJMGR_OBJS)
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001519OBJS += $(WIFI_POS_OBJS)
Naveen Rawat96a77d32018-01-12 15:26:14 -08001520OBJS += $(CP_STATS_OBJS)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001521OBJS += $(WLAN_NAN_OBJS)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301522OBJS += $(UMAC_MGMT_TXRX_OBJS)
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001523OBJS += $(UMAC_TDLS_OBJS)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301524OBJS += $(PMO_OBJS)
Wu Gao64b31482017-03-10 15:16:10 +08001525OBJS += $(UMAC_P2P_OBJS)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001526OBJS += $(UMAC_POLICY_MGR_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001527OBJS += $(WLAN_LOGGING_OBJS)
1528OBJS += $(NLINK_OBJS)
1529OBJS += $(PTT_OBJS)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001530OBJS += $(UMAC_SER_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001531OBJS += $(PLD_OBJS)
Sandeep Puligillac5609d52018-05-17 19:23:41 -07001532OBJS += $(MLME_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001533
Zhang Qian47e22ce2018-01-04 15:38:38 +08001534ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1535OBJS += $(OCB_OBJS)
1536endif
1537
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001538ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301539OBJS += $(IPA_OBJS)
1540endif
1541
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001542ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001543OBJS += $(PKTLOG_OBJS)
1544endif
1545
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001546ifeq ($(BUILD_DIAG_VERSION), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001547OBJS += $(HOST_DIAG_LOG_OBJS)
1548endif
1549
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301550ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
1551OBJS += $(DISA_OBJS)
1552endif
1553
Frank Liu65b17d92016-11-23 15:58:44 +08001554OBJS += $(UMAC_DISP_OBJS)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301555OBJS += $(UMAC_SCAN_OBJS)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301556OBJS += $(UMAC_COMMON_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001557OBJS += $(WCFG_OBJS)
Sandeep Puligilla8e89d572018-04-02 18:07:45 -07001558
Sandeep Puligilla342d2a62017-12-12 15:40:00 -08001559OBJS += $(UMAC_SPECTRAL_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001560
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001561ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
Himanshu Agarwalb229a142017-12-21 10:16:45 +05301562OBJS += $(UMAC_GREEN_AP_OBJS)
1563endif
1564
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001565ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001566OBJS += $(DP_OBJS)
1567endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001568
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07001569ccflags-y += $(INCS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001570
Jeff Johnsonee869842018-04-17 11:14:03 -07001571cppflags-y += -DANI_OS_TYPE_ANDROID=6 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001572 -Wall\
1573 -Werror\
Jeff Johnsona63a9b62018-04-12 15:30:45 -07001574 -D__linux__
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001575
Jeff Johnsonee869842018-04-17 11:14:03 -07001576cppflags-$(CONFIG_PTT_SOCK_SVC_ENABLE) += -DPTT_SOCK_SVC_ENABLE
1577cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DFEATURE_WLAN_WAPI
1578cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DATH_SUPPORT_WAPI
1579cppflags-$(CONFIG_AGEIE_ON_SCAN_RESULTS) += -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS
1580cppflags-$(CONFIG_SOFTAP_CHANNEL_RANGE) += -DSOFTAP_CHANNEL_RANGE
1581cppflags-$(CONFIG_FEATURE_WLAN_SCAN_PNO) += -DFEATURE_WLAN_SCAN_PNO
1582cppflags-$(CONFIG_WLAN_FEATURE_PACKET_FILTERING) += -DWLAN_FEATURE_PACKET_FILTERING
1583cppflags-$(CONFIG_WLAN_NS_OFFLOAD) += -DWLAN_NS_OFFLOAD
1584cppflags-$(CONFIG_FEATURE_WLAN_RA_FILTERING) += -DFEATURE_WLAN_RA_FILTERING
1585cppflags-$(CONFIG_FEATURE_WLAN_LPHB) += -DFEATURE_WLAN_LPHB
1586cppflags-$(CONFIG_QCA_SUPPORT_TX_THROTTLE) += -DQCA_SUPPORT_TX_THROTTLE
1587cppflags-$(CONFIG_WMI_INTERFACE_EVENT_LOGGING) += -DWMI_INTERFACE_EVENT_LOGGING
1588cppflags-$(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS) += -DWLAN_FEATURE_LINK_LAYER_STATS
1589cppflags-$(CONFIG_FEATURE_WLAN_EXTSCAN) += -DFEATURE_WLAN_EXTSCAN
1590cppflags-$(CONFIG_160MHZ_SUPPORT) += -DCONFIG_160MHZ_SUPPORT
1591cppflags-$(CONFIG_MCL) += -DCONFIG_MCL
1592cppflags-$(CONFIG_MCL_REGDB) += -DCONFIG_MCL_REGDB
1593cppflags-$(CONFIG_LEGACY_CHAN_ENUM) += -DCONFIG_LEGACY_CHAN_ENUM
Jeff Johnsonee869842018-04-17 11:14:03 -07001594cppflags-$(CONFIG_WLAN_PMO_ENABLE) += -DWLAN_PMO_ENABLE
1595cppflags-$(CONFIG_CONVERGED_P2P_ENABLE) += -DCONVERGED_P2P_ENABLE
1596cppflags-$(CONFIG_WLAN_POLICY_MGR_ENABLE) += -DWLAN_POLICY_MGR_ENABLE
1597cppflags-$(CONFIG_SUPPORT_11AX) += -DSUPPORT_11AX
1598cppflags-$(CONFIG_HDD_INIT_WITH_RTNL_LOCK) += -DCONFIG_HDD_INIT_WITH_RTNL_LOCK
1599cppflags-$(CONFIG_CONVERGED_TDLS_ENABLE) += -DCONVERGED_TDLS_ENABLE
1600cppflags-$(CONFIG_WLAN_CONV_SPECTRAL_ENABLE) += -DWLAN_CONV_SPECTRAL_ENABLE
Jeff Johnsonee869842018-04-17 11:14:03 -07001601cppflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS
Nirav Shah73713f72018-05-17 14:50:41 +05301602cppflags-$(CONFIG_FEATURE_MONITOR_MODE_SUPPORT) += -DFEATURE_MONITOR_MODE_SUPPORT
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -07001603cppflags-$(CONFIG_WLAN_FEATURE_TWT) += -DWLAN_SUPPORT_TWT
Jeff Johnson8daf7682018-04-11 07:42:56 -07001604
Jeff Johnsonee869842018-04-17 11:14:03 -07001605cppflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL
1606cppflags-$(CONFIG_WIFI_POS_CONVERGED) += -DWIFI_POS_CONVERGED
1607cppflags-$(CONFIG_WIFI_POS_LEGACY) += -DFEATURE_OEM_DATA_SUPPORT
1608cppflags-$(CONFIG_FEATURE_HTC_CREDIT_HISTORY) += -DFEATURE_HTC_CREDIT_HISTORY
1609cppflags-$(CONFIG_WLAN_FEATURE_P2P_DEBUG) += -DWLAN_FEATURE_P2P_DEBUG
Rachit Kankane0dc3e852018-05-07 17:33:42 +05301610cppflags-$(CONFIG_WLAN_WEXT_SUPPORT_ENABLE) += -DWLAN_WEXT_SUPPORT_ENABLE
Jeff Johnsonee869842018-04-17 11:14:03 -07001611cppflags-$(CONFIG_WLAN_LOGGING_SOCK_SVC) += -DWLAN_LOGGING_SOCK_SVC_ENABLE
Rachit Kankane0868f8f2018-06-22 18:52:03 +05301612cppflags-$(CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY) += -DWLAN_LOGGING_BUFFERS_DYNAMICALLY
Jeff Johnsonee869842018-04-17 11:14:03 -07001613cppflags-$(CONFIG_WLAN_FEATURE_FILS) += -DWLAN_FEATURE_FILS_SK
Naveen Rawat96a77d32018-01-12 15:26:14 -08001614cppflags-$(CONFIG_CP_STATS) += -DQCA_SUPPORT_CP_STATS
Wen Gong3f003382018-05-14 14:26:37 +08001615cppflags-$(CONFIG_FEATURE_MEMDUMP_ENABLE) += -DWLAN_FEATURE_MEMDUMP_ENABLE
Wen Gong99768902018-04-25 12:07:49 +08001616cppflags-$(CONFIG_FEATURE_FW_LOG_PARSING) += -DFEATURE_FW_LOG_PARSING
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +05301617
Nirav Shah1575dd72018-06-24 13:46:39 +05301618cppflags-$(CONFIG_PLD_SDIO_CNSS_FLAG) += -DCONFIG_PLD_SDIO_CNSS
1619cppflags-$(CONFIG_PLD_PCIE_CNSS_FLAG) += -DCONFIG_PLD_PCIE_CNSS
1620cppflags-$(CONFIG_PLD_PCIE_INIT_FLAG) += -DCONFIG_PLD_PCIE_INIT
Yue Mae6a7a322016-08-31 11:09:23 -07001621
Lin Bai59b79762017-09-01 16:18:55 +08001622#Enable NL80211 test mode
Jeff Johnsonee869842018-04-17 11:14:03 -07001623cppflags-$(CONFIG_NL80211_TESTMODE) += -DWLAN_NL80211_TESTMODE
Lin Bai59b79762017-09-01 16:18:55 +08001624
Yue Ma2b091312017-02-15 15:56:47 -08001625# Flag to enable bus auto suspend
Jeff Johnsonfe6f0b02018-04-11 09:27:04 -07001626ifeq ($(CONFIG_HIF_PCI), y)
Yue Ma2b091312017-02-15 15:56:47 -08001627ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001628cppflags-y += -DFEATURE_RUNTIME_PM
Yue Ma2b091312017-02-15 15:56:47 -08001629endif
1630endif
1631
Jeff Johnsonee869842018-04-17 11:14:03 -07001632cppflags-$(CONFIG_ICNSS) += -DCONFIG_PLD_SNOC_ICNSS
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001633
Jeff Johnsonee869842018-04-17 11:14:03 -07001634cppflags-$(CONFIG_ICNSS) += -DQCA_WIFI_3_0
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001635
Jeff Johnsonee869842018-04-17 11:14:03 -07001636cppflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0_ADRASTEA
1637cppflags-$(CONFIG_ADRASTEA_SHADOW_REGISTERS) += -DADRASTEA_SHADOW_REGISTERS
1638cppflags-$(CONFIG_ADRASTEA_RRI_ON_DDR) += -DADRASTEA_RRI_ON_DDR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001639
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001640ifeq ($(CONFIG_QMI_SUPPORT), n)
Jeff Johnsonee869842018-04-17 11:14:03 -07001641cppflags-y += -DCONFIG_BYPASS_QMI
Yuanyuan Liuf45ab3d2017-12-14 11:00:09 -08001642endif
1643
Jeff Johnsonee869842018-04-17 11:14:03 -07001644cppflags-$(CONFIG_WLAN_FASTPATH) += -DWLAN_FEATURE_FASTPATH
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001645
Jeff Johnsonee869842018-04-17 11:14:03 -07001646cppflags-$(CONFIG_FEATURE_PKTLOG) += -DFEATURE_PKTLOG
Poddar, Siddartheefe3482016-09-21 18:12:59 +05301647
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001648ifeq ($(CONFIG_WLAN_NAPI), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001649cppflags-y += -DFEATURE_NAPI
1650cppflags-y += -DHIF_IRQ_AFFINITY
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001651ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001652cppflags-y += -DFEATURE_NAPI_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001653endif
1654endif
1655
Yue Madf224b82016-04-21 12:46:04 -07001656ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
Jeff Johnsonee869842018-04-17 11:14:03 -07001657cppflags-y += -DMSM_PLATFORM
Yuanyuan Liu5af44362016-04-01 21:57:06 -07001658endif
1659
Jeff Johnsonee869842018-04-17 11:14:03 -07001660cppflags-y += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001661
Jeff Johnsonee869842018-04-17 11:14:03 -07001662cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_CONTROL_V2
1663cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
1664cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY) += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001665
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001666ifeq ($(BUILD_DEBUG_VERSION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001667cppflags-y += -DWLAN_DEBUG
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001668ifeq ($(CONFIG_TRACE_RECORD_FEATURE), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001669cppflags-y += -DTRACE_RECORD \
Rachit Kankane0baf6e72018-01-19 15:01:50 +05301670 -DLIM_TRACE_RECORD \
1671 -DSME_TRACE_RECORD \
1672 -DHDD_TRACE_RECORD
1673endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001674endif
Dustin Brown0ea8d3b2018-07-06 13:58:49 -07001675cppflags-$(CONFIG_UNIT_TEST) += -DWLAN_UNIT_TEST
Jeff Johnsonee869842018-04-17 11:14:03 -07001676cppflags-$(CONFIG_WLAN_DEBUG_CRASH_INJECT) += -DCONFIG_WLAN_DEBUG_CRASH_INJECT
1677cppflags-$(CONFIG_FEATURE_UNIT_TEST_SUSPEND) += -DWLAN_SUSPEND_RESUME_TEST
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07001678
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001679ifeq ($(CONFIG_LEAK_DETECTION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001680cppflags-y += \
Dustin Brown63ef3182018-04-02 10:57:18 -07001681 -DCONFIG_HALT_KMEMLEAK \
1682 -DCONFIG_LEAK_DETECTION \
1683 -DMEMORY_DEBUG \
1684 -DNBUF_MEMORY_DEBUG \
Dustin Brownf39413a2018-07-05 14:01:23 -07001685 -DNBUF_MAP_UNMAP_DEBUG \
Dustin Brown63ef3182018-04-02 10:57:18 -07001686 -DTIMER_MANAGER
Dustin Brown21a761d2017-11-15 16:37:00 -08001687endif
1688
Jeff Johnsonee869842018-04-17 11:14:03 -07001689cppflags-y += -DWLAN_FEATURE_P2P
1690cppflags-y += -DWLAN_FEATURE_WFD
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001691ifeq ($(CONFIG_QCOM_VOWIFI_11R), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001692cppflags-y += -DKERNEL_SUPPORT_11R_CFG80211
1693cppflags-y += -DUSE_80211_WMMTSPEC_FOR_RIC
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001694endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001695
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001696ifeq ($(CONFIG_QCOM_ESE), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001697cppflags-y += -DFEATURE_WLAN_ESE
1698cppflags-y += -DQCA_COMPUTE_TX_DELAY
1699cppflags-y += -DQCA_COMPUTE_TX_DELAY_PER_TID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001700endif
1701
1702#normally, TDLS negative behavior is not needed
Jeff Johnsonee869842018-04-17 11:14:03 -07001703cppflags-$(CONFIG_QCOM_TDLS) += -DFEATURE_WLAN_TDLS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001704
Jeff Johnsonee869842018-04-17 11:14:03 -07001705cppflags-$(CONFIG_QCACLD_WLAN_LFR3) += -DWLAN_FEATURE_ROAM_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001706
Jeff Johnsonee869842018-04-17 11:14:03 -07001707cppflags-$(CONFIG_CNSS_GENL) += -DCNSS_GENL
Selvaraj, Sridhar046d77d2017-03-07 14:53:13 +05301708
Jeff Johnsonee869842018-04-17 11:14:03 -07001709cppflags-$(CONFIG_QCACLD_WLAN_LFR2) += -DWLAN_FEATURE_HOST_ROAM
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -08001710
Qiwei Caid96c0212018-06-15 11:12:49 +08001711cppflags-$(CONFIG_FEATURE_ROAM_DEBUG) += -DFEATURE_ROAM_DEBUG
1712
Jeff Johnsonee869842018-04-17 11:14:03 -07001713cppflags-$(CONFIG_WLAN_POWER_DEBUGFS) += -DWLAN_POWER_DEBUGFS
Sridhar Selvarajdc400d22016-10-18 17:18:03 +05301714
Rajeev Kumar69d7d492017-02-13 21:48:16 -08001715# Enable object manager reference count debug infrastructure
Jeff Johnsonee869842018-04-17 11:14:03 -07001716cppflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_DEBUG
Rajeev Kumar69d7d492017-02-13 21:48:16 -08001717
Jeff Johnsonee869842018-04-17 11:14:03 -07001718cppflags-$(CONFIG_WLAN_FEATURE_SAE) += -DWLAN_FEATURE_SAE
Padma, Santhosh Kumar07eb80b2017-07-05 16:10:06 +05301719
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001720ifeq ($(BUILD_DIAG_VERSION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001721cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT
1722cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
1723cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001724ifeq ($(CONFIG_HIF_PCI), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001725cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001726endif
1727endif
1728
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001729ifeq ($(CONFIG_HIF_USB), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001730cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1731cppflags-y += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
1732cppflags-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 -08001733endif
1734
Jeff Johnsonee869842018-04-17 11:14:03 -07001735cppflags-$(CONFIG_WLAN_FEATURE_11W) += -DWLAN_FEATURE_11W
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001736
Jeff Johnsonee869842018-04-17 11:14:03 -07001737cppflags-$(CONFIG_QCA_TXDESC_SANITY_CHECKS) += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
gbiane55c9562016-11-01 14:47:47 +08001738
Jeff Johnsonee869842018-04-17 11:14:03 -07001739cppflags-$(CONFIG_QCOM_LTE_COEX) += -DFEATURE_WLAN_CH_AVOID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001740
Jeff Johnsonee869842018-04-17 11:14:03 -07001741cppflags-$(CONFIG_WLAN_FEATURE_LPSS) += -DWLAN_FEATURE_LPSS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001742
Nirav Shaha72db1d2018-06-06 17:11:07 +05301743cppflags-$(CONFIG_DESC_DUP_DETECT_DEBUG) += -DDESC_DUP_DETECT_DEBUG
1744cppflags-$(CONFIG_DEBUG_RX_RING_BUFFER) += -DDEBUG_RX_RING_BUFFER
Nirav Shah76291962016-04-25 10:50:37 +05301745
Jeff Johnsonee869842018-04-17 11:14:03 -07001746cppflags-$(PANIC_ON_BUG) += -DPANIC_ON_BUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001747
Jeff Johnsonee869842018-04-17 11:14:03 -07001748cppflags-$(WLAN_WARN_ON_ASSERT) += -DWLAN_WARN_ON_ASSERT
Dustin Brown0634ba32018-03-22 13:00:44 -07001749
Rajeev Kumar6bdee8e2018-04-18 17:36:05 -07001750ccflags-$(CONFIG_POWER_MANAGEMENT_OFFLOAD) += -DWLAN_POWER_MANAGEMENT_OFFLOAD
1751
Jeff Johnsonee869842018-04-17 11:14:03 -07001752cppflags-$(CONFIG_WLAN_LOG_FATAL) += -DWLAN_LOG_FATAL
1753cppflags-$(CONFIG_WLAN_LOG_ERROR) += -DWLAN_LOG_ERROR
1754cppflags-$(CONFIG_WLAN_LOG_WARN) += -DWLAN_LOG_WARN
1755cppflags-$(CONFIG_WLAN_LOG_INFO) += -DWLAN_LOG_INFO
1756cppflags-$(CONFIG_WLAN_LOG_DEBUG) += -DWLAN_LOG_DEBUG
Dustin Brown92def292018-03-14 15:02:14 -07001757
Jeff Johnsonee869842018-04-17 11:14:03 -07001758cppflags-$(WLAN_OPEN_SOURCE) += -DWLAN_OPEN_SOURCE
Dustin Brown92def292018-03-14 15:02:14 -07001759
Jeff Johnsonee869842018-04-17 11:14:03 -07001760cppflags-$(CONFIG_FEATURE_STATS_EXT) += -DWLAN_FEATURE_STATS_EXT
Dustin Brown92def292018-03-14 15:02:14 -07001761
Jeff Johnsonee869842018-04-17 11:14:03 -07001762cppflags-$(CONFIG_QCACLD_FEATURE_NAN) += -DWLAN_FEATURE_NAN
Dustin Brown92def292018-03-14 15:02:14 -07001763
Jeff Johnsonee869842018-04-17 11:14:03 -07001764cppflags-$(CONFIG_QCA_IBSS_SUPPORT) += -DQCA_IBSS_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001765
1766#Enable OL debug and wmi unified functions
Jeff Johnsonee869842018-04-17 11:14:03 -07001767cppflags-$(CONFIG_ATH_PERF_PWR_OFFLOAD) += -DATH_PERF_PWR_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001768
1769#Disable packet log
Jeff Johnsonee869842018-04-17 11:14:03 -07001770cppflags-$(CONFIG_REMOVE_PKT_LOG) += -DREMOVE_PKT_LOG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001771
1772#Enable 11AC TX
Jeff Johnsonee869842018-04-17 11:14:03 -07001773cppflags-$(CONFIG_ATH_11AC_TXCOMPACT) += -DATH_11AC_TXCOMPACT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001774
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001775#Enable PCI specific APIS (dma, etc)
Jeff Johnsonee869842018-04-17 11:14:03 -07001776cppflags-$(CONFIG_HIF_PCI) += -DHIF_PCI
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001777
Jeff Johnsonee869842018-04-17 11:14:03 -07001778cppflags-$(CONFIG_HIF_SNOC) += -DHIF_SNOC
Houston Hoffman1edffd32016-01-27 16:30:34 -08001779
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301780#Enable High Latency related Flags
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001781ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001782cppflags-y += -DCONFIG_HL_SUPPORT \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301783 -DCONFIG_AR6320_SUPPORT \
1784 -DSDIO_3_0 \
1785 -DHIF_SDIO \
1786 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
1787 -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
1788 -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \
1789 -DHIF_MBOX_SLEEP_WAR \
1790 -DDEBUG_HL_LOGGING \
1791 -DQCA_BAD_PEER_TX_FLOW_CL \
1792 -DCONFIG_TX_DESC_HI_PRIO_RESERVE \
1793 -DCONFIG_PER_VDEV_TX_DESC_POOL \
1794 -DCONFIG_SDIO \
1795 -DFEATURE_WLAN_FORCE_SAP_SCC
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301796
1797ifeq ($(CONFIG_SDIO_TRANSFER), adma)
1798cppflags-y += -DCONFIG_SDIO_TRANSFER_ADMA
1799else
1800cppflags-y += -DCONFIG_SDIO_TRANSFER_MAILBOX
1801endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301802endif
1803
Agrawal Ashishb141b092016-09-02 19:59:26 +05301804ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001805cppflags-y += -DWLAN_FEATURE_DSRC
Zhang Qian47e22ce2018-01-04 15:38:38 +08001806
1807ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001808cppflags-y += -DWLAN_OCB_UT
Zhang Qian47e22ce2018-01-04 15:38:38 +08001809endif
1810
Agrawal Ashishb141b092016-09-02 19:59:26 +05301811endif
1812
Jeff Johnsonee869842018-04-17 11:14:03 -07001813cppflags-$(CONFIG_FEATURE_SKB_PRE_ALLOC) += -DFEATURE_SKB_PRE_ALLOC
bings7762da12017-03-06 07:21:04 +08001814
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001815#Enable USB specific APIS
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001816ifeq ($(CONFIG_HIF_USB), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001817cppflags-y += -DHIF_USB \
Nirav Shaheb017be2018-02-15 11:20:58 +05301818 -DDEBUG_HL_LOGGING \
Mohit Khannae7a43572016-10-10 17:34:21 -07001819 -DCONFIG_HL_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001820endif
1821
Ajit Pal Singh0bd748a2018-06-19 11:48:02 +05301822#Enable Genoa specific features.
1823cppflags-$(CONFIG_QCA_HL_NETDEV_FLOW_CONTROL) += -DQCA_HL_NETDEV_FLOW_CONTROL
1824cppflags-$(CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL) += -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL
1825cppflags-$(CONFIG_FEATURE_HL_DBS_GROUP_CREDIT_SHARING) += -DFEATURE_HL_DBS_GROUP_CREDIT_SHARING
1826cppflags-$(CONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE) += -DCONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE
1827
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001828#Enable FW logs through ini
Jeff Johnsonee869842018-04-17 11:14:03 -07001829cppflags-y += -DCONFIG_FW_LOGS_BASED_ON_INI
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001830
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001831#Enable power management suspend/resume functionality
Jeff Johnsonee869842018-04-17 11:14:03 -07001832cppflags-$(CONFIG_ATH_BUS_PM) += -DATH_BUS_PM
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001833
1834#Enable FLOWMAC module support
Jeff Johnsonee869842018-04-17 11:14:03 -07001835cppflags-$(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE) += -DATH_SUPPORT_FLOWMAC_MODULE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001836
1837#Enable spectral support
Jeff Johnsonee869842018-04-17 11:14:03 -07001838cppflags-$(CONFIG_ATH_SUPPORT_SPECTRAL) += -DATH_SUPPORT_SPECTRAL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001839
1840#Enable WDI Event support
Jeff Johnsonee869842018-04-17 11:14:03 -07001841cppflags-$(CONFIG_WDI_EVENT_ENABLE) += -DWDI_EVENT_ENABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001842
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07001843#Endianness selection
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001844ifeq ($(CONFIG_LITTLE_ENDIAN), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001845cppflags-y += -DANI_LITTLE_BYTE_ENDIAN
1846cppflags-y += -DANI_LITTLE_BIT_ENDIAN
1847cppflags-y += -DDOT11F_LITTLE_ENDIAN_HOST
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001848else
Jeff Johnsonee869842018-04-17 11:14:03 -07001849cppflags-y += -DANI_BIG_BYTE_ENDIAN
1850cppflags-y += -DBIG_ENDIAN_HOST
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001851endif
1852
1853#Enable TX reclaim support
Jeff Johnsonee869842018-04-17 11:14:03 -07001854cppflags-$(CONFIG_TX_CREDIT_RECLAIM_SUPPORT) += -DTX_CREDIT_RECLAIM_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001855
1856#Enable FTM support
Jeff Johnsonee869842018-04-17 11:14:03 -07001857cppflags-$(CONFIG_QCA_WIFI_FTM) += -DQCA_WIFI_FTM
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001858
1859#Enable Checksum Offload support
Jeff Johnsonee869842018-04-17 11:14:03 -07001860cppflags-$(CONFIG_CHECKSUM_OFFLOAD) += -DCHECKSUM_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001861
1862#Enable Checksum Offload support
Jeff Johnsonee869842018-04-17 11:14:03 -07001863cppflags-$(CONFIG_IPA_OFFLOAD) += -DIPA_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001864
anisha agarwal188d2542017-03-21 13:15:58 -07001865ifeq ($(CONFIG_ARCH_SDX20), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001866cppflags-y += -DSYNC_IPA_READY
bings7762da12017-03-06 07:21:04 +08001867endif
1868
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001869#Enable GTK Offload
Jeff Johnsonee869842018-04-17 11:14:03 -07001870cppflags-$(CONFIG_GTK_OFFLOAD) += -DWLAN_FEATURE_GTK_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001871
Jeff Johnsonb8b39762018-04-06 20:08:10 -07001872#Enable External WoW
Jeff Johnsonee869842018-04-17 11:14:03 -07001873cppflags-$(CONFIG_EXT_WOW) += -DWLAN_FEATURE_EXTWOW_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001874
1875#Mark it as SMP Kernel
Jeff Johnsonee869842018-04-17 11:14:03 -07001876cppflags-$(CONFIG_SMP) += -DQCA_CONFIG_SMP
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001877
Jeff Johnsonee869842018-04-17 11:14:03 -07001878cppflags-$(CONFIG_CHNL_MATRIX_RESTRICTION) += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001879
Zhu Jianmin04392c42017-05-12 16:34:53 +08001880#Enable ICMP packet disable powersave feature
Jeff Johnsonee869842018-04-17 11:14:03 -07001881cppflags-$(CONFIG_ICMP_DISABLE_PS) += -DWLAN_ICMP_DISABLE_PS
Zhu Jianmin04392c42017-05-12 16:34:53 +08001882
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07001883#Enable OBSS feature
Jeff Johnsonee869842018-04-17 11:14:03 -07001884cppflags-y += -DQCA_HT_2040_COEX
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07001885
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001886#enable MCC TO SCC switch
Jeff Johnsonee869842018-04-17 11:14:03 -07001887cppflags-$(CONFIG_FEATURE_WLAN_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001888
1889#enable wlan auto shutdown feature
Jeff Johnsonee869842018-04-17 11:14:03 -07001890cppflags-$(CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN) += -DFEATURE_WLAN_AUTO_SHUTDOWN
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001891
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001892#enable AP-AP ACS Optimization
Jeff Johnsonee869842018-04-17 11:14:03 -07001893cppflags-$(CONFIG_FEATURE_WLAN_AP_AP_ACS_OPTIMIZE) += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001894
1895#Enable 4address scheme
Jeff Johnsonee869842018-04-17 11:14:03 -07001896cppflags-$(CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME) += -DFEATURE_WLAN_STA_4ADDR_SCHEME
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001897
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08001898#enable MDM/SDX special config
Jeff Johnsonee869842018-04-17 11:14:03 -07001899cppflags-$(CONFIG_MDM_PLATFORM) += -DMDM_PLATFORM
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08001900
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001901#Disable STA-AP Mode DFS support
Jeff Johnsonee869842018-04-17 11:14:03 -07001902cppflags-$(CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE) += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001903
1904#Open P2P device interface only for non-Mobile router use cases
Jeff Johnsonee869842018-04-17 11:14:03 -07001905cppflags-$(CONFIG_WLAN_OPEN_P2P_INTERFACE) += -DWLAN_OPEN_P2P_INTERFACE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001906
1907#Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
Jeff Johnsonee869842018-04-17 11:14:03 -07001908cppflags-$(CONFIG_WLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY) += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001909
1910#Green AP feature
Jeff Johnsonee869842018-04-17 11:14:03 -07001911cppflags-$(CONFIG_QCACLD_FEATURE_GREEN_AP) += -DWLAN_SUPPORT_GREEN_AP
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001912
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +05301913ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
1914cppflags-$(CONFIG_QCACLD_FEATURE_APF) += -DFEATURE_WLAN_APF
1915endif
1916
Yun Park637d6482016-10-05 10:51:33 -07001917#Stats & Quota Metering feature
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001918ifeq ($(CONFIG_IPA_OFFLOAD), y)
1919ifeq ($(CONFIG_QCACLD_FEATURE_METERING), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07001920cppflags-y += -DFEATURE_METERING
Yun Park637d6482016-10-05 10:51:33 -07001921endif
Yun Parkb4f591d2017-03-29 15:51:01 -07001922endif
Yun Park637d6482016-10-05 10:51:33 -07001923
Jeff Johnsonee869842018-04-17 11:14:03 -07001924cppflags-$(CONFIG_TUFELLO_DUAL_FW_SUPPORT) += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
1925cppflags-$(CONFIG_CHANNEL_HOPPING_ALL_BANDS) += -DCHANNEL_HOPPING_ALL_BANDS
gaolez76d2a162017-03-21 19:23:58 +08001926
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001927#Enable Signed firmware support for split binary format
Jeff Johnsonee869842018-04-17 11:14:03 -07001928cppflags-$(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT) += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001929
1930#Enable single firmware binary format
Jeff Johnsonee869842018-04-17 11:14:03 -07001931cppflags-$(CONFIG_QCA_SINGLE_BINARY_SUPPORT) += -DQCA_SINGLE_BINARY_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001932
1933#Enable collecting target RAM dump after kernel panic
Jeff Johnsonee869842018-04-17 11:14:03 -07001934cppflags-$(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC) += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001935
1936#Enable/disable secure firmware feature
Jeff Johnsonee869842018-04-17 11:14:03 -07001937cppflags-$(CONFIG_FEATURE_SECURE_FIRMWARE) += -DFEATURE_SECURE_FIRMWARE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001938
Jeff Johnsonee869842018-04-17 11:14:03 -07001939cppflags-$(CONFIG_ATH_PCIE_ACCESS_DEBUG) += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001940
Jeff Johnson69ba6d02018-04-12 16:05:32 -07001941# Enable feature support for Linux version QCMBR
Jeff Johnsonee869842018-04-17 11:14:03 -07001942cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001943
Manikandan Mohandcc21ba2016-03-15 14:31:56 -07001944# Enable featue sync tsf between multi devices
Jeff Johnsonee869842018-04-17 11:14:03 -07001945cppflags-$(CONFIG_WLAN_SYNC_TSF) += -DWLAN_FEATURE_TSF
1946cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS) += -DWLAN_FEATURE_TSF_PLUS
Yu Wang000dc2f2017-05-26 17:38:48 +08001947
Jeff Johnsonee869842018-04-17 11:14:03 -07001948cppflags-$(CONFIG_ATH_PROCFS_DIAG_SUPPORT) += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
Nirav Shahe8ac3402017-12-31 15:36:32 +05301949
Jeff Johnsonee869842018-04-17 11:14:03 -07001950cppflags-$(CONFIG_HELIUMPLUS) += -DHELIUMPLUS
Manjunathappa Prakash7b0ad462018-04-15 00:37:16 -07001951cppflags-$(CONFIG_RX_OL) += -DRECEIVE_OFFLOAD
chenguo0f3636b2018-05-10 14:24:49 +08001952cppflags-$(CONFIG_TX_TID_OVERRIDE) += -DATH_TX_PRI_OVERRIDE
Jeff Johnsonee869842018-04-17 11:14:03 -07001953cppflags-$(CONFIG_AR900B) += -DAR900B
1954cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
1955cppflags-$(CONFIG_OL_RX_INDICATION_RECORD) += -DOL_RX_INDICATION_RECORD
1956cppflags-$(CONFIG_TSOSEG_DEBUG) += -DTSOSEG_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001957
Jeff Johnsonee869842018-04-17 11:14:03 -07001958cppflags-$(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING) += -DENABLE_DEBUG_ADDRESS_MARKING
1959cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
1960cppflags-$(CONFIG_FEATURE_TSO_DEBUG) += -DFEATURE_TSO_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001961
Jeff Johnsonee869842018-04-17 11:14:03 -07001962cppflags-$(CONFIG_WLAN_LRO) += -DFEATURE_LRO
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001963
Jeff Johnsonee869842018-04-17 11:14:03 -07001964cppflags-$(CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE) += -DFEATURE_AP_MCC_CH_AVOIDANCE
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001965
Jeff Johnsonee869842018-04-17 11:14:03 -07001966cppflags-$(CONFIG_MPC_UT_FRAMEWORK) += -DMPC_UT_FRAMEWORK
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001967
Jeff Johnsonee869842018-04-17 11:14:03 -07001968cppflags-$(CONFIG_FEATURE_EPPING) += -DWLAN_FEATURE_EPPING
Nirav Shah459bebf2018-01-17 16:59:14 +05301969
Jeff Johnsonee869842018-04-17 11:14:03 -07001970cppflags-$(CONFIG_WLAN_OFFLOAD_PACKETS) += -DWLAN_FEATURE_OFFLOAD_PACKETS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001971
Jeff Johnsonee869842018-04-17 11:14:03 -07001972cppflags-$(CONFIG_WLAN_FEATURE_DISA) += -DWLAN_FEATURE_DISA
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +05301973
Jeff Johnsonee869842018-04-17 11:14:03 -07001974cppflags-$(CONFIG_WLAN_FEATURE_FIPS) += -DWLAN_FEATURE_FIPS
Jeff Johnson7869aad2017-05-15 15:46:36 -07001975
Jeff Johnsonee869842018-04-17 11:14:03 -07001976cppflags-$(CONFIG_LFR_SUBNET_DETECTION) += -DFEATURE_LFR_SUBNET_DETECTION
Ravi Joshi61c3c7a2015-11-09 18:41:20 -08001977
Jeff Johnsonee869842018-04-17 11:14:03 -07001978cppflags-$(CONFIG_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +05301979
Jeff Johnsonee869842018-04-17 11:14:03 -07001980cppflags-$(CONFIG_WLAN_FEATURE_NAN_DATAPATH) += -DWLAN_FEATURE_NAN_DATAPATH
Ravi Joshia063dd92016-05-25 16:43:13 -07001981
Jeff Johnsonee869842018-04-17 11:14:03 -07001982cppflags-$(CONFIG_NAN_CONVERGENCE) += -DWLAN_FEATURE_NAN_CONVERGENCE
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001983
Jeff Johnsonee869842018-04-17 11:14:03 -07001984cppflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW
Will Huang3cd2b7c2017-11-17 13:16:56 +08001985
Yue Ma91e1c002018-05-24 11:18:36 -07001986cppflags-$(CONFIG_QCA_WIFI_NAPIER_EMULATION) += -DQCA_WIFI_NAPIER_EMULATION
Jeff Johnsonee869842018-04-17 11:14:03 -07001987cppflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2
1988cppflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF
1989cppflags-$(CONFIG_QCA_WIFI_QCA6290) += -DQCA_WIFI_QCA6290
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001990cppflags-$(CONFIG_QCA6390_HEADERS_DEF) += -DQCA6390_HEADERS_DEF
1991cppflags-$(CONFIG_QCA_WIFI_QCA6390) += -DQCA_WIFI_QCA6390
Jeff Johnsonee869842018-04-17 11:14:03 -07001992cppflags-$(CONFIG_QCA_WIFI_QCA8074) += -DQCA_WIFI_QCA8074
1993cppflags-$(CONFIG_QCA_WIFI_QCA8074_VP) += -DQCA_WIFI_QCA8074_VP
1994cppflags-$(CONFIG_DP_INTR_POLL_BASED) += -DDP_INTR_POLL_BASED
1995cppflags-$(CONFIG_TX_PER_PDEV_DESC_POOL) += -DTX_PER_PDEV_DESC_POOL
1996cppflags-$(CONFIG_DP_TRACE) += -DCONFIG_DP_TRACE
1997cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
1998cppflags-$(CONFIG_TSO_DEBUG_LOG_ENABLE) += -DTSO_DEBUG_LOG_ENABLE
1999cppflags-$(CONFIG_DP_LFR) += -DDP_LFR
2000cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
Qiwei Caia01a9622018-07-11 10:02:03 +08002001cppflags-$(CONFIG_WLAN_FEATURE_BMI) += -DWLAN_FEATURE_BMI
Leo Chang5f7a1e02016-11-04 14:04:26 -07002002
Nirav Shahc8047a82018-06-22 16:39:01 +05302003ccflags-$(CONFIG_QCA_LL_TX_FLOW_CONTROL_RESIZE) += -DQCA_LL_TX_FLOW_CONTROL_RESIZE
2004
psimha0b6bb892017-10-10 14:28:34 -07002005ifeq ($(CONFIG_QCA6290_11AX), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002006cppflags-y += -DQCA_WIFI_QCA6290_11AX
psimha0b6bb892017-10-10 14:28:34 -07002007endif
2008
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07002009
Jeff Johnsonee869842018-04-17 11:14:03 -07002010cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX
2011cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX_BSS_COLOR
Krishna Kumaar Natarajan639c6ff2017-02-13 14:01:04 -08002012
Sravan Kumar Kairam7bca07e2018-07-05 18:32:22 +05302013cppflags-$(CONFIG_LITHIUM) += -DFEATURE_AST
2014
Leo Chang5f7a1e02016-11-04 14:04:26 -07002015# Dummy flag for WIN/MCL converged data path compilation
Jeff Johnsonee869842018-04-17 11:14:03 -07002016cppflags-y += -DDP_PRINT_ENABLE=0
2017cppflags-y += -DATH_SUPPORT_WRAP=0
2018cppflags-y += -DQCA_HOST2FW_RXBUF_RING
Leo Chang5f7a1e02016-11-04 14:04:26 -07002019#endof dummy flags
2020
Jianmin Zhu91e834d2018-07-12 11:07:42 +08002021# Enable lock of serialization component to avoid race condition issues
2022cppflags-y += -DWLAN_CMD_SERIALIZATION_LOCKING
2023
Nirav Shah8ba94a52018-06-07 09:06:25 +05302024ccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os
2025
Arif Hussain757b45f2017-02-11 16:47:06 -08002026# DFS component
Wen Gong01a2c632018-04-11 18:34:55 +08002027cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_MCL_DFS_SUPPORT
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002028ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
Wen Gong01a2c632018-04-11 18:34:55 +08002029cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_FULL_OFFLOAD
Arif Hussain02c2b632018-03-08 23:09:21 -08002030else
Wen Gong01a2c632018-04-11 18:34:55 +08002031cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_PARTIAL_OFFLOAD
Arif Hussain02c2b632018-03-08 23:09:21 -08002032endif
Wen Gong01a2c632018-04-11 18:34:55 +08002033cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DDFS_COMPONENT_ENABLE
2034cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_USE_POLICY_MANAGER
2035cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
Arif Hussain757b45f2017-02-11 16:47:06 -08002036
Jeff Johnsonee869842018-04-17 11:14:03 -07002037cppflags-$(CONFIG_WLAN_DEBUGFS) += -DWLAN_DEBUGFS
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -07002038
Jeff Johnsonee869842018-04-17 11:14:03 -07002039cppflags-$(CONFIG_DYNAMIC_DEBUG) += -DFEATURE_MULTICAST_HOST_FW_MSGS
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08002040
Jeff Johnsonee869842018-04-17 11:14:03 -07002041cppflags-$(CONFIG_ENABLE_SMMU_S1_TRANSLATION) += -DENABLE_SMMU_S1_TRANSLATION
Himanshu Agarwaledf30dc2017-06-05 15:54:27 +05302042
Alok Kumarb64650c2018-03-23 17:05:11 +05302043#Flag to enable NUD tracking
Jeff Johnsonee869842018-04-17 11:14:03 -07002044cppflags-$(CONFIG_WLAN_NUD_TRACKING) += -DWLAN_NUD_TRACKING
2045
Nirav Shah997e0832018-06-06 17:49:12 +05302046# configure log buffer size
2047ifdef CONFIG_CFG_NUM_DP_TRACE_RECORD
2048ccflags-y += -DMAX_QDF_DP_TRACE_RECORDS=$(CONFIG_CFG_NUM_DP_TRACE_RECORD)
2049endif
2050
2051ifdef CONFIG_CFG_NUM_HTC_CREDIT_HISTORY
2052ccflags-y += -DHTC_CREDIT_HISTORY_MAX=$(CONFIG_CFG_NUM_HTC_CREDIT_HISTORY)
2053endif
2054
2055ifdef CONFIG_CFG_NUM_WMI_EVENT_HISTORY
2056ccflags-y += -DWMI_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_EVENT_HISTORY)
2057endif
2058
2059ifdef CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY
2060ccflags-y += -DWMI_MGMT_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY)
2061endif
2062
2063ifdef CONFIG_CFG_NUM_TX_RX_HISTOGRAM
2064ccflags-y += -DNUM_TX_RX_HISTOGRAM=$(CONFIG_CFG_NUM_TX_RX_HISTOGRAM)
2065endif
2066
2067ifdef CONFIG_CFG_NUM_RX_IND_RECORD
2068ccflags-y += -DOL_RX_INDICATION_MAX_RECORDS=$(CONFIG_CFG_NUM_RX_IND_RECORD)
2069endif
2070
Qiwei Caiad9b01c2018-07-09 17:21:31 +08002071ifdef CONFIG_CFG_NUM_ROAM_DEBUG_RECORD
2072ccflags-y += -DWLAN_ROAM_DEBUG_MAX_REC=$(CONFIG_CFG_NUM_ROAM_DEBUG_RECORD)
2073endif
2074
Rachit Kankane8863cba2018-06-05 17:31:48 +05302075ifdef CONFIG_CFG_PMO_WOW_FILTERS_MAX
2076ccflags-y += -DPMO_WOW_FILTERS_MAX=$(CONFIG_CFG_PMO_WOW_FILTERS_MAX)
2077endif
Nirav Shah997e0832018-06-06 17:49:12 +05302078
jsreekumac44b922018-06-12 20:18:39 +05302079ifdef CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV
2080ccflags-y += -DCFG_TGT_DEFAULT_GTK_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV)
2081endif
2082
2083ifdef CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV
2084ccflags-y += -DCFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV)
2085endif
2086
2087ifdef CONFIG_CFG_MAX_PERIODIC_TX_PTRNS
2088ccflags-y += -DWMA_MAXNUM_PERIODIC_TX_PTRNS=$(CONFIG_CFG_MAX_PERIODIC_TX_PTRNS)
2089endif
2090
2091ifdef CONFIG_CFG_MAX_STA_VDEVS
2092ccflags-y += -DCFG_TGT_DEFAULT_MAX_STA_VDEVS=$(CONFIG_CFG_MAX_STA_VDEVS)
2093endif
2094
Rachit Kankane0106e382018-05-16 18:59:28 +05302095ifdef CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS
2096ccflags-y += -DNUM_OF_ADDITIONAL_FW_PEERS=$(CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS)
2097endif
2098
jsreekumac44b922018-06-12 20:18:39 +05302099ifdef CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES
2100ccflags-y += -DCFG_TGT_NUM_TDLS_CONN_TABLE_ENTRIES=$(CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES)
2101endif
2102
Jeff Johnsonee869842018-04-17 11:14:03 -07002103KBUILD_CPPFLAGS += $(cppflags-y)
Alok Kumarb64650c2018-03-23 17:05:11 +05302104
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002105# Currently, for versions of gcc which support it, the kernel Makefile
2106# is disabling the maybe-uninitialized warning. Re-enable it for the
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002107# WLAN driver. Note that we must use ccflags-y here so that it
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002108# will override the kernel settings.
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002109ifeq ($(call cc-option-yn, -Wmaybe-uninitialized), y)
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002110ccflags-y += -Wmaybe-uninitialized
Leo Chang5f7a1e02016-11-04 14:04:26 -07002111ifneq (y,$(CONFIG_ARCH_MSM))
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002112ccflags-y += -Wframe-larger-than=4096
Leo Chang5f7a1e02016-11-04 14:04:26 -07002113endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002114endif
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002115ccflags-y += -Wmissing-prototypes
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002116
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002117ifeq ($(call cc-option-yn, -Wheader-guard), y)
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002118ccflags-y += -Wheader-guard
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002119endif
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302120# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
Yu Wang66e4ff22017-02-15 19:09:24 +08002121# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302122# any string that must be unique for all instances of the driver on the system.
2123# This allows multiple instances of the driver with different module names.
2124# If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
2125# treat the driver as the primary driver.
2126ifneq ($(MODNAME), wlan)
Yu Wang66e4ff22017-02-15 19:09:24 +08002127CHIP_NAME ?= $(MODNAME)
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07002128ccflags-y += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302129endif
2130
2131# WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
2132# system. If it is not defined, then the host driver will use the first 4
2133# characters (including NULL) of MULTI_IF_NAME to construct
2134# WLAN_HDD_ADAPTER_MAGIC.
2135ifdef WLAN_HDD_ADAPTER_MAGIC
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07002136ccflags-y += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302137endif
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002138
Dustin Brown9b217c02018-03-29 11:17:53 -07002139# Determine if we are building against an arm architecture host
2140ifeq ($(findstring arm, $(ARCH)),)
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07002141 ccflags-y += -DWLAN_HOST_ARCH_ARM=0
Dustin Brown9b217c02018-03-29 11:17:53 -07002142else
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07002143 ccflags-y += -DWLAN_HOST_ARCH_ARM=1
Dustin Brown9b217c02018-03-29 11:17:53 -07002144endif
2145
Naveen Rawat93836252017-06-20 16:30:59 -07002146# inject some build related information
Dustin Brown96cd9632017-11-13 12:45:04 -08002147ifeq ($(CONFIG_BUILD_TAG), y)
Dustin Brown0e769d02017-11-14 12:52:32 -08002148CLD_CHECKOUT = $(shell cd "$(WLAN_ROOT)" && \
2149 git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+)
2150CLD_IDS = $(shell cd "$(WLAN_ROOT)" && \
2151 git log $(CLD_CHECKOUT)~..HEAD | \
2152 sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
2153 paste -sd "," -)
2154
2155CMN_CHECKOUT = $(shell cd "$(WLAN_COMMON_INC)" && \
2156 git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+)
2157CMN_IDS = $(shell cd "$(WLAN_COMMON_INC)" && \
2158 git log $(CMN_CHECKOUT)~..HEAD | \
2159 sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
2160 paste -sd "," -)
2161
Dustin Brown96cd9632017-11-13 12:45:04 -08002162TIMESTAMP = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
Dustin Brown0e769d02017-11-14 12:52:32 -08002163BUILD_TAG = "$(TIMESTAMP); cld:$(CLD_IDS); cmn:$(CMN_IDS);"
Mahesh Kumar Kalikot Veetil48af32b2018-02-23 11:50:19 -08002164# It's assumed that BUILD_TAG is used only in wlan_hdd_main.c
2165CFLAGS_wlan_hdd_main.o += -DBUILD_TAG=\"$(BUILD_TAG)\"
Naveen Rawat93836252017-06-20 16:30:59 -07002166endif
2167
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002168# Module information used by KBuild framework
2169obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
2170$(MODNAME)-y := $(OBJS)
Srinivas Girigowdac7a1b0a2017-12-08 12:00:00 -08002171OBJS_DIRS := $(dir $(OBJS)) \
2172 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ \
2173 $(QDF_OBJ_DIR)/ \
2174 $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/ \
2175 $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/ \
2176 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/
2177CLEAN_DIRS := $(addsuffix *.o,$(sort $(OBJS_DIRS))) \
2178 $(addsuffix .*.o.cmd,$(sort $(OBJS_DIRS)))
2179clean-files := $(CLEAN_DIRS)