blob: b7265686adf270a31a5256365f3da97a20b4e9b7 [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)
Yu Wang6c4599c2018-10-09 10:18:14 +080016 WLAN_FW_API := $(WLAN_ROOT)/../fw-api/
17 WLAN_PROFILE := default
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080018endif
Qiwei Caidcb73b02018-09-17 19:58:29 +080019
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -070020WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn
21WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
Yu Wang6c4599c2018-10-09 10:18:14 +080022WLAN_FW_API ?= $(WLAN_ROOT)/../fw-api/
23WLAN_PROFILE ?= default
24CONFIG_QCA_CLD_WLAN_PROFILE ?= $(WLAN_PROFILE)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -080025
Yuanyuan Liu49948f12018-10-16 12:42:28 -070026ifeq ($(KERNEL_BUILD), n)
27ifneq ($(ANDROID_BUILD_TOP),)
28 override WLAN_ROOT := $(ANDROID_BUILD_TOP)/$(WLAN_ROOT)
29 override WLAN_COMMON_INC := $(ANDROID_BUILD_TOP)/$(WLAN_COMMON_INC)
Yu Wang6c4599c2018-10-09 10:18:14 +080030 override WLAN_FW_API := $(ANDROID_BUILD_TOP)/$(WLAN_FW_API)
Yuanyuan Liu49948f12018-10-16 12:42:28 -070031endif
32endif
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -070033
Nirav Shahd2aa9632018-05-27 22:02:53 +053034include $(WLAN_ROOT)/configs/$(CONFIG_QCA_CLD_WLAN_PROFILE)_defconfig
Jeff Johnson181cca72019-02-09 19:18:54 -080035
Yu Wangbaff8002019-08-08 19:48:16 +080036# add configurations in WLAN_CFG_OVERRIDE
37ifneq ($(WLAN_CFG_OVERRIDE),)
38WLAN_CFG_OVERRIDE_FILE := $(WLAN_ROOT)/.wlan_cfg_override
39$(shell echo > $(WLAN_CFG_OVERRIDE_FILE))
40
41$(foreach cfg, $(WLAN_CFG_OVERRIDE), \
42 $(shell echo $(cfg) >> $(WLAN_CFG_OVERRIDE_FILE)))
43
44include $(WLAN_CFG_OVERRIDE_FILE)
45$(warning "Overriding WLAN config with: $(shell cat $(WLAN_CFG_OVERRIDE_FILE))")
46endif
47
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080048############ UAPI ############
49UAPI_DIR := uapi
50UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
51
52############ COMMON ############
53COMMON_DIR := core/common
54COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
55
56############ HDD ############
57HDD_DIR := core/hdd
58HDD_INC_DIR := $(HDD_DIR)/inc
59HDD_SRC_DIR := $(HDD_DIR)/src
60
61HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
62 -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
63
64HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
65 $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070066 $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
Poddar, Siddarth34872782017-08-10 14:08:51 +053067 $(HDD_SRC_DIR)/wlan_hdd_data_stall_detection.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080068 $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
69 $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
70 $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
71 $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
72 $(HDD_SRC_DIR)/wlan_hdd_main.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070073 $(HDD_SRC_DIR)/wlan_hdd_object_manager.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080074 $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070075 $(HDD_SRC_DIR)/wlan_hdd_p2p.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080076 $(HDD_SRC_DIR)/wlan_hdd_power.o \
Amar Singhale4f28ee2015-10-21 14:36:56 -070077 $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080078 $(HDD_SRC_DIR)/wlan_hdd_scan.o \
79 $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
Sourav Mohapatra43e6dea2019-08-18 11:39:23 +053080 $(HDD_SRC_DIR)/wlan_hdd_sta_info.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070081 $(HDD_SRC_DIR)/wlan_hdd_stats.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080082 $(HDD_SRC_DIR)/wlan_hdd_trace.o \
Jeff Johnsona9d252d2018-04-11 15:43:53 -070083 $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080084 $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
SaidiReddy Yenuga744073f2017-03-09 17:31:25 +053085 $(HDD_SRC_DIR)/wlan_hdd_wowl.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080086
Rachit Kankane0dc3e852018-05-07 17:33:42 +053087ifeq ($(CONFIG_WLAN_WEXT_SUPPORT_ENABLE), y)
88HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_wext.o \
89 $(HDD_SRC_DIR)/wlan_hdd_hostapd_wext.o
90endif
91
Ashish Kumar Dhanotiya9cc2a862019-07-08 14:52:51 +053092ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
93HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o
94endif
95
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -070096ifeq ($(CONFIG_WLAN_DEBUGFS), y)
97HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
Qiwei Cai3719efe2018-06-11 21:09:29 +080098ifeq ($(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS), y)
Krishna Kumaar Natarajanc7e2bb72017-03-10 10:38:46 -080099HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_llstat.o
Nirav Shah179b9862018-09-11 13:46:38 +0530100endif
tinlin9abd17f2019-08-14 13:29:44 +0800101ifeq ($(CONFIG_WLAN_FEATURE_MIB_STATS), y)
102HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_mibstat.o
103endif
Rajeev Kumar Sirasanagandla197d4172018-02-15 19:03:29 +0530104HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_csr.o
Rajeev Kumar Sirasanagandla4c8edc02018-03-12 08:44:51 +0530105HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_connect.o
Rajeev Kumar Sirasanagandla85f8b022018-03-12 12:52:59 +0530106HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_offload.o
Rajeev Kumar Sirasanagandla4f20b672018-03-12 13:52:50 +0530107HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_roam.o
Arun Kumar Khandavallideda5a82019-03-11 15:32:19 +0530108ifeq ($(CONFIG_WLAN_MWS_INFO_DEBUGFS), y)
109HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_coex.o
110endif
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700111endif
112
Sandeep Puligilla8e89d572018-04-02 18:07:45 -0700113ifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y)
114HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_spectralscan.o
115endif
116
Agrawal Ashishb141b092016-09-02 19:59:26 +0530117ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
118HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o
119endif
Amar Singhale4f28ee2015-10-21 14:36:56 -0700120
Wen Gong3f003382018-05-14 14:26:37 +0800121ifeq ($(CONFIG_FEATURE_MEMDUMP_ENABLE), y)
Wen Gongaa6d55d2018-04-26 16:33:21 +0800122HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_memdump.o
123endif
124
Jeff Johnson6fa1e012017-04-05 06:40:53 -0700125ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
126HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_fips.o
127endif
128
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700129ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
Jeff Johnson8bb61112018-03-31 13:33:54 -0700130HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
131endif
132
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +0530133ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
134HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_apf.o
135endif
136
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700137ifeq ($(CONFIG_WLAN_FEATURE_LPSS), y)
Jeff Johnson2b0a7b82016-05-18 15:08:02 -0700138HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o
139endif
140
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800141ifeq ($(CONFIG_WLAN_LRO), y)
142HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
143endif
144
145ifeq ($(CONFIG_WLAN_NAPI), y)
146HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
147endif
148
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700149ifeq ($(CONFIG_IPA_OFFLOAD), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800150HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
151endif
152
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700153ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800154HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +0530155HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800156endif
157
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700158ifeq ($(CONFIG_QCOM_TDLS), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800159HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
160endif
161
Yu Wang000dc2f2017-05-26 17:38:48 +0800162ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
163CONFIG_WLAN_SYNC_TSF := y
164endif
165
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700166ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
Manikandan Mohandcc21ba2016-03-15 14:31:56 -0700167HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
168endif
169
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700170ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800171HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
172endif
173
Nachiket Kukade98f562a2017-12-15 12:18:07 +0530174ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530175HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
176endif
177
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800178ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
179HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
180endif
181
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700182ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
Krishna Kumaar Natarajaned1efd92016-09-24 18:05:47 -0700183HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o
184endif
185
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -0700186ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
187HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_twt.o
188endif
189
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -0700190ifeq ($(CONFIG_LITHIUM), y)
Ravi Joshi1c2cfb62017-01-18 14:40:08 -0800191HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o
192endif
193
Mohit Khanna70322002018-05-15 19:21:32 -0700194ifeq ($(CONFIG_LITHIUM), y)
195CONFIG_WLAN_FEATURE_DP_RX_THREADS := y
Mohit Khannad02e9b82019-03-22 16:36:15 -0700196CONFIG_WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT := y
Mohit Khanna70322002018-05-15 19:21:32 -0700197endif
198
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700199ifeq ($(CONFIG_WLAN_NUD_TRACKING), y)
Alok Kumarb64650c2018-03-23 17:05:11 +0530200HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nud_tracking.o
201endif
202
Qiwei Cai4505fc62018-05-17 18:35:19 +0800203ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
204HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_packet_filter.o
205endif
206
Qiwei Caie689a262018-07-26 15:50:22 +0800207ifeq ($(CONFIG_FEATURE_RSSI_MONITOR), y)
208HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rssi_monitor.o
209endif
210
211ifeq ($(CONFIG_FEATURE_BSS_TRANSITION), y)
212HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_bss_transition.o
213endif
214
215ifeq ($(CONFIG_FEATURE_STATION_INFO), y)
216HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_station_info.o
217endif
218
219ifeq ($(CONFIG_FEATURE_TX_POWER), y)
220HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tx_power.o
221endif
222
223ifeq ($(CONFIG_FEATURE_OTA_TEST), y)
224HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ota_test.o
225endif
226
227ifeq ($(CONFIG_FEATURE_ACTIVE_TOS), y)
228HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_active_tos.o
229endif
230
231ifeq ($(CONFIG_FEATURE_SAR_LIMITS), y)
232HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sar_limits.o
233endif
234
235ifeq ($(CONFIG_FEATURE_CONCURRENCY_MATRIX), y)
236HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_concurrency_matrix.o
237endif
238
239ifeq ($(CONFIG_FEATURE_SAP_COND_CHAN_SWITCH), y)
240HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sap_cond_chan_switch.o
241endif
242
243ifeq ($(CONFIG_FEATURE_P2P_LISTEN_OFFLOAD), y)
244HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_p2p_listen_offload.o
245endif
246
Kai Liuaa88d2f2018-08-13 11:30:11 +0800247ifeq ($(CONFIG_WLAN_SYSFS), y)
248HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_sysfs.o
249endif
Dustin Browna17cace2019-02-01 14:53:47 -0800250
Qun Zhangef655622019-02-25 10:48:10 +0800251ifeq ($(CONFIG_QCACLD_FEATURE_FW_STATE), y)
252HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_fw_state.o
253endif
254
Jiani Liua5f17222019-03-04 16:22:33 +0800255ifeq ($(CONFIG_QCACLD_FEATURE_COEX_CONFIG), y)
256HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_coex_config.o
257endif
258
stonez2d686482019-03-12 14:54:26 +0800259ifeq ($(CONFIG_QCACLD_FEATURE_MPTA_HELPER), y)
260HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_mpta_helper.o
261endif
262
Abhinav Kumardbbfd2c2019-05-07 12:22:06 +0530263ifeq ($(CONFIG_WLAN_BCN_RECV_FEATURE), y)
264HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_bcn_recv.o
265endif
266
guangde4853c402019-05-06 15:54:04 +0800267ifeq ($(CONFIG_QCACLD_FEATURE_HW_CAPABILITY), y)
268HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_hw_capability.o
269endif
270
Dustin Browna17cace2019-02-01 14:53:47 -0800271###### OSIF_SYNC ########
272SYNC_DIR := os_if/sync
273SYNC_INC_DIR := $(SYNC_DIR)/inc
274SYNC_SRC_DIR := $(SYNC_DIR)/src
275
276SYNC_INC := \
277 -I$(WLAN_ROOT)/$(SYNC_INC_DIR) \
278 -I$(WLAN_ROOT)/$(SYNC_SRC_DIR) \
279
280SYNC_OBJS := \
281 $(SYNC_SRC_DIR)/osif_sync.o \
282 $(SYNC_SRC_DIR)/osif_driver_sync.o \
283 $(SYNC_SRC_DIR)/osif_psoc_sync.o \
284 $(SYNC_SRC_DIR)/osif_vdev_sync.o \
285
Dustin Brown6099ddc2018-07-06 14:32:53 -0700286########### Driver Synchronization Core (DSC) ###########
287DSC_DIR := components/dsc
288DSC_INC_DIR := $(DSC_DIR)/inc
289DSC_SRC_DIR := $(DSC_DIR)/src
290DSC_TEST_DIR := $(DSC_DIR)/test
291
292DSC_INC := \
293 -I$(WLAN_ROOT)/$(DSC_INC_DIR) \
294 -I$(WLAN_ROOT)/$(DSC_SRC_DIR) \
295 -I$(WLAN_ROOT)/$(DSC_TEST_DIR)
296
297DSC_OBJS := \
298 $(DSC_SRC_DIR)/__wlan_dsc.o \
299 $(DSC_SRC_DIR)/wlan_dsc_driver.o \
300 $(DSC_SRC_DIR)/wlan_dsc_psoc.o \
301 $(DSC_SRC_DIR)/wlan_dsc_vdev.o
302
303ifeq ($(CONFIG_DSC_TEST), y)
304 DSC_OBJS += $(DSC_TEST_DIR)/wlan_dsc_test.o
305endif
306
307cppflags-$(CONFIG_DSC_DEBUG) += -DWLAN_DSC_DEBUG
308cppflags-$(CONFIG_DSC_TEST) += -DWLAN_DSC_TEST
309
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800310########### HOST DIAG LOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800311HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800312
313HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
314HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
315
316HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
317 -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
318
319HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
320
321############ EPPING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800322EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800323EPPING_INC_DIR := $(EPPING_DIR)/inc
324EPPING_SRC_DIR := $(EPPING_DIR)/src
325
326EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
327
328EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
329 $(EPPING_SRC_DIR)/epping_txrx.o \
330 $(EPPING_SRC_DIR)/epping_tx.o \
331 $(EPPING_SRC_DIR)/epping_rx.o \
Dustin Brown6099ddc2018-07-06 14:32:53 -0700332 $(EPPING_SRC_DIR)/epping_helper.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800333
Ashish Kumar Dhanotiya94ffbd12019-08-08 18:00:59 +0530334############ SYS ############
335CMN_SYS_DIR := $(WLAN_COMMON_ROOT)/utils/sys
336CMN_SYS_INC_DIR := $(CMN_SYS_DIR)
337CMN_SYS_INC := -I$(WLAN_ROOT)/$(CMN_SYS_INC_DIR)
338
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800339############ MAC ############
340MAC_DIR := core/mac
341MAC_INC_DIR := $(MAC_DIR)/inc
342MAC_SRC_DIR := $(MAC_DIR)/src
343
344MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
345 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
346 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
347 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
Ravi Joshia063dd92016-05-25 16:43:13 -0700348 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
349 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800350
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800351MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
352
353MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
354 $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
355 $(MAC_SRC_DIR)/pe/lim/lim_api.o \
356 $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800357 $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800358 $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800359 $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
360 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
361 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
362 $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
363 $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
364 $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
365 $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
366 $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
367 $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
368 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
369 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
370 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
371 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
372 $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
373 $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
374 $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
375 $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
376 $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
377 $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
378 $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800379 $(MAC_SRC_DIR)/pe/lim/lim_session.o \
380 $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
381 $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800382 $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
383 $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
384 $(MAC_SRC_DIR)/pe/lim/lim_utils.o
385
Abhishek Ambure995ab5a2019-09-27 19:06:02 +0530386ifeq ($(CONFIG_QCA_IBSS_SUPPORT), y)
387MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o
388endif
389
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700390ifeq ($(CONFIG_QCOM_TDLS), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800391MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
392endif
393
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700394ifeq ($(CONFIG_WLAN_FEATURE_FILS), y)
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +0530395MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_fils.o
396endif
397
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +0530398ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Ravi Joshia063dd92016-05-25 16:43:13 -0700399MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
400endif
401
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700402ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800403 MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
404 $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
405 $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
406 $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
407 $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
408endif
409
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800410MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
411 $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
412 $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800413 $(MAC_SRC_DIR)/pe/sch/sch_message.o
414
415MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
416
417MAC_OBJS := $(MAC_CFG_OBJS) \
418 $(MAC_DPH_OBJS) \
419 $(MAC_LIM_OBJS) \
420 $(MAC_SCH_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700421 $(MAC_RRM_OBJS) \
422 $(MAC_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800423
424############ SAP ############
425SAP_DIR := core/sap
426SAP_INC_DIR := $(SAP_DIR)/inc
427SAP_SRC_DIR := $(SAP_DIR)/src
428
429SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
430 -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
431
432SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
433 $(SAP_SRC_DIR)/sap_ch_select.o \
434 $(SAP_SRC_DIR)/sap_fsm.o \
435 $(SAP_SRC_DIR)/sap_module.o
436
Dustin Brown84f46ea2018-02-15 11:57:36 -0800437############ CFG ############
438CFG_REL_DIR := $(WLAN_COMMON_ROOT)/cfg
439CFG_DIR := $(WLAN_ROOT)/$(CFG_REL_DIR)
440CFG_INC := \
441 -I$(CFG_DIR)/inc \
442 -I$(CFG_DIR)/dispatcher/inc \
443 -I$(WLAN_ROOT)/components/cfg
444CFG_OBJS := \
445 $(CFG_REL_DIR)/src/cfg.o
446
Jeff Johnsonb4e2d822018-04-12 15:53:24 -0700447############ DFS ############
Arif Hussain757b45f2017-02-11 16:47:06 -0800448DFS_DIR := $(WLAN_COMMON_ROOT)/umac/dfs
449DFS_CORE_INC_DIR := $(DFS_DIR)/core/inc
450DFS_CORE_SRC_DIR := $(DFS_DIR)/core/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800451
Arif Hussain757b45f2017-02-11 16:47:06 -0800452DFS_DISP_INC_DIR := $(DFS_DIR)/dispatcher/inc
453DFS_DISP_SRC_DIR := $(DFS_DIR)/dispatcher/src
454DFS_TARGET_INC_DIR := $(WLAN_COMMON_ROOT)/target_if/dfs/inc
455DFS_CMN_SERVICES_INC_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/dfs/inc
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800456
Arif Hussain757b45f2017-02-11 16:47:06 -0800457DFS_INC := -I$(WLAN_ROOT)/$(DFS_DISP_INC_DIR) \
458 -I$(WLAN_ROOT)/$(DFS_TARGET_INC_DIR) \
459 -I$(WLAN_ROOT)/$(DFS_CMN_SERVICES_INC_DIR)
460
Arif Hussain02c2b632018-03-08 23:09:21 -0800461DFS_OBJS := $(DFS_CORE_SRC_DIR)/misc/dfs.o \
462 $(DFS_CORE_SRC_DIR)/misc/dfs_cac.o \
463 $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o \
464 $(DFS_CORE_SRC_DIR)/misc/dfs_random_chan_sel.o \
465 $(DFS_CORE_SRC_DIR)/misc/dfs_process_radar_found_ind.o \
466 $(DFS_DISP_SRC_DIR)/wlan_dfs_init_deinit_api.o \
467 $(DFS_DISP_SRC_DIR)/wlan_dfs_lmac_api.o \
468 $(DFS_DISP_SRC_DIR)/wlan_dfs_mlme_api.o \
469 $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \
470 $(DFS_DISP_SRC_DIR)/wlan_dfs_ucfg_api.o \
471 $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \
472 $(DFS_DISP_SRC_DIR)/wlan_dfs_utils_api.o \
Arif Hussain757b45f2017-02-11 16:47:06 -0800473 $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800474
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700475ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
Arif Hussain02c2b632018-03-08 23:09:21 -0800476DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_full_offload.o \
477 $(DFS_CORE_SRC_DIR)/misc/dfs_full_offload.o
478else
479DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_partial_offload.o \
480 $(DFS_CORE_SRC_DIR)/filtering/dfs_fcc_bin5.o \
481 $(DFS_CORE_SRC_DIR)/filtering/dfs_bindetects.o \
482 $(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o \
483 $(DFS_CORE_SRC_DIR)/filtering/dfs_init.o \
484 $(DFS_CORE_SRC_DIR)/filtering/dfs_misc.o \
485 $(DFS_CORE_SRC_DIR)/filtering/dfs_phyerr_tlv.o \
486 $(DFS_CORE_SRC_DIR)/filtering/dfs_process_phyerr.o \
487 $(DFS_CORE_SRC_DIR)/filtering/dfs_process_radarevent.o \
488 $(DFS_CORE_SRC_DIR)/filtering/dfs_staggered.o \
489 $(DFS_CORE_SRC_DIR)/filtering/dfs_radar.o \
Arif Hussain02c2b632018-03-08 23:09:21 -0800490 $(DFS_CORE_SRC_DIR)/filtering/dfs_partial_offload_radar.o \
Arif Hussain6e4d14a2018-11-01 13:35:31 -0700491 $(DFS_CORE_SRC_DIR)/misc/dfs_filter_init.o
Arif Hussain02c2b632018-03-08 23:09:21 -0800492endif
493
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800494############ SME ############
495SME_DIR := core/sme
496SME_INC_DIR := $(SME_DIR)/inc
497SME_SRC_DIR := $(SME_DIR)/src
498
499SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
500 -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
501
502SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
503 $(SME_SRC_DIR)/csr/csr_api_scan.o \
504 $(SME_SRC_DIR)/csr/csr_cmd_process.o \
505 $(SME_SRC_DIR)/csr/csr_link_list.o \
506 $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800507 $(SME_SRC_DIR)/csr/csr_util.o \
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800508
509
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700510ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y)
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800511SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800512 $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800513endif
514
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800515SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
516
517SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
518 $(SME_SRC_DIR)/common/sme_ft_api.o \
519 $(SME_SRC_DIR)/common/sme_power_save.o \
520 $(SME_SRC_DIR)/common/sme_trace.o
521
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800522SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
523
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +0530524ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Ravi Joshia063dd92016-05-25 16:43:13 -0700525SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
526endif
527
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800528SME_OBJS := $(SME_CMN_OBJS) \
529 $(SME_CSR_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800530 $(SME_QOS_OBJS) \
531 $(SME_RRM_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700532 $(SME_NAN_OBJS) \
533 $(SME_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800534
535############ NLINK ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800536NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800537NLINK_INC_DIR := $(NLINK_DIR)/inc
538NLINK_SRC_DIR := $(NLINK_DIR)/src
539
540NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
541NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
542
543############ PTT ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800544PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800545PTT_INC_DIR := $(PTT_DIR)/inc
546PTT_SRC_DIR := $(PTT_DIR)/src
547
548PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
549PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
550
551############ WLAN_LOGGING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800552WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800553WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
554WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
555
556WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
Deepak Dhamdhere5d7ea2f2017-10-19 15:08:45 -0700557WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o \
558 $(WLAN_LOGGING_SRC_DIR)/wlan_roam_debug.o
Jeff Johnson8fba4d72018-04-08 08:46:04 -0700559
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800560############ SYS ############
561SYS_DIR := core/mac/src/sys
562
563SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
564 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
565 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
566 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
567
568SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
569SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
570SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
571 $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
572 $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
573 $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
574 $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800575 $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
576 $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800577 $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
578
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800579############ Qca-wifi-host-cmn ############
580QDF_OS_DIR := qdf
581QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700582QDF_OS_SRC_DIR := $(QDF_OS_DIR)/src
583QDF_OS_LINUX_SRC_DIR := $(QDF_OS_DIR)/linux/src
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800584QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700585QDF_LINUX_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_LINUX_SRC_DIR)
Dustin Brownebb16d12018-11-29 17:52:07 -0800586QDF_TEST_DIR := $(QDF_OS_DIR)/test
587QDF_TEST_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_TEST_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800588
Dustin Brownebb16d12018-11-29 17:52:07 -0800589QDF_INC := \
590 -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
591 -I$(WLAN_COMMON_INC)/$(QDF_OS_LINUX_SRC_DIR) \
592 -I$(WLAN_COMMON_INC)/$(QDF_TEST_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800593
Dustin Brownebb16d12018-11-29 17:52:07 -0800594QDF_OBJS := \
595 $(QDF_LINUX_OBJ_DIR)/qdf_crypto.o \
596 $(QDF_LINUX_OBJ_DIR)/qdf_defer.o \
Dustin Brown05a0658f2019-03-05 11:27:38 -0800597 $(QDF_LINUX_OBJ_DIR)/qdf_delayed_work.o \
Dustin Brownebb16d12018-11-29 17:52:07 -0800598 $(QDF_LINUX_OBJ_DIR)/qdf_event.o \
599 $(QDF_LINUX_OBJ_DIR)/qdf_file.o \
600 $(QDF_LINUX_OBJ_DIR)/qdf_idr.o \
601 $(QDF_LINUX_OBJ_DIR)/qdf_list.o \
602 $(QDF_LINUX_OBJ_DIR)/qdf_lock.o \
603 $(QDF_LINUX_OBJ_DIR)/qdf_mc_timer.o \
604 $(QDF_LINUX_OBJ_DIR)/qdf_mem.o \
605 $(QDF_LINUX_OBJ_DIR)/qdf_nbuf.o \
Dustin Brown9c49a332019-03-05 11:27:38 -0800606 $(QDF_LINUX_OBJ_DIR)/qdf_periodic_work.o \
Dustin Browndc789022019-02-05 12:51:49 -0800607 $(QDF_LINUX_OBJ_DIR)/qdf_status.o \
Dustin Brownebb16d12018-11-29 17:52:07 -0800608 $(QDF_LINUX_OBJ_DIR)/qdf_threads.o \
609 $(QDF_LINUX_OBJ_DIR)/qdf_trace.o \
Dustin Brownebb16d12018-11-29 17:52:07 -0800610 $(QDF_OBJ_DIR)/qdf_flex_mem.o \
611 $(QDF_OBJ_DIR)/qdf_parse.o \
612 $(QDF_OBJ_DIR)/qdf_platform.o \
613 $(QDF_OBJ_DIR)/qdf_str.o \
Dustin Brownd315c452018-11-27 11:28:48 -0800614 $(QDF_OBJ_DIR)/qdf_talloc.o \
Dustin Brownebb16d12018-11-29 17:52:07 -0800615 $(QDF_OBJ_DIR)/qdf_types.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800616
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700617ifeq ($(CONFIG_WLAN_DEBUGFS), y)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700618QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_debugfs.o
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700619endif
620
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700621ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairamb9484f32018-02-22 17:16:14 +0530622QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_ipa.o
623endif
624
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700625# enable CPU hotplug support if SMP is enabled
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700626ifeq ($(CONFIG_SMP), y)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700627 QDF_OBJS += $(QDF_OBJ_DIR)/qdf_cpuhp.o
628 QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_cpuhp.o
629endif
Wu Gao64b31482017-03-10 15:16:10 +0800630
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700631ifeq ($(CONFIG_LEAK_DETECTION), y)
Dustin Brown21a761d2017-11-15 16:37:00 -0800632 QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debug_domain.o
Dustin Brownee733ba2019-03-12 13:31:11 -0700633 QDF_OBJS += $(QDF_OBJ_DIR)/qdf_tracker.o
Dustin Brown21a761d2017-11-15 16:37:00 -0800634endif
635
Dustin Brownebb16d12018-11-29 17:52:07 -0800636ifeq ($(CONFIG_QDF_TEST), y)
Dustin Brown05a0658f2019-03-05 11:27:38 -0800637 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_delayed_work_test.o
Dustin Brown6fb7a752018-11-30 11:33:57 -0800638 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_hashtable_test.o
Dustin Brown9c49a332019-03-05 11:27:38 -0800639 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_periodic_work_test.o
Dustin Brown92acafe2019-02-15 17:17:10 -0800640 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_ptr_hash_test.o
Dustin Brown128e2d02019-02-15 12:59:07 -0800641 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_slist_test.o
Dustin Brownd315c452018-11-27 11:28:48 -0800642 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_talloc_test.o
Dustin Brownee733ba2019-03-12 13:31:11 -0700643 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_tracker_test.o
Dustin Brownebb16d12018-11-29 17:52:07 -0800644 QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_types_test.o
645endif
646
Dustin Brownd315c452018-11-27 11:28:48 -0800647cppflags-$(CONFIG_TALLOC_DEBUG) += -DWLAN_TALLOC_DEBUG
Dustin Brown05a0658f2019-03-05 11:27:38 -0800648cppflags-$(CONFIG_QDF_TEST) += -DWLAN_DELAYED_WORK_TEST
Dustin Brown6fb7a752018-11-30 11:33:57 -0800649cppflags-$(CONFIG_QDF_TEST) += -DWLAN_HASHTABLE_TEST
Dustin Brown9c49a332019-03-05 11:27:38 -0800650cppflags-$(CONFIG_QDF_TEST) += -DWLAN_PERIODIC_WORK_TEST
Dustin Brown92acafe2019-02-15 17:17:10 -0800651cppflags-$(CONFIG_QDF_TEST) += -DWLAN_PTR_HASH_TEST
Dustin Brown128e2d02019-02-15 12:59:07 -0800652cppflags-$(CONFIG_QDF_TEST) += -DWLAN_SLIST_TEST
Dustin Brownd315c452018-11-27 11:28:48 -0800653cppflags-$(CONFIG_QDF_TEST) += -DWLAN_TALLOC_TEST
Dustin Brownee733ba2019-03-12 13:31:11 -0700654cppflags-$(CONFIG_QDF_TEST) += -DWLAN_TRACKER_TEST
Dustin Brownebb16d12018-11-29 17:52:07 -0800655cppflags-$(CONFIG_QDF_TEST) += -DWLAN_TYPES_TEST
656
Rakshith Suresh Patkard9f4e612018-09-12 12:10:38 +0530657############ WBUFF ############
658WBUFF_OS_DIR := wbuff
659WBUFF_OS_INC_DIR := $(WBUFF_OS_DIR)/inc
660WBUFF_OS_SRC_DIR := $(WBUFF_OS_DIR)/src
661WBUFF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WBUFF_OS_SRC_DIR)
662
663WBUFF_INC := -I$(WLAN_COMMON_INC)/$(WBUFF_OS_INC_DIR) \
664
665ifeq ($(CONFIG_WLAN_WBUFF), y)
666WBUFF_OBJS += $(WBUFF_OBJ_DIR)/wbuff.o
667endif
668
Ashish Kumar Dhanotiya9c331b92018-08-09 20:25:02 +0530669##########QAL #######
670QAL_OS_DIR := qal
671QAL_OS_INC_DIR := $(QAL_OS_DIR)/inc
672QAL_OS_LINUX_SRC_DIR := $(QAL_OS_DIR)/linux/src
Ashish Kumar Dhanotiya9c331b92018-08-09 20:25:02 +0530673
674QAL_INC := -I$(WLAN_COMMON_INC)/$(QAL_OS_INC_DIR) \
675 -I$(WLAN_COMMON_INC)/$(QAL_OS_LINUX_SRC_DIR)
676
Ashish Kumar Dhanotiya9c331b92018-08-09 20:25:02 +0530677
Wu Gao64b31482017-03-10 15:16:10 +0800678##########OS_IF #######
679OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if
680
Wu Gao637d58a2018-12-08 10:37:34 +0800681OS_IF_INC += -I$(WLAN_COMMON_INC)/os_if/linux \
Wu Gao64b31482017-03-10 15:16:10 +0800682 -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800683 -I$(WLAN_COMMON_INC)/os_if/linux/spectral/inc \
Harprit Chhabada6c641ba2018-06-28 14:45:10 -0700684 -I$(WLAN_COMMON_INC)/os_if/linux/crypto/inc
Wu Gao64b31482017-03-10 15:16:10 +0800685
Wu Gao637d58a2018-12-08 10:37:34 +0800686OS_IF_OBJ += $(OS_IF_DIR)/linux/wlan_osif_request_manager.o \
Harprit Chhabada6c641ba2018-06-28 14:45:10 -0700687 $(OS_IF_DIR)/linux/crypto/src/wlan_nl_to_crypto_params.o
Sandeep Puligillafdd201e2017-02-02 18:43:46 -0800688
Kiran Kumar Lokere8dbd85a2018-11-14 17:51:41 -0800689ifeq ($(CONFIG_CRYPTO_COMPONENT), y)
690OS_IF_OBJ += $(OS_IF_DIR)/linux/crypto/src/wlan_cfg80211_crypto.o
691endif
692
Frank Liu65b17d92016-11-23 15:58:44 +0800693############ UMAC_DISP ############
694UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
695UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
696UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
697UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
698
699UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
700
701UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
702
Abhishek Singh9be07e22017-02-21 10:59:57 +0530703############# UMAC_SCAN ############
704UMAC_SCAN_DIR := umac/scan
705UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc
706UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src
707UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530708UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc
Abhishek Singh9be07e22017-02-21 10:59:57 +0530709
710UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR)
711UMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \
Paul Zhanga05a0252018-01-22 11:08:21 +0800712 $(UMAC_SCAN_CORE_DIR)/wlan_scan_11d.o \
Abhishek Singh82571c82017-11-24 12:12:19 +0530713 $(UMAC_SCAN_CORE_DIR)/wlan_scan_bss_score.o \
714 $(UMAC_SCAN_CORE_DIR)/wlan_scan_filter.o \
Abhishek Singh9be07e22017-02-21 10:59:57 +0530715 $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \
716 $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \
717 $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \
718 $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \
Harprit Chhabada4691a472018-12-07 11:22:48 -0800719 $(UMAC_SCAN_DISP_DIR)/wlan_scan_api.o \
Abhishek Singh310503c2017-03-07 11:19:10 +0530720 $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \
721 $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \
722 $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \
723 $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530724
Harprit Chhabadae8155d32018-08-22 16:19:34 -0700725ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
726UMAC_SCAN_OBJS += $(UMAC_SCAN_DISP_DIR)/wlan_extscan_api.o
727endif
728
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800729############# UMAC_SPECTRAL_SCAN ############
730UMAC_SPECTRAL_DIR := spectral
731UMAC_SPECTRAL_DISP_INC_DIR := $(UMAC_SPECTRAL_DIR)/dispatcher/inc
732UMAC_SPECTRAL_CORE_INC_DIR := $(UMAC_SPECTRAL_DIR)/core
733UMAC_SPECTRAL_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/core
734UMAC_SPECTRAL_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/dispatcher/src
735UMAC_TARGET_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/target_if/spectral
736
Sandeep Puligilla019a1bd2018-02-04 22:57:44 -0800737UMAC_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_DISP_INC_DIR) \
738 -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_CORE_INC_DIR) \
739 -I$(WLAN_COMMON_INC)/target_if/direct_buf_rx/inc
Sandeep Puligilla8e89d572018-04-02 18:07:45 -0700740ifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y)
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800741UMAC_SPECTRAL_OBJS := $(UMAC_SPECTRAL_CORE_DIR)/spectral_offload.o \
742 $(UMAC_SPECTRAL_CORE_DIR)/spectral_common.o \
743 $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_ucfg_api.o \
744 $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_utils_api.o \
745 $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_tgt_api.o \
746 $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/wlan_cfg80211_spectral.o \
Sandeep Puligilla019a1bd2018-02-04 22:57:44 -0800747 $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/os_if_spectral_netlink.o \
Sandeep Puligilla342d2a62017-12-12 15:40:00 -0800748 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_netlink.o \
749 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_phyerr.o \
750 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral.o \
751 $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_sim.o
Sandeep Puligilla8e89d572018-04-02 18:07:45 -0700752endif
Himanshu Agarwalb229a142017-12-21 10:16:45 +0530753############# UMAC_GREEN_AP ############
754UMAC_GREEN_AP_DIR := umac/green_ap
755UMAC_GREEN_AP_DISP_INC_DIR := $(UMAC_GREEN_AP_DIR)/dispatcher/inc
756UMAC_GREEN_AP_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/core/src
757UMAC_GREEN_AP_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/dispatcher/src
758UMAC_TARGET_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/target_if/green_ap/inc
759
760UMAC_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_GREEN_AP_DISP_INC_DIR)
761UMAC_GREEN_AP_OBJS := $(UMAC_GREEN_AP_CORE_DIR)/wlan_green_ap_main.o \
762 $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_api.o \
763 $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_ucfg_api.o \
764 $(WLAN_COMMON_ROOT)/target_if/green_ap/src/target_if_green_ap.o
Jeff Johnson8fba4d72018-04-08 08:46:04 -0700765
Varun Reddy Yeturu29044cd2018-06-28 14:03:10 -0700766############# WLAN_CONV_CRYPTO_SUPPORTED ############
767UMAC_CRYPTO_DIR := umac/cmn_services/crypto
768UMAC_CRYPTO_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_CRYPTO_DIR)/src
769UMAC_CRYPTO_INC := -I$(WLAN_COMMON_INC)/$(UMAC_CRYPTO_DIR)/inc \
770 -I$(WLAN_COMMON_INC)/$(UMAC_CRYPTO_DIR)/src
771UMAC_CRYPTO_OBJS := $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_global_api.o \
Kiran Kumar Lokere8dbd85a2018-11-14 17:51:41 -0800772 $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_ucfg_api.o \
Varun Reddy Yeturu29044cd2018-06-28 14:03:10 -0700773 $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_main.o \
774 $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_obj_mgr.o \
775 $(UMAC_CRYPTO_CORE_DIR)/wlan_crypto_param_handling.o
776
Ryan Hsuc8b27a42018-01-02 13:57:56 -0800777############# FTM CORE ############
778FTM_CORE_DIR := ftm
779TARGET_IF_FTM_DIR := target_if/ftm
780OS_IF_LINUX_FTM_DIR := os_if/linux/ftm
781
782FTM_CORE_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/core/src
783FTM_DISP_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/dispatcher/src
784TARGET_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(TARGET_IF_FTM_DIR)/src
785OS_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(OS_IF_LINUX_FTM_DIR)/src
786
787FTM_CORE_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/core/src
788FTM_DISP_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/dispatcher/inc
789TARGET_IF_FTM_INC := $(WLAN_COMMON_INC)/$(TARGET_IF_FTM_DIR)/inc
790OS_IF_FTM_INC := $(WLAN_COMMON_INC)/$(OS_IF_LINUX_FTM_DIR)/inc
791
792FTM_INC := -I$(FTM_DISP_INC) \
793 -I$(FTM_CORE_INC) \
794 -I$(OS_IF_FTM_INC) \
795 -I$(TARGET_IF_FTM_INC)
796
Ryan Hsu6e9db0b2018-06-01 10:45:51 -0700797ifeq ($(CONFIG_QCA_WIFI_FTM), y)
Ryan Hsuc8b27a42018-01-02 13:57:56 -0800798FTM_OBJS := $(FTM_DISP_SRC)/wlan_ftm_init_deinit.o \
799 $(FTM_DISP_SRC)/wlan_ftm_ucfg_api.o \
800 $(FTM_CORE_SRC)/wlan_ftm_svc.o \
Ryan Hsuc8b27a42018-01-02 13:57:56 -0800801 $(TARGET_IF_FTM_SRC)/target_if_ftm.o
802
Ryan Hsu6e9db0b2018-06-01 10:45:51 -0700803ifeq ($(QCA_WIFI_FTM_NL80211), y)
804FTM_OBJS += $(OS_IF_FTM_SRC)/wlan_cfg80211_ftm.o
805endif
806
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700807ifeq ($(CONFIG_LINUX_QCMBR), y)
Ryan Hsuc8b27a42018-01-02 13:57:56 -0800808FTM_OBJS += $(OS_IF_FTM_SRC)/wlan_ioctl_ftm.o
809endif
Himanshu Agarwalb229a142017-12-21 10:16:45 +0530810
Ryan Hsu6e9db0b2018-06-01 10:45:51 -0700811endif
812
Abhishek Singh9be07e22017-02-21 10:59:57 +0530813############# UMAC_CMN_SERVICES ############
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530814UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
815 -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
816UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530817
Dhanashri Atre170855e2016-12-15 13:26:54 -0800818ifeq ($(CONFIG_WLAN_LRO), y)
Dustin Browna2dcb5f2017-10-20 17:36:19 -0700819QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_lro.o
Dhanashri Atre170855e2016-12-15 13:26:54 -0800820endif
821
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800822############ CDS (Connectivity driver services) ############
823CDS_DIR := core/cds
824CDS_INC_DIR := $(CDS_DIR)/inc
825CDS_SRC_DIR := $(CDS_DIR)/src
826
827CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
828 -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
829
830CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800831 $(CDS_SRC_DIR)/cds_reg_service.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800832 $(CDS_SRC_DIR)/cds_packet.o \
833 $(CDS_SRC_DIR)/cds_regdomain.o \
834 $(CDS_SRC_DIR)/cds_sched.o \
Krunal Sonid32c6bc2016-10-18 18:00:21 -0700835 $(CDS_SRC_DIR)/cds_utils.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800836
837
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530838###### UMAC OBJMGR ########
839UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
840
841UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
842 -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
843 -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \
844 -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc
845
846UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
847 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
848 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
849 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
850 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
851
Vignesh Viswanathan45fc4b02018-02-06 11:30:48 +0530852ifeq ($(CONFIG_WLAN_OBJMGR_DEBUG), y)
853UMAC_OBJMGR_OBJS += $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_debug.o
854endif
855
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530856########### UMAC MGMT TXRX ##########
857UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
858
Himanshu Agarwal795b7f72017-01-17 21:19:43 +0530859UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530860
861UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
862 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
863 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
864
Mukul Sharmac5de6772017-01-05 14:32:36 +0530865########## POWER MANAGEMENT OFFLOADS (PMO) ##########
Rajeev Kumarf46083e2017-07-17 17:48:16 -0700866PMO_DIR := components/pmo
Mukul Sharmad75a6672017-06-22 15:40:53 +0530867PMO_INC := -I$(WLAN_ROOT)/$(PMO_DIR)/core/inc \
868 -I$(WLAN_ROOT)/$(PMO_DIR)/core/src \
869 -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/inc \
870 -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/src \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530871
Rajeev Kumar6bdee8e2018-04-18 17:36:05 -0700872ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
Mukul Sharmac5de6772017-01-05 14:32:36 +0530873PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \
Dustin Brownf1d27802018-03-01 17:28:07 -0800874 $(PMO_DIR)/core/src/wlan_pmo_apf.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530875 $(PMO_DIR)/core/src/wlan_pmo_arp.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530876 $(PMO_DIR)/core/src/wlan_pmo_gtk.o \
877 $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \
878 $(PMO_DIR)/core/src/wlan_pmo_static_config.o \
879 $(PMO_DIR)/core/src/wlan_pmo_wow.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530880 $(PMO_DIR)/core/src/wlan_pmo_lphb.o \
881 $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700882 $(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530883 $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \
884 $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \
885 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530886 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \
887 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \
888 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530889 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
890 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +0530891 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700892 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \
Rachit Kankane0cf4d4f2018-08-01 14:27:44 +0530893
894ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
895PMO_OBJS += $(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530896 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o
Rajeev Kumar6bdee8e2018-04-18 17:36:05 -0700897endif
Rachit Kankane0cf4d4f2018-08-01 14:27:44 +0530898endif
Mukul Sharmac5de6772017-01-05 14:32:36 +0530899
Qiwei Cai1083f5b2018-07-02 19:10:11 +0800900ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
901PMO_OBJS += $(PMO_DIR)/core/src/wlan_pmo_ns.o \
902 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o
903endif
904
Nachiket Kukade98f562a2017-12-15 12:18:07 +0530905########## DISA (ENCRYPTION TEST) ##########
906
907DISA_DIR := components/disa
908DISA_INC := -I$(WLAN_ROOT)/$(DISA_DIR)/core/inc \
909 -I$(WLAN_ROOT)/$(DISA_DIR)/dispatcher/inc
910
911ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
912DISA_OBJS := $(DISA_DIR)/core/src/wlan_disa_main.o \
913 $(DISA_DIR)/dispatcher/src/wlan_disa_obj_mgmt_api.o \
914 $(DISA_DIR)/dispatcher/src/wlan_disa_tgt_api.o \
915 $(DISA_DIR)/dispatcher/src/wlan_disa_ucfg_api.o
916endif
917
Zhang Qian47e22ce2018-01-04 15:38:38 +0800918######## OCB ##############
919OCB_DIR := components/ocb
920OCB_INC := -I$(WLAN_ROOT)/$(OCB_DIR)/core/inc \
921 -I$(WLAN_ROOT)/$(OCB_DIR)/dispatcher/inc
922
923ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
924OCB_OBJS := $(OCB_DIR)/dispatcher/src/wlan_ocb_ucfg_api.o \
925 $(OCB_DIR)/dispatcher/src/wlan_ocb_tgt_api.o \
926 $(OCB_DIR)/core/src/wlan_ocb_main.o
927endif
928
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530929######## IPA ##############
930IPA_DIR := components/ipa
931IPA_INC := -I$(WLAN_ROOT)/$(IPA_DIR)/core/inc \
932 -I$(WLAN_ROOT)/$(IPA_DIR)/dispatcher/inc
933
Jeff Johnsoneadeb932018-04-07 15:32:36 -0700934ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530935IPA_OBJS := $(IPA_DIR)/dispatcher/src/wlan_ipa_ucfg_api.o \
936 $(IPA_DIR)/dispatcher/src/wlan_ipa_obj_mgmt_api.o \
937 $(IPA_DIR)/dispatcher/src/wlan_ipa_tgt_api.o \
Sravan Kumar Kairamd01b4452018-03-07 17:37:09 +0530938 $(IPA_DIR)/core/src/wlan_ipa_main.o \
Sravan Kumar Kairam2e7aae92018-03-06 19:32:49 +0530939 $(IPA_DIR)/core/src/wlan_ipa_core.o \
Sravan Kumar Kairam271fab22018-03-07 18:57:41 +0530940 $(IPA_DIR)/core/src/wlan_ipa_stats.o \
Sravan Kumar Kairam2e7aae92018-03-06 19:32:49 +0530941 $(IPA_DIR)/core/src/wlan_ipa_rm.o
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +0530942endif
943
Sourav Mohapatra113685f2018-08-29 14:21:55 +0530944######## FWOL ##########
Paul Zhangc9dbaee2019-06-23 22:07:31 +0800945FWOL_CORE_INC := components/fw_offload/core/inc
946FWOL_CORE_SRC := components/fw_offload/core/src
947FWOL_DISPATCHER_INC := components/fw_offload/dispatcher/inc
948FWOL_DISPATCHER_SRC := components/fw_offload/dispatcher/src
949FWOL_TARGET_IF_INC := components/target_if/fw_offload/inc
950FWOL_TARGET_IF_SRC := components/target_if/fw_offload/src
951FWOL_OS_IF_INC := os_if/fw_offload/inc
952FWOL_OS_IF_SRC := os_if/fw_offload/src
Sourav Mohapatra113685f2018-08-29 14:21:55 +0530953
Paul Zhangc9dbaee2019-06-23 22:07:31 +0800954FWOL_INC := -I$(WLAN_ROOT)/$(FWOL_CORE_INC) \
955 -I$(WLAN_ROOT)/$(FWOL_DISPATCHER_INC) \
956 -I$(WLAN_ROOT)/$(FWOL_TARGET_IF_INC) \
957 -I$(WLAN_ROOT)/$(FWOL_OS_IF_INC)
958
959FWOL_OBJS := $(FWOL_CORE_SRC)/wlan_fw_offload_main.o \
960 $(FWOL_DISPATCHER_SRC)/wlan_fwol_ucfg_api.o \
961 $(FWOL_DISPATCHER_SRC)/wlan_fwol_tgt_api.o \
962 $(FWOL_TARGET_IF_SRC)/target_if_fwol.o \
963 $(FWOL_OS_IF_SRC)/os_if_fwol.o
Sourav Mohapatra113685f2018-08-29 14:21:55 +0530964
Abhishek Singhed197482018-09-05 13:22:02 +0530965######## SM FRAMEWORK ##############
966UMAC_SM_DIR := umac/cmn_services/sm_engine
967UMAC_SM_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SM_DIR)/inc
968
969UMAC_SM_OBJS := $(WLAN_COMMON_ROOT)/$(UMAC_SM_DIR)/src/wlan_sm_engine.o
970
971ifeq ($(CONFIG_SM_ENG_HIST), y)
972UMAC_SM_OBJS += $(WLAN_COMMON_ROOT)/$(UMAC_SM_DIR)/src/wlan_sm_engine_dbg.o
973endif
974
975######## COMMON MLME ##############
976UMAC_MLME_INC := -I$(WLAN_COMMON_INC)/umac/mlme \
977 -I$(WLAN_COMMON_INC)/umac/mlme/mlme_objmgr/dispatcher/inc \
Abhishek Singhd5cf22d2019-01-08 19:51:09 +0530978 -I$(WLAN_COMMON_INC)/umac/mlme/vdev_mgr/dispatcher/inc \
Arun Kumar Khandavallia43590e2019-08-26 17:13:25 +0530979 -I$(WLAN_COMMON_INC)/umac/mlme/pdev_mgr/dispatcher/inc \
980 -I$(WLAN_COMMON_INC)/umac/mlme/psoc_mgr/dispatcher/inc
Abhishek Singhed197482018-09-05 13:22:02 +0530981
Abhishek Singhed197482018-09-05 13:22:02 +0530982UMAC_MLME_OBJS := $(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_vdev_mlme_main.o \
983 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/core/src/vdev_mlme_sm.o \
Abhishek Singhd5cf22d2019-01-08 19:51:09 +0530984 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mlme_api.o \
Abhishek Ambure2ac5dec2019-05-27 14:56:56 +0530985 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/core/src/vdev_mgr_ops.o \
986 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_tgt_if_rx_api.o \
987 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_tgt_if_tx_api.o \
988 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_ucfg_api.o \
989 $(WLAN_COMMON_ROOT)/umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mgr_utils_api.o \
Abhishek Singhd5cf22d2019-01-08 19:51:09 +0530990 $(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_cmn_mlme_main.o \
991 $(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_pdev_mlme_main.o \
Arun Kumar Khandavallia43590e2019-08-26 17:13:25 +0530992 $(WLAN_COMMON_ROOT)/umac/mlme/pdev_mgr/dispatcher/src/wlan_pdev_mlme_api.o \
993 $(WLAN_COMMON_ROOT)/umac/mlme/mlme_objmgr/dispatcher/src/wlan_psoc_mlme_main.o \
994 $(WLAN_COMMON_ROOT)/umac/mlme/psoc_mgr/dispatcher/src/wlan_psoc_mlme_api.o
Sandeep Puligillac5609d52018-05-17 19:23:41 -0700995
996######## MLME ##############
997MLME_DIR := components/mlme
998MLME_INC := -I$(WLAN_ROOT)/$(MLME_DIR)/core/inc \
999 -I$(WLAN_ROOT)/$(MLME_DIR)/dispatcher/inc
1000
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +05301001MLME_OBJS := $(MLME_DIR)/core/src/wlan_mlme_main.o \
Vignesh Viswanathana0921c42018-09-04 19:03:35 +05301002 $(MLME_DIR)/dispatcher/src/wlan_mlme_api.o \
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +05301003 $(MLME_DIR)/dispatcher/src/wlan_mlme_ucfg_api.o
Sandeep Puligillac5609d52018-05-17 19:23:41 -07001004
Sandeep Puligillab7beb472018-08-13 22:54:20 -07001005MLME_OBJS += $(MLME_DIR)/core/src/wlan_mlme_vdev_mgr_interface.o
Sandeep Puligillab7beb472018-08-13 22:54:20 -07001006
gaurank kathpalia3ebc17b2019-05-29 10:25:09 +05301007
1008####### BLACKLIST_MGR ########
1009
1010BLM_DIR := components/blacklist_mgr
1011BLM_INC := -I$(WLAN_ROOT)/$(BLM_DIR)/core/inc \
1012 -I$(WLAN_ROOT)/$(BLM_DIR)/dispatcher/inc
1013ifeq ($(CONFIG_FEATURE_BLACKLIST_MGR), y)
1014BLM_OBJS := $(BLM_DIR)/core/src/wlan_blm_main.o \
1015 $(BLM_DIR)/core/src/wlan_blm_core.o \
1016 $(BLM_DIR)/dispatcher/src/wlan_blm_ucfg_api.o \
1017 $(BLM_DIR)/dispatcher/src/wlan_blm_tgt_api.o
1018endif
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05301019########## ACTION OUI ##########
1020
1021ACTION_OUI_DIR := components/action_oui
1022ACTION_OUI_INC := -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/core/inc \
1023 -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/dispatcher/inc
1024
1025ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
1026ACTION_OUI_OBJS := $(ACTION_OUI_DIR)/core/src/wlan_action_oui_main.o \
1027 $(ACTION_OUI_DIR)/core/src/wlan_action_oui_parse.o \
1028 $(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_tgt_api.o \
1029 $(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_ucfg_api.o
1030endif
1031
Mukul Sharmad75a6672017-06-22 15:40:53 +05301032########## CLD TARGET_IF #######
Rajeev Kumarf46083e2017-07-17 17:48:16 -07001033CLD_TARGET_IF_DIR := components/target_if
Mukul Sharmad75a6672017-06-22 15:40:53 +05301034
1035CLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \
Zhang Qian47e22ce2018-01-04 15:38:38 +08001036 -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src
Mukul Sharmad75a6672017-06-22 15:40:53 +05301037
Wu Gaoa9d336b2018-05-30 14:48:04 +08001038ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
Mukul Sharmad75a6672017-06-22 15:40:53 +05301039CLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
1040 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
1041 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \
1042 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
1043 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
1044 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301045 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
1046 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
Zhang Qian47e22ce2018-01-04 15:38:38 +08001047 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o
Qiwei Cai1083f5b2018-07-02 19:10:11 +08001048ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y)
1049CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o
1050endif
Rachit Kankane0cf4d4f2018-08-01 14:27:44 +05301051ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y)
1052CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o
1053endif
Wu Gaoa9d336b2018-05-30 14:48:04 +08001054endif
Zhang Qian47e22ce2018-01-04 15:38:38 +08001055
1056ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1057CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ocb/inc
1058CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ocb/src/target_if_ocb.o
1059endif
Mukul Sharmad75a6672017-06-22 15:40:53 +05301060
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301061ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
1062CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/disa/inc
1063CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/disa/src/target_if_disa.o
1064endif
1065
gaurank kathpalia3ebc17b2019-05-29 10:25:09 +05301066ifeq ($(CONFIG_FEATURE_BLACKLIST_MGR), y)
1067CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/blacklist_mgr/inc
1068CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/blacklist_mgr/src/target_if_blm.o
1069endif
1070
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001071ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301072CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ipa/inc
1073CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ipa/src/target_if_ipa.o
1074endif
1075
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05301076ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
1077CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/action_oui/inc
1078CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/action_oui/src/target_if_action_oui.o
1079endif
1080
Wu Gao64b31482017-03-10 15:16:10 +08001081############## UMAC P2P ###########
Wu Gao637d58a2018-12-08 10:37:34 +08001082P2P_DIR := components/p2p
1083P2P_CORE_OBJ_DIR := $(P2P_DIR)/core/src
Wu Gao64b31482017-03-10 15:16:10 +08001084P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
1085P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
Wu Gao637d58a2018-12-08 10:37:34 +08001086P2P_DISPATCHER_OBJ_DIR := $(P2P_DISPATCHER_DIR)/src
1087P2P_OS_IF_INC := os_if/p2p/inc
1088P2P_OS_IF_SRC := os_if/p2p/src
1089P2P_TARGET_IF_INC := components/target_if/p2p/inc
1090P2P_TARGET_IF_SRC := components/target_if/p2p/src
1091P2P_INC := -I$(WLAN_ROOT)/$(P2P_DISPATCHER_INC_DIR) \
1092 -I$(WLAN_ROOT)/$(P2P_OS_IF_INC) \
1093 -I$(WLAN_ROOT)/$(P2P_TARGET_IF_INC)
1094P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
1095 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
1096 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_cfg.o \
Pragaspathi Thilagarajb3472f02019-06-04 14:10:44 +05301097 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_api.o \
Wu Gao637d58a2018-12-08 10:37:34 +08001098 $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
1099 $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
1100 $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o \
1101 $(P2P_OS_IF_SRC)/wlan_cfg80211_p2p.o \
1102 $(P2P_TARGET_IF_SRC)/target_if_p2p.o
Wu Gao64b31482017-03-10 15:16:10 +08001103
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001104###### UMAC POLICY MGR ########
Wu Gaod6b5e402018-12-03 22:09:24 +08001105POLICY_MGR_DIR := components/cmn_services/policy_mgr
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001106
Wu Gaod6b5e402018-12-03 22:09:24 +08001107POLICY_MGR_INC := -I$(WLAN_ROOT)/$(POLICY_MGR_DIR)/inc \
1108 -I$(WLAN_ROOT)/$(POLICY_MGR_DIR)/src
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001109
Wu Gaod6b5e402018-12-03 22:09:24 +08001110POLICY_MGR_OBJS := $(POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
1111 $(POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
1112 $(POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
1113 $(POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
1114 $(POLICY_MGR_DIR)/src/wlan_policy_mgr_ucfg.o \
1115 $(POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001116
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001117###### UMAC TDLS ########
Wu Gao5f793402018-12-08 11:04:00 +08001118TDLS_DIR := components/tdls
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001119
Wu Gao5f793402018-12-08 11:04:00 +08001120TDLS_OS_IF_INC := os_if/tdls/inc
1121TDLS_OS_IF_SRC := os_if/tdls/src
1122TDLS_TARGET_IF_INC := components/target_if/tdls/inc
1123TDLS_TARGET_IF_SRC := components/target_if/tdls/src
1124TDLS_INC := -I$(WLAN_ROOT)/$(TDLS_DIR)/dispatcher/inc \
1125 -I$(WLAN_ROOT)/$(TDLS_OS_IF_INC) \
1126 -I$(WLAN_ROOT)/$(TDLS_TARGET_IF_INC)
Jeff Johnson74c6bb22019-02-15 10:15:07 -08001127
Jeff Johnson2de58792019-02-08 07:49:17 -08001128ifeq ($(CONFIG_QCOM_TDLS), y)
Wu Gao5f793402018-12-08 11:04:00 +08001129TDLS_OBJS := $(TDLS_DIR)/core/src/wlan_tdls_main.o \
1130 $(TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \
1131 $(TDLS_DIR)/core/src/wlan_tdls_peer.o \
1132 $(TDLS_DIR)/core/src/wlan_tdls_mgmt.o \
1133 $(TDLS_DIR)/core/src/wlan_tdls_ct.o \
1134 $(TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \
1135 $(TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \
1136 $(TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \
1137 $(TDLS_DIR)/dispatcher/src/wlan_tdls_cfg.o \
1138 $(TDLS_OS_IF_SRC)/wlan_cfg80211_tdls.o \
1139 $(TDLS_TARGET_IF_SRC)/target_if_tdls.o
Jeff Johnson74c6bb22019-02-15 10:15:07 -08001140endif
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001141
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001142########### BMI ###########
1143BMI_DIR := core/bmi
1144
1145BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
1146
Qiwei Caia01a9622018-07-11 10:02:03 +08001147ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001148BMI_OBJS := $(BMI_DIR)/src/bmi.o \
Qiwei Caia01a9622018-07-11 10:02:03 +08001149 $(BMI_DIR)/src/bmi_1.o \
Poddar, Siddarthef1f3022016-05-10 20:10:43 +05301150 $(BMI_DIR)/src/ol_fw.o \
1151 $(BMI_DIR)/src/ol_fw_common.o
Qiwei Caia01a9622018-07-11 10:02:03 +08001152endif
Govind Singh0fea23a2016-03-18 12:59:27 +05301153
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301154########## TARGET_IF #######
1155TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
1156
1157TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
Rajeev Kumarda2444c2017-01-10 22:42:07 -08001158 -I$(WLAN_COMMON_INC)/target_if/core/src \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +05301159 -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
Kiran Kumar Lokere8dbd85a2018-11-14 17:51:41 -08001160 -I$(WLAN_COMMON_INC)/target_if/crypto/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001161 -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
hqu2aeaa672019-07-11 17:37:03 +08001162 -I$(WLAN_COMMON_INC)/target_if/mlme/vdev_mgr/inc \
Arun Kumar Khandavalli7b6bee72019-11-14 14:19:20 +05301163 -I$(WLAN_COMMON_INC)/target_if/dispatcher/inc \
1164 -I$(WLAN_COMMON_INC)/target_if/mlme/psoc/inc
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301165
Rajeev Kumarda2444c2017-01-10 22:42:07 -08001166TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001167 $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05301168 $(TARGET_IF_DIR)/regulatory/src/target_if_reg_lte.o \
1169 $(TARGET_IF_DIR)/regulatory/src/target_if_reg_11d.o \
Arunk Khandavallia6305a32018-01-25 11:19:18 +05301170 $(TARGET_IF_DIR)/init_deinit/src/init_cmd_api.o \
Sourav Mohapatracf632572018-04-02 11:01:35 +05301171 $(TARGET_IF_DIR)/init_deinit/src/init_deinit_lmac.o \
Arunk Khandavallia6305a32018-01-25 11:19:18 +05301172 $(TARGET_IF_DIR)/init_deinit/src/init_event_handler.o \
1173 $(TARGET_IF_DIR)/init_deinit/src/service_ready_util.o \
Abhishek Ambure2ac5dec2019-05-27 14:56:56 +05301174 $(TARGET_IF_DIR)/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.o \
Arun Kumar Khandavalli7b6bee72019-11-14 14:19:20 +05301175 $(TARGET_IF_DIR)/mlme/vdev_mgr/src/target_if_vdev_mgr_rx_ops.o \
1176 $(TARGET_IF_DIR)/mlme/psoc/src/target_if_psoc_timer_tx_ops.o
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301177
sandeep puligilla4afcb112019-04-23 13:42:51 -07001178ifeq ($(CONFIG_FEATURE_VDEV_RSP_WAKELOCK), y)
Arun Kumar Khandavalli2f865fd2019-11-23 15:18:23 +05301179TARGET_IF_OBJ += $(TARGET_IF_DIR)/mlme/psoc/src/target_if_psoc_wake_lock.o
sandeep puligilla4afcb112019-04-23 13:42:51 -07001180endif
1181
Kiran Kumar Lokere8dbd85a2018-11-14 17:51:41 -08001182ifeq ($(CONFIG_CRYPTO_COMPONENT), y)
1183TARGET_IF_OBJ += $(TARGET_IF_DIR)/crypto/src/target_if_crypto.o
1184endif
1185
Mukul Sharmadad267e2017-02-04 13:25:34 +05301186########### GLOBAL_LMAC_IF ##########
1187GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
1188
1189GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
1190 -I$(WLAN_COMMON_INC)/global_lmac_if/src
1191
1192GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
1193
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001194########### WMI ###########
Govind Singh0fea23a2016-03-18 12:59:27 +05301195WMI_ROOT_DIR := wmi
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001196
Govind Singh0fea23a2016-03-18 12:59:27 +05301197WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
1198WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
1199WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001200
Govind Singh0fea23a2016-03-18 12:59:27 +05301201WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
1202
1203WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
1204 $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
1205 $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
1206 $(WMI_OBJ_DIR)/wmi_unified_api.o \
Abhishek Ambure2ac5dec2019-05-27 14:56:56 +05301207 $(WMI_OBJ_DIR)/wmi_unified_reg_api.o \
Abhishek Amburee8528972019-09-09 16:49:09 +05301208 $(WMI_OBJ_DIR)/wmi_unified_vdev_api.o \
1209 $(WMI_OBJ_DIR)/wmi_unified_vdev_tlv.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001210
Wu Gaoa9d336b2018-05-30 14:48:04 +08001211ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y)
1212WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o
Qiwei Caidcb73b02018-09-17 19:58:29 +08001213WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_tlv.o
Wu Gaoa9d336b2018-05-30 14:48:04 +08001214endif
1215
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +05301216ifeq ($(CONFIG_QCACLD_FEATURE_APF), y)
1217WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_apf_tlv.o
1218endif
1219
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05301220ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
1221WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_action_oui_tlv.o
1222endif
1223
Zhang Qian47e22ce2018-01-04 15:38:38 +08001224ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1225ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
1226WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_ut.o
1227endif
1228endif
1229
Wen Gong01a2c632018-04-11 18:34:55 +08001230ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
1231WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o
1232endif
1233
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -07001234ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
1235WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_api.o
1236WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_tlv.o
1237endif
1238
Qiwei Caidcb73b02018-09-17 19:58:29 +08001239ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1240WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_api.o
1241WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_tlv.o
1242endif
1243
Wen Gongbd949fc2018-05-21 18:35:13 +08001244ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y)
1245WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_api.o
1246WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_tlv.o
1247endif
1248
Paul Zhang37185672019-05-14 11:20:14 +08001249ifeq ($(CONFIG_FEATURE_INTEROP_ISSUES_AP), y)
1250WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_interop_issues_ap_api.o
1251WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_interop_issues_ap_tlv.o
1252endif
1253
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +05301254ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Qiwei Caidcb73b02018-09-17 19:58:29 +08001255WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_nan_api.o
1256WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_nan_tlv.o
1257endif
1258
1259ifeq ($(CONFIG_CONVERGED_P2P_ENABLE), y)
1260WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_p2p_api.o
1261WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_p2p_tlv.o
1262endif
1263
1264ifeq ($(CONFIG_WMI_ROAM_SUPPORT), y)
1265WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_roam_api.o
1266WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_roam_tlv.o
1267endif
1268
1269ifeq ($(CONFIG_WMI_CONCURRENCY_SUPPORT), y)
1270WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_concurrency_api.o
1271WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_concurrency_tlv.o
1272endif
1273
1274ifeq ($(CONFIG_WMI_STA_SUPPORT), y)
1275WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_sta_api.o
1276WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_sta_tlv.o
1277endif
1278
Harprit Chhabada253e36a2018-12-11 15:29:55 -08001279ifeq ($(CONFIG_WMI_BCN_OFFLOAD), y)
1280WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_bcn_api.o
Liangwei Dong03e080c2019-07-02 17:06:39 +08001281WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_bcn_tlv.o
Harprit Chhabada253e36a2018-12-11 15:29:55 -08001282endif
1283
Paul Zhangc9dbaee2019-06-23 22:07:31 +08001284ifeq ($(CONFIG_WLAN_FW_OFFLOAD), y)
1285WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_fwol_api.o
1286WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_fwol_tlv.o
1287endif
1288
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001289########### FWLOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001290FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001291
1292FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
1293
1294FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
1295
1296############ TXRX ############
1297TXRX_DIR := core/dp/txrx
1298TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
1299
Saket Jha99531502019-08-21 15:00:49 -07001300ifneq ($(CONFIG_LITHIUM), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001301TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
Saket Jha99531502019-08-21 15:00:49 -07001302 $(TXRX_DIR)/ol_cfg.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001303 $(TXRX_DIR)/ol_rx.o \
1304 $(TXRX_DIR)/ol_rx_fwd.o \
1305 $(TXRX_DIR)/ol_txrx.o \
1306 $(TXRX_DIR)/ol_rx_defrag.o \
1307 $(TXRX_DIR)/ol_tx_desc.o \
1308 $(TXRX_DIR)/ol_tx.o \
Tiger Yu81a80732019-10-17 18:03:38 +08001309 $(TXRX_DIR)/ol_rx_reorder_timeout.o \
1310 $(TXRX_DIR)/ol_rx_reorder.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001311 $(TXRX_DIR)/ol_rx_pn.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001312 $(TXRX_DIR)/ol_txrx_peer_find.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001313 $(TXRX_DIR)/ol_txrx_encap.o \
Nirav Shah52d85aa2018-04-26 14:03:00 +05301314 $(TXRX_DIR)/ol_tx_send.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001315
Nirav Shahbb8e47c2018-05-17 16:56:41 +05301316ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
Saket Jha99531502019-08-21 15:00:49 -07001317TXRX_OBJS += $(TXRX_DIR)/ol_txrx_event.o
Nirav Shahbb8e47c2018-05-17 16:56:41 +05301318endif
1319
Nirav Shah52d85aa2018-04-26 14:03:00 +05301320ifeq ($(CONFIG_LL_DP_SUPPORT), y)
1321
1322TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll.o
1323
1324ifeq ($(CONFIG_WLAN_FASTPATH), y)
1325TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_fastpath.o
1326else
1327TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_legacy.o
1328endif
1329
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001330ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1331TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
1332endif
1333
Nirav Shah52d85aa2018-04-26 14:03:00 +05301334endif #CONFIG_LL_DP_SUPPORT
1335
1336ifeq ($(CONFIG_HL_DP_SUPPORT), y)
1337TXRX_OBJS += $(TXRX_DIR)/ol_tx_hl.o
1338TXRX_OBJS += $(TXRX_DIR)/ol_tx_classify.o
1339TXRX_OBJS += $(TXRX_DIR)/ol_tx_sched.o
1340TXRX_OBJS += $(TXRX_DIR)/ol_tx_queue.o
1341endif #CONFIG_HL_DP_SUPPORT
1342
Nirav Shahc4aa1ab2018-04-21 12:38:44 +05301343ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY), y)
1344TXRX_OBJS += $(TXRX_DIR)/ol_txrx_legacy_flow_control.o
1345endif
1346
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001347ifeq ($(CONFIG_IPA_OFFLOAD), y)
Yun Parkb4f591d2017-03-29 15:51:01 -07001348TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o
1349endif
1350
Nirav Shah46fc6302018-04-21 12:49:28 +05301351ifeq ($(CONFIG_QCA_SUPPORT_TX_THROTTLE), y)
1352TXRX_OBJS += $(TXRX_DIR)/ol_tx_throttle.o
1353endif
Saket Jha99531502019-08-21 15:00:49 -07001354endif #LITHIUM
Nirav Shah46fc6302018-04-21 12:49:28 +05301355
Mohit Khanna70322002018-05-15 19:21:32 -07001356############ TXRX 3.0 ############
1357TXRX3.0_DIR := core/dp/txrx3.0
1358TXRX3.0_INC := -I$(WLAN_ROOT)/$(TXRX3.0_DIR)
1359TXRX3.0_OBJS := $(TXRX3.0_DIR)/dp_txrx.o \
1360 $(TXRX3.0_DIR)/dp_rx_thread.o
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001361ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001362############ DP 3.0 ############
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001363DP_INC := -I$(WLAN_COMMON_INC)/dp/inc \
1364 -I$(WLAN_COMMON_INC)/dp/wifi3.0 \
1365 -I$(WLAN_COMMON_INC)/target_if/dp/inc
Leo Chang5f7a1e02016-11-04 14:04:26 -07001366
1367DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
1368DP_OBJS := $(DP_SRC)/dp_main.o \
1369 $(DP_SRC)/dp_tx.o \
1370 $(DP_SRC)/dp_tx_desc.o \
1371 $(DP_SRC)/dp_rx.o \
1372 $(DP_SRC)/dp_rx_err.o \
1373 $(DP_SRC)/dp_htt.o \
1374 $(DP_SRC)/dp_peer.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001375 $(DP_SRC)/dp_rx_desc.o \
Ravi Joshi12665a02017-03-08 16:35:04 -08001376 $(DP_SRC)/dp_reo.o \
1377 $(DP_SRC)/dp_rx_mon_dest.o \
Ravi Joshic4a41082017-01-09 22:27:58 -08001378 $(DP_SRC)/dp_rx_mon_status.o \
Venkata Sharath Chandra Manchalabcdfdb12017-03-29 19:25:45 -07001379 $(DP_SRC)/dp_rx_defrag.o \
Sravan Kumar Kairamb8bdf522018-05-30 22:14:50 +05301380 $(DP_SRC)/dp_stats.o \
1381 $(WLAN_COMMON_ROOT)/target_if/dp/src/target_if_dp.o
Manjunathappa Prakash6c547362017-03-30 20:11:47 -07001382ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1383DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o
1384endif
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001385endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001386
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001387ifeq ($(CONFIG_IPA_OFFLOAD), y)
Yun Parkb4f591d2017-03-29 15:51:01 -07001388DP_OBJS += $(DP_SRC)/dp_ipa.o
1389endif
1390
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001391ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
Venkata Sharath Chandra Manchala1240fc72017-10-26 17:32:29 -07001392DP_OBJS += $(DP_SRC)/dp_wdi_event.o
1393endif
1394
Leo Chang5f7a1e02016-11-04 14:04:26 -07001395############ CFG ############
Ravi Joshid55b18a2017-02-17 10:48:14 -08001396WCFG_DIR := wlan_cfg
1397WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
1398WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
Nirav Shah9272dbb2018-07-18 12:01:39 +05301399
1400ifeq ($(CONFIG_LITHIUM), y)
Ravi Joshid55b18a2017-02-17 10:48:14 -08001401WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
Nirav Shah9272dbb2018-07-18 12:01:39 +05301402endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001403
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001404############ OL ############
1405OL_DIR := core/dp/ol
1406OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
1407
Dhanashri Atre12a08392016-02-17 13:10:34 -08001408############ CDP ############
1409CDP_ROOT_DIR := dp
1410CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
1411CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
1412
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001413############ PKTLOG ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001414PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001415PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
1416
1417PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
1418 $(PKTLOG_DIR)/pktlog_internal.o \
1419 $(PKTLOG_DIR)/linux_ac.o
1420
1421############ HTT ############
1422HTT_DIR := core/dp/htt
1423HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
1424
1425HTT_OBJS := $(HTT_DIR)/htt_tx.o \
1426 $(HTT_DIR)/htt.o \
1427 $(HTT_DIR)/htt_t2h.o \
1428 $(HTT_DIR)/htt_h2t.o \
1429 $(HTT_DIR)/htt_fw_stats.o \
1430 $(HTT_DIR)/htt_rx.o
1431
Nirav Shah73713f72018-05-17 14:50:41 +05301432ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
1433HTT_OBJS += $(HTT_DIR)/htt_monitor_rx.o
1434endif
Rajeev Kumar97767a02016-11-30 11:20:40 -08001435
Nirav Shah6ebfe242018-05-09 15:56:12 +05301436ifeq ($(CONFIG_LL_DP_SUPPORT), y)
1437HTT_OBJS += $(HTT_DIR)/htt_rx_ll.o
1438endif
1439
1440ifeq ($(CONFIG_HL_DP_SUPPORT), y)
1441HTT_OBJS += $(HTT_DIR)/htt_rx_hl.o
1442endif
1443
Rajeev Kumar97767a02016-11-30 11:20:40 -08001444############## INIT-DEINIT ###########
1445INIT_DEINIT_DIR := init_deinit/dispatcher
1446INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
1447INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
1448INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
1449INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
1450INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
1451
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001452############## REGULATORY ###########
1453REGULATORY_DIR := umac/regulatory
1454REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
1455REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
1456REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
1457REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
1458REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
1459REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
1460REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
1461REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05301462REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_build_chan_list.o \
1463 $(REG_CORE_OBJ_DIR)/reg_callbacks.o \
1464 $(REG_CORE_OBJ_DIR)/reg_db.o \
1465 $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
Ashish Kumar Dhanotiyaddeb4d72019-01-08 21:25:30 +05301466 $(REG_CORE_OBJ_DIR)/reg_utils.o \
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05301467 $(REG_CORE_OBJ_DIR)/reg_lte.o \
Ashish Kumar Dhanotiyaddeb4d72019-01-08 21:25:30 +05301468 $(REG_CORE_OBJ_DIR)/reg_offload_11d_scan.o \
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05301469 $(REG_CORE_OBJ_DIR)/reg_opclass.o \
1470 $(REG_CORE_OBJ_DIR)/reg_priv_objs.o \
1471 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
1472 $(REG_CORE_OBJ_DIR)/reg_services_common.o \
1473 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
1474 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
Liangwei Dong2fce7162018-08-24 01:07:22 -04001475ifeq ($(CONFIG_HOST_11D_SCAN), y)
1476REGULATORY_OBJS += $(REG_CORE_OBJ_DIR)/reg_host_11d.o
1477endif
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001478
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001479############## Control path common scheduler ##########
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001480SCHEDULER_DIR := scheduler
1481SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
1482SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
1483SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
1484SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
1485SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
1486 $(SCHEDULER_OBJ_DIR)/scheduler_core.o
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001487
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001488###### UMAC SERIALIZATION ########
1489UMAC_SER_DIR := umac/cmn_services/serialization
1490UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
1491UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
1492UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
Rajeev Kumar97767a02016-11-30 11:20:40 -08001493
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001494UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
Jianmin Zhuc2eae9c2018-08-24 16:59:09 +08001495UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001496 $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
1497 $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
Varun Reddy Yeturu35c07f92017-02-28 10:35:00 -08001498 $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
Jianmin Zhuc2eae9c2018-08-24 16:59:09 +08001499 $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o \
1500 $(UMAC_SER_OBJ_DIR)/wlan_serialization_internal.o \
1501 $(UMAC_SER_OBJ_DIR)/wlan_serialization_non_scan.o \
1502 $(UMAC_SER_OBJ_DIR)/wlan_serialization_queue.o \
1503 $(UMAC_SER_OBJ_DIR)/wlan_serialization_scan.o
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001504
1505###### WIFI POS ########
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001506WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
1507WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
1508WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
1509WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
1510WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
1511WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
1512
1513
1514ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1515WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
1516 $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
1517 $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
1518 $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
1519 $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
1520 $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o
1521endif
1522
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001523###### CP STATS ########
Naveen Rawat96a77d32018-01-12 15:26:14 -08001524CP_STATS_OS_IF_SRC := $(WLAN_COMMON_ROOT)/os_if/linux/cp_stats/src
1525CP_STATS_TGT_SRC := $(WLAN_COMMON_ROOT)/target_if/cp_stats/src
1526CP_STATS_CORE_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/core/src
1527CP_STATS_DISPATCHER_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/dispatcher/src
1528
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001529CP_STATS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/cp_stats/inc
1530CP_STATS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/cp_stats/inc
1531CP_STATS_DISPATCHER_INC := -I$(WLAN_COMMON_INC)/umac/cp_stats/dispatcher/inc
1532
Naveen Rawat96a77d32018-01-12 15:26:14 -08001533ifeq ($(CONFIG_CP_STATS), y)
1534CP_STATS_OBJS := $(CP_STATS_TGT_SRC)/target_if_mc_cp_stats.o \
1535 $(CP_STATS_CORE_SRC)/wlan_cp_stats_comp_handler.o \
1536 $(CP_STATS_CORE_SRC)/wlan_cp_stats_obj_mgr_handler.o \
Naveen Rawat96a77d32018-01-12 15:26:14 -08001537 $(CP_STATS_CORE_SRC)/wlan_cp_stats_ol_api.o \
1538 $(CP_STATS_OS_IF_SRC)/wlan_cfg80211_mc_cp_stats.o \
1539 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_utils_api.o \
1540 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_tgt_api.o \
1541 $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_ucfg_api.o
1542endif
1543
hquff302a92019-07-18 00:06:11 +08001544###### COMPONENT CP STATS ########
1545COMP_CP_STATS_DISPATCHER_INC := -I$(WLAN_ROOT)/components/cp_stats/dispatcher/inc
1546
Paul Zhang37185672019-05-14 11:20:14 +08001547###### INTEROP ISSUES AP ########
1548INTEROP_ISSUES_AP_OS_IF_SRC := os_if/interop_issues_ap/src
1549INTEROP_ISSUES_AP_TGT_SRC := components/target_if/interop_issues_ap/src
1550INTEROP_ISSUES_AP_CORE_SRC := components/interop_issues_ap/core/src
1551INTEROP_ISSUES_AP_DISPATCHER_SRC := components/interop_issues_ap/dispatcher/src
1552
1553INTEROP_ISSUES_AP_OS_IF_INC := -I$(WLAN_ROOT)/os_if/interop_issues_ap/inc
1554INTEROP_ISSUES_AP_TGT_INC := -I$(WLAN_ROOT)/components/target_if/interop_issues_ap/inc
1555INTEROP_ISSUES_AP_DISPATCHER_INC := -I$(WLAN_ROOT)/components/interop_issues_ap/dispatcher/inc
1556INTEROP_ISSUES_AP_CORE_INC := -I$(WLAN_ROOT)/components/interop_issues_ap/core/inc
1557
1558ifeq ($(CONFIG_FEATURE_INTEROP_ISSUES_AP), y)
1559INTEROP_ISSUES_AP_OBJS := $(INTEROP_ISSUES_AP_TGT_SRC)/target_if_interop_issues_ap.o \
1560 $(INTEROP_ISSUES_AP_CORE_SRC)/wlan_interop_issues_ap_api.o \
1561 $(INTEROP_ISSUES_AP_OS_IF_SRC)/wlan_cfg80211_interop_issues_ap.o \
1562 $(INTEROP_ISSUES_AP_DISPATCHER_SRC)/wlan_interop_issues_ap_tgt_api.o \
1563 $(INTEROP_ISSUES_AP_DISPATCHER_SRC)/wlan_interop_issues_ap_ucfg_api.o
1564endif
1565
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001566######################### NAN #########################
Nachiket Kukade63bb63d2018-11-21 14:42:14 +05301567NAN_CORE_DIR := components/nan/core/src
1568NAN_CORE_INC := -I$(WLAN_ROOT)/components/nan/core/inc
1569NAN_UCFG_DIR := components/nan/dispatcher/src
1570NAN_UCFG_INC := -I$(WLAN_ROOT)/components/nan/dispatcher/inc
1571NAN_TGT_DIR := components/target_if/nan/src
1572NAN_TGT_INC := -I$(WLAN_ROOT)/components/target_if/nan/inc
1573
1574NAN_OS_IF_DIR := os_if/nan/src
1575NAN_OS_IF_INC := -I$(WLAN_ROOT)/os_if/nan/inc
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001576
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +05301577ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001578WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
1579 $(NAN_CORE_DIR)/nan_api.o \
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001580 $(NAN_UCFG_DIR)/nan_ucfg_api.o \
Manikandan Mohandcd0fdf2018-08-02 18:13:37 -07001581 $(NAN_UCFG_DIR)/cfg_nan.o \
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001582 $(NAN_TGT_DIR)/target_if_nan.o \
1583 $(NAN_OS_IF_DIR)/os_if_nan.o
1584endif
1585#######################################################
1586
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001587############## HTC ##########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001588HTC_DIR := htc
1589HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001590
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001591HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
1592 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
1593 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
1594 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001595
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001596ifeq ($(CONFIG_FEATURE_HTC_CREDIT_HISTORY), y)
Rachit Kankaneb1035622018-01-24 18:41:35 +05301597HTC_OBJS += $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_credit_history.o
1598endif
1599
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001600########### HIF ###########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001601HIF_DIR := hif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001602HIF_CE_DIR := $(HIF_DIR)/src/ce
Houston Hoffman1edffd32016-01-27 16:30:34 -08001603
1604HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
1605
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001606HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001607HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
Mohit Khannada4f4432016-05-17 15:02:09 -07001608HIF_USB_DIR := $(HIF_DIR)/src/usb
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301609HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
1610
1611HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
1612HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
1613HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001614
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001615HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
tfyu350d9f72017-08-10 15:13:06 +08001616 -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src
Houston Hoffman1edffd32016-01-27 16:30:34 -08001617
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001618ifeq ($(CONFIG_HIF_PCI), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001619HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001620HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
tfyu350d9f72017-08-10 15:13:06 +08001621HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001622endif
1623
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001624ifeq ($(CONFIG_HIF_SNOC), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001625HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001626HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
tfyu350d9f72017-08-10 15:13:06 +08001627HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001628endif
1629
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001630ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001631HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1632HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
Guisen Yang260fd082019-09-24 16:55:54 +08001633HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Mohit Khannada4f4432016-05-17 15:02:09 -07001634endif
1635
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001636ifeq ($(CONFIG_HIF_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301637HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1638HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
1639HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
Guisen Yang260fd082019-09-24 16:55:54 +08001640HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301641endif
1642
1643HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
Guisen Yang260fd082019-09-24 16:55:54 +08001644 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
1645 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o
Nirav Shaheb017be2018-02-15 11:20:58 +05301646
Nirav Shah3422e032018-10-12 14:48:31 +05301647ifneq ($(CONFIG_LITHIUM), y)
1648HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main_legacy.o
1649endif
1650
Nirav Shaheb017be2018-02-15 11:20:58 +05301651ifeq ($(CONFIG_WLAN_NAPI), y)
Nirav Shaheb017be2018-02-15 11:20:58 +05301652HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o
1653endif
1654
Qiwei Caia01a9622018-07-11 10:02:03 +08001655HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301656 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
1657 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
1658 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
Nirav Shahef7edb92018-07-18 11:54:13 +05301659 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001660 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301661
Qiwei Caia01a9622018-07-11 10:02:03 +08001662ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
1663HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o
1664endif
1665
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001666ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001667ifeq ($(CONFIG_CNSS_QCA6290), y)
1668HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o
Houston Hoffmana0f93492016-11-18 13:42:12 -08001669endif
1670
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001671ifeq ($(CONFIG_CNSS_QCA6390), y)
1672HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6390def.o
1673endif
1674
Manjunathappa Prakash458f6fe2019-05-13 18:33:01 -07001675ifeq ($(CONFIG_CNSS_QCA6490), y)
1676HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6490def.o
1677endif
1678
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001679HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
Nirav Shahaf1260f2018-09-13 23:28:13 +05301680else
1681HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_legacy.o
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07001682endif
Houston Hoffmanb4d45672017-04-24 11:56:50 -07001683
Mohit Khannada4f4432016-05-17 15:02:09 -07001684HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
1685 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
1686 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
1687 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
1688
Qiwei Caia01a9622018-07-11 10:02:03 +08001689HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301690 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
1691 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301692 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o \
1693 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/transfer.o
Qiwei Caia01a9622018-07-11 10:02:03 +08001694
1695ifeq ($(CONFIG_WLAN_FEATURE_BMI), y)
1696HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o
1697endif
1698
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301699ifeq ($(CONFIG_SDIO_TRANSFER), adma)
1700HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/adma.o
1701else
1702HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/mailbox.o
1703endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301704
1705HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05301706 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o \
1707 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/dev_quirks.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001708
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001709ifeq ($(CONFIG_WLAN_NAPI), y)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001710HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001711endif
1712
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001713ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), y)
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07001714 HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o
1715endif
1716
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001717HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001718HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301719HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001720
Houston Hoffman1edffd32016-01-27 16:30:34 -08001721HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
Houston Hoffmanb61b9b12016-03-03 20:04:16 -08001722HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
Srinivas Girigowdac7a1b0a2017-12-08 12:00:00 -08001723HIF_OBJS += $(HIF_COMMON_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001724
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001725ifeq ($(CONFIG_HIF_PCI), y)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001726HIF_OBJS += $(HIF_PCIE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301727HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001728HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
1729endif
1730
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001731ifeq ($(CONFIG_HIF_SNOC), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001732HIF_OBJS += $(HIF_SNOC_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301733HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001734HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001735endif
1736
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001737ifeq ($(CONFIG_HIF_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301738HIF_OBJS += $(HIF_SDIO_OBJS)
1739HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301740HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
1741endif
1742
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001743ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001744HIF_OBJS += $(HIF_USB_OBJS)
Mohit Khannada4f4432016-05-17 15:02:09 -07001745HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
1746endif
1747
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001748ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001749############ HAL ############
1750HAL_DIR := hal
1751HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
1752 -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
1753
1754HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001755 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001756
1757ifeq ($(CONFIG_CNSS_QCA6290), y)
1758HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6290
Venkata Sharath Chandra Manchalac06175d2018-08-23 15:29:56 -07001759HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6290/hal_6290.o
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001760else ifeq ($(CONFIG_CNSS_QCA6390), y)
1761HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6390
Venkata Sharath Chandra Manchalac06175d2018-08-23 15:29:56 -07001762HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6390/hal_6390.o
Manjunathappa Prakash458f6fe2019-05-13 18:33:01 -07001763else ifeq ($(CONFIG_CNSS_QCA6490), y)
1764HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6490
1765HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6490/hal_6490.o
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001766else
1767#error "Not 11ax"
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001768endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001769
Venkata Sharath Chandra Manchala9220e322018-07-09 17:20:57 -07001770endif #####CONFIG_LITHIUM####
1771
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001772############ WMA ############
1773WMA_DIR := core/wma
1774
1775WMA_INC_DIR := $(WMA_DIR)/inc
1776WMA_SRC_DIR := $(WMA_DIR)/src
1777
1778WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
1779 -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
1780
Nachiket Kukade2fb1fdb2019-01-08 15:35:27 +05301781ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y)
Ravi Joshia063dd92016-05-25 16:43:13 -07001782WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
1783endif
1784
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001785WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
1786 $(WMA_SRC_DIR)/wma_scan_roam.o \
1787 $(WMA_SRC_DIR)/wma_dev_if.o \
1788 $(WMA_SRC_DIR)/wma_mgmt.o \
1789 $(WMA_SRC_DIR)/wma_power.o \
1790 $(WMA_SRC_DIR)/wma_data.o \
1791 $(WMA_SRC_DIR)/wma_utils.o \
1792 $(WMA_SRC_DIR)/wma_features.o \
Ravi Joshia063dd92016-05-25 16:43:13 -07001793 $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
1794 $(WMA_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001795
Wu Gao10300f92019-05-28 19:08:06 +08001796#######DIRECT_BUFFER_RX#########
1797ifeq ($(CONFIG_DIRECT_BUF_RX_ENABLE), y)
1798DBR_DIR = $(WLAN_COMMON_ROOT)/target_if/direct_buf_rx
1799UMAC_DBR_INC := -I$(WLAN_COMMON_INC)/target_if/direct_buf_tx/inc
1800UMAC_DBR_OBJS := $(DBR_DIR)/src/target_if_direct_buf_rx_api.o \
1801 $(DBR_DIR)/src/target_if_direct_buf_rx_main.o \
1802 $(WLAN_COMMON_ROOT)/wmi/src/wmi_unified_dbr_api.o \
1803 $(WLAN_COMMON_ROOT)/wmi/src/wmi_unified_dbr_tlv.o
1804endif
1805
Agrawal Ashishb141b092016-09-02 19:59:26 +05301806ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonb90ab572017-01-31 15:57:35 -08001807WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
Agrawal Ashishb141b092016-09-02 19:59:26 +05301808endif
Jeff Johnson6136fb92017-03-30 15:21:49 -07001809ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
1810WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o
1811endif
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001812ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001813WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
1814endif
Krishna Kumaar Natarajand0bbb3c2017-03-13 17:04:58 -07001815ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
1816WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
1817endif
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -07001818ifeq ($(CONFIG_WLAN_FEATURE_TWT), y)
1819WMA_OBJS += $(WMA_SRC_DIR)/wma_twt.o
1820endif
Qun Zhangef655622019-02-25 10:48:10 +08001821ifeq ($(CONFIG_QCACLD_FEATURE_FW_STATE), y)
1822WMA_OBJS += $(WMA_SRC_DIR)/wma_fw_state.o
1823endif
Arun Kumar Khandavallideda5a82019-03-11 15:32:19 +05301824ifeq ($(CONFIG_WLAN_MWS_INFO_DEBUGFS), y)
1825WMA_OBJS += $(WMA_SRC_DIR)/wma_coex.o
1826endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001827############## PLD ##########
1828PLD_DIR := core/pld
1829PLD_INC_DIR := $(PLD_DIR)/inc
1830PLD_SRC_DIR := $(PLD_DIR)/src
1831
1832PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
1833 -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
1834
1835PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
1836
Naman Padhiarc52e7fd2019-06-23 01:21:42 +05301837ifeq ($(CONFIG_PCIE_FW_SIM), y)
1838PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie_fw_sim.o
1839else ifeq ($(CONFIG_HIF_PCI), y)
1840PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001841endif
Naman Padhiarc52e7fd2019-06-23 01:21:42 +05301842ifeq ($(CONFIG_SNOC_FW_SIM),y)
1843PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc_fw_sim.o
1844else ifeq ($(CONFIG_ICNSS),y)
1845PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001846endif
Naman Padhiarc52e7fd2019-06-23 01:21:42 +05301847
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001848ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301849PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
1850endif
Ajit Pal Singh6c6e81c2018-06-13 15:26:37 +05301851ifeq ($(CONFIG_HIF_USB), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001852PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
1853endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001854
Yu Wang6c4599c2018-10-09 10:18:14 +08001855TARGET_INC := -I$(WLAN_FW_API)/fw
Venkata Sharath Chandra Manchala36199cb2018-07-18 12:27:54 -07001856
1857ifeq ($(CONFIG_CNSS_QCA6290), y)
psimha0b6bb892017-10-10 14:28:34 -07001858ifeq ($(CONFIG_QCA6290_11AX), y)
Yu Wang6c4599c2018-10-09 10:18:14 +08001859TARGET_INC += -I$(WLAN_FW_API)/hw/qca6290/11ax/v2
psimha0b6bb892017-10-10 14:28:34 -07001860else
Yu Wang6c4599c2018-10-09 10:18:14 +08001861TARGET_INC += -I$(WLAN_FW_API)/hw/qca6290/v2
Venkata Sharath Chandra Manchala36199cb2018-07-18 12:27:54 -07001862endif
1863endif
1864
1865ifeq ($(CONFIG_CNSS_QCA6390), y)
Yu Wang6c4599c2018-10-09 10:18:14 +08001866TARGET_INC += -I$(WLAN_FW_API)/hw/qca6390/v1
psimha0b6bb892017-10-10 14:28:34 -07001867endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001868
Manjunathappa Prakash458f6fe2019-05-13 18:33:01 -07001869ifeq ($(CONFIG_CNSS_QCA6490), y)
1870TARGET_INC += -I$(WLAN_FW_API)/hw/qca6490/v1
1871endif
1872
Dustin Brown0bec9a92017-08-17 15:44:34 -07001873LINUX_INC := -Iinclude
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001874
1875INCS := $(HDD_INC) \
Dustin Browna17cace2019-02-01 14:53:47 -08001876 $(SYNC_INC) \
Dustin Brown6099ddc2018-07-06 14:32:53 -07001877 $(DSC_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001878 $(EPPING_INC) \
1879 $(LINUX_INC) \
1880 $(MAC_INC) \
1881 $(SAP_INC) \
1882 $(SME_INC) \
1883 $(SYS_INC) \
Ashish Kumar Dhanotiya9c331b92018-08-09 20:25:02 +05301884 $(QAL_INC) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001885 $(QDF_INC) \
Rakshith Suresh Patkard9f4e612018-09-12 12:10:38 +05301886 $(WBUFF_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001887 $(CDS_INC) \
Dustin Brown84f46ea2018-02-15 11:57:36 -08001888 $(CFG_INC) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301889 $(DFS_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301890 $(TARGET_IF_INC) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301891 $(CLD_TARGET_IF_INC) \
Sandeep Puligillafdd201e2017-02-02 18:43:46 -08001892 $(OS_IF_INC) \
Ryan Hsuc8b27a42018-01-02 13:57:56 -08001893 $(GLOBAL_LMAC_IF_INC) \
1894 $(FTM_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001895
1896INCS += $(WMA_INC) \
1897 $(UAPI_INC) \
1898 $(COMMON_INC) \
1899 $(WMI_INC) \
1900 $(FWLOG_INC) \
1901 $(TXRX_INC) \
1902 $(OL_INC) \
Dhanashri Atre12a08392016-02-17 13:10:34 -08001903 $(CDP_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001904 $(PKTLOG_INC) \
1905 $(HTT_INC) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001906 $(INIT_DEINIT_INC) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001907 $(SCHEDULER_INC) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001908 $(REGULATORY_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001909 $(HTC_INC) \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001910 $(DFS_INC) \
Mohit Khanna70322002018-05-15 19:21:32 -07001911 $(WCFG_INC) \
1912 $(TXRX3.0_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001913
1914INCS += $(HIF_INC) \
Ashish Kumar Dhanotiya94ffbd12019-08-08 18:00:59 +05301915 $(BMI_INC) \
1916 $(CMN_SYS_INC)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001917
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07001918ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001919INCS += $(HAL_INC) \
1920 $(DP_INC)
1921endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001922
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001923################ WIFI POS ################
1924INCS += $(WIFI_POS_API_INC)
1925INCS += $(WIFI_POS_TGT_INC)
1926INCS += $(WIFI_POS_OS_IF_INC)
Naveen Rawat73e1ca92018-01-12 15:26:14 -08001927################ CP STATS ################
1928INCS += $(CP_STATS_OS_IF_INC)
1929INCS += $(CP_STATS_TGT_INC)
1930INCS += $(CP_STATS_DISPATCHER_INC)
hquff302a92019-07-18 00:06:11 +08001931INCS += $(COMP_CP_STATS_DISPATCHER_INC)
Paul Zhang37185672019-05-14 11:20:14 +08001932################ INTEROP ISSUES AP ################
1933INCS += $(INTEROP_ISSUES_AP_OS_IF_INC)
1934INCS += $(INTEROP_ISSUES_AP_TGT_INC)
1935INCS += $(INTEROP_ISSUES_AP_DISPATCHER_INC)
1936INCS += $(INTEROP_ISSUES_AP_CORE_INC)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001937################ NAN POS ################
1938INCS += $(NAN_CORE_INC)
1939INCS += $(NAN_UCFG_INC)
1940INCS += $(NAN_TGT_INC)
1941INCS += $(NAN_OS_IF_INC)
1942##########################################
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301943INCS += $(UMAC_OBJMGR_INC)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301944INCS += $(UMAC_MGMT_TXRX_INC)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301945INCS += $(PMO_INC)
Wu Gao637d58a2018-12-08 10:37:34 +08001946INCS += $(P2P_INC)
Wu Gaod6b5e402018-12-03 22:09:24 +08001947INCS += $(POLICY_MGR_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001948INCS += $(TARGET_INC)
Wu Gao5f793402018-12-08 11:04:00 +08001949INCS += $(TDLS_INC)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001950INCS += $(UMAC_SER_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001951INCS += $(NLINK_INC) \
1952 $(PTT_INC) \
1953 $(WLAN_LOGGING_INC)
1954
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001955INCS += $(PLD_INC)
Zhang Qian47e22ce2018-01-04 15:38:38 +08001956INCS += $(OCB_INC)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001957
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301958INCS += $(IPA_INC)
Abhishek Singhed197482018-09-05 13:22:02 +05301959INCS += $(UMAC_SM_INC)
1960INCS += $(UMAC_MLME_INC)
Sandeep Puligillac5609d52018-05-17 19:23:41 -07001961INCS += $(MLME_INC)
Sourav Mohapatra113685f2018-08-29 14:21:55 +05301962INCS += $(FWOL_INC)
gaurank kathpalia3ebc17b2019-05-29 10:25:09 +05301963INCS += $(BLM_INC)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05301964
Jeff Johnsoneadeb932018-04-07 15:32:36 -07001965ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001966INCS += $(PKTLOG_INC)
1967endif
1968
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001969INCS += $(HOST_DIAG_LOG_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001970
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301971INCS += $(DISA_INC)
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05301972INCS += $(ACTION_OUI_INC)
Nachiket Kukade98f562a2017-12-15 12:18:07 +05301973
Frank Liu65b17d92016-11-23 15:58:44 +08001974INCS += $(UMAC_DISP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301975INCS += $(UMAC_SCAN_INC)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301976INCS += $(UMAC_TARGET_SCAN_INC)
Himanshu Agarwalb229a142017-12-21 10:16:45 +05301977INCS += $(UMAC_GREEN_AP_INC)
1978INCS += $(UMAC_TARGET_GREEN_AP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301979INCS += $(UMAC_COMMON_INC)
Sandeep Puligilla342d2a62017-12-12 15:40:00 -08001980INCS += $(UMAC_SPECTRAL_INC)
1981INCS += $(UMAC_TARGET_SPECTRAL_INC)
Wu Gao10300f92019-05-28 19:08:06 +08001982INCS += $(UMAC_DBR_INC)
Varun Reddy Yeturu29044cd2018-06-28 14:03:10 -07001983INCS += $(UMAC_CRYPTO_INC)
Frank Liu65b17d92016-11-23 15:58:44 +08001984
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001985OBJS := $(HDD_OBJS) \
Dustin Browna17cace2019-02-01 14:53:47 -08001986 $(SYNC_OBJS) \
Dustin Brown6099ddc2018-07-06 14:32:53 -07001987 $(DSC_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001988 $(MAC_OBJS) \
1989 $(SAP_OBJS) \
1990 $(SME_OBJS) \
1991 $(SYS_OBJS) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001992 $(QDF_OBJS) \
Rakshith Suresh Patkard9f4e612018-09-12 12:10:38 +05301993 $(WBUFF_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001994 $(CDS_OBJS) \
Dustin Brown84f46ea2018-02-15 11:57:36 -08001995 $(CFG_OBJS) \
Ryan Hsuc8b27a42018-01-02 13:57:56 -08001996 $(FTM_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001997
1998OBJS += $(WMA_OBJS) \
1999 $(TXRX_OBJS) \
2000 $(WMI_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002001 $(HTC_OBJS) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08002002 $(INIT_DEINIT_OBJS) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08002003 $(SCHEDULER_OBJS) \
Wen Gong01a2c632018-04-11 18:34:55 +08002004 $(REGULATORY_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002005
2006OBJS += $(HIF_OBJS) \
2007 $(BMI_OBJS) \
Wu Gao64b31482017-03-10 15:16:10 +08002008 $(OS_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05302009 $(TARGET_IF_OBJ) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05302010 $(CLD_TARGET_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05302011 $(GLOBAL_LMAC_IF_OBJ)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002012
Saket Jha99531502019-08-21 15:00:49 -07002013ifneq ($(CONFIG_LITHIUM), y)
2014OBJS += $(HTT_OBJS)
2015endif
2016
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07002017ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002018OBJS += $(HAL_OBJS)
Saket Jha99531502019-08-21 15:00:49 -07002019OBJS += $(TXRX_DIR)/ol_txrx_event.o
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002020endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002021
Wen Gong99768902018-04-25 12:07:49 +08002022ifeq ($(CONFIG_FEATURE_FW_LOG_PARSING), y)
2023OBJS += $(FWLOG_OBJS)
2024endif
2025
Nirav Shah459bebf2018-01-17 16:59:14 +05302026ifeq ($(CONFIG_FEATURE_EPPING), y)
2027OBJS += $(EPPING_OBJS)
2028endif
2029
Wen Gong01a2c632018-04-11 18:34:55 +08002030ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y)
2031OBJS += $(DFS_OBJS)
2032endif
Nirav Shah459bebf2018-01-17 16:59:14 +05302033
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05302034OBJS += $(UMAC_OBJMGR_OBJS)
Naveen Rawat4e2c2562017-03-06 10:47:02 -08002035OBJS += $(WIFI_POS_OBJS)
Naveen Rawat96a77d32018-01-12 15:26:14 -08002036OBJS += $(CP_STATS_OBJS)
Paul Zhang37185672019-05-14 11:20:14 +08002037OBJS += $(INTEROP_ISSUES_AP_OBJS)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07002038OBJS += $(WLAN_NAN_OBJS)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05302039OBJS += $(UMAC_MGMT_TXRX_OBJS)
Wu Gao5f793402018-12-08 11:04:00 +08002040OBJS += $(TDLS_OBJS)
Mukul Sharmac5de6772017-01-05 14:32:36 +05302041OBJS += $(PMO_OBJS)
Wu Gao637d58a2018-12-08 10:37:34 +08002042OBJS += $(P2P_OBJS)
Wu Gaod6b5e402018-12-03 22:09:24 +08002043OBJS += $(POLICY_MGR_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002044OBJS += $(WLAN_LOGGING_OBJS)
2045OBJS += $(NLINK_OBJS)
2046OBJS += $(PTT_OBJS)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08002047OBJS += $(UMAC_SER_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08002048OBJS += $(PLD_OBJS)
Abhishek Singhed197482018-09-05 13:22:02 +05302049OBJS += $(UMAC_SM_OBJS)
2050OBJS += $(UMAC_MLME_OBJS)
Sandeep Puligillac5609d52018-05-17 19:23:41 -07002051OBJS += $(MLME_OBJS)
Paul Zhangc9dbaee2019-06-23 22:07:31 +08002052ifeq ($(CONFIG_WLAN_FW_OFFLOAD), y)
Sourav Mohapatra113685f2018-08-29 14:21:55 +05302053OBJS += $(FWOL_OBJS)
Paul Zhangc9dbaee2019-06-23 22:07:31 +08002054endif
gaurank kathpalia3ebc17b2019-05-29 10:25:09 +05302055OBJS += $(BLM_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08002056
Zhang Qian47e22ce2018-01-04 15:38:38 +08002057ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
2058OBJS += $(OCB_OBJS)
2059endif
2060
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002061ifeq ($(CONFIG_IPA_OFFLOAD), y)
Sravan Kumar Kairam4af61cf2018-02-22 17:53:44 +05302062OBJS += $(IPA_OBJS)
2063endif
2064
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002065ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002066OBJS += $(PKTLOG_OBJS)
2067endif
2068
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002069ifeq ($(BUILD_DIAG_VERSION), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002070OBJS += $(HOST_DIAG_LOG_OBJS)
2071endif
2072
Nachiket Kukade98f562a2017-12-15 12:18:07 +05302073ifeq ($(CONFIG_WLAN_FEATURE_DISA), y)
2074OBJS += $(DISA_OBJS)
2075endif
2076
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05302077ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y)
2078OBJS += $(ACTION_OUI_OBJS)
2079endif
2080
Frank Liu65b17d92016-11-23 15:58:44 +08002081OBJS += $(UMAC_DISP_OBJS)
Abhishek Singh9be07e22017-02-21 10:59:57 +05302082OBJS += $(UMAC_SCAN_OBJS)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05302083OBJS += $(UMAC_COMMON_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002084OBJS += $(WCFG_OBJS)
Sandeep Puligilla8e89d572018-04-02 18:07:45 -07002085
Sandeep Puligilla342d2a62017-12-12 15:40:00 -08002086OBJS += $(UMAC_SPECTRAL_OBJS)
Wu Gao10300f92019-05-28 19:08:06 +08002087OBJS += $(UMAC_DBR_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002088
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002089ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y)
Himanshu Agarwalb229a142017-12-21 10:16:45 +05302090OBJS += $(UMAC_GREEN_AP_OBJS)
2091endif
2092
Varun Reddy Yeturu29044cd2018-06-28 14:03:10 -07002093ifeq ($(CONFIG_CRYPTO_COMPONENT), y)
2094OBJS += $(UMAC_CRYPTO_OBJS)
2095endif
2096
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07002097ifeq ($(CONFIG_LITHIUM), y)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002098OBJS += $(DP_OBJS)
2099endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002100
Mohit Khanna70322002018-05-15 19:21:32 -07002101ifeq ($(CONFIG_WLAN_FEATURE_DP_RX_THREADS), y)
2102OBJS += $(TXRX3.0_OBJS)
2103endif
2104
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002105ccflags-y += $(INCS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002106
Jeff Johnsonee869842018-04-17 11:14:03 -07002107cppflags-y += -DANI_OS_TYPE_ANDROID=6 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002108 -Wall\
2109 -Werror\
Jeff Johnsona63a9b62018-04-12 15:30:45 -07002110 -D__linux__
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002111
Jeff Johnsonee869842018-04-17 11:14:03 -07002112cppflags-$(CONFIG_PTT_SOCK_SVC_ENABLE) += -DPTT_SOCK_SVC_ENABLE
2113cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DFEATURE_WLAN_WAPI
2114cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DATH_SUPPORT_WAPI
2115cppflags-$(CONFIG_AGEIE_ON_SCAN_RESULTS) += -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS
2116cppflags-$(CONFIG_SOFTAP_CHANNEL_RANGE) += -DSOFTAP_CHANNEL_RANGE
2117cppflags-$(CONFIG_FEATURE_WLAN_SCAN_PNO) += -DFEATURE_WLAN_SCAN_PNO
2118cppflags-$(CONFIG_WLAN_FEATURE_PACKET_FILTERING) += -DWLAN_FEATURE_PACKET_FILTERING
Jeff Johnsone77641e2019-02-15 09:00:41 -08002119cppflags-$(CONFIG_DHCP_SERVER_OFFLOAD) += -DDHCP_SERVER_OFFLOAD
Jeff Johnsonee869842018-04-17 11:14:03 -07002120cppflags-$(CONFIG_WLAN_NS_OFFLOAD) += -DWLAN_NS_OFFLOAD
2121cppflags-$(CONFIG_FEATURE_WLAN_RA_FILTERING) += -DFEATURE_WLAN_RA_FILTERING
2122cppflags-$(CONFIG_FEATURE_WLAN_LPHB) += -DFEATURE_WLAN_LPHB
2123cppflags-$(CONFIG_QCA_SUPPORT_TX_THROTTLE) += -DQCA_SUPPORT_TX_THROTTLE
2124cppflags-$(CONFIG_WMI_INTERFACE_EVENT_LOGGING) += -DWMI_INTERFACE_EVENT_LOGGING
2125cppflags-$(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS) += -DWLAN_FEATURE_LINK_LAYER_STATS
tinlin9abd17f2019-08-14 13:29:44 +08002126cppflags-$(CONFIG_WLAN_FEATURE_MIB_STATS) += -DWLAN_FEATURE_MIB_STATS
Jeff Johnsonee869842018-04-17 11:14:03 -07002127cppflags-$(CONFIG_FEATURE_WLAN_EXTSCAN) += -DFEATURE_WLAN_EXTSCAN
2128cppflags-$(CONFIG_160MHZ_SUPPORT) += -DCONFIG_160MHZ_SUPPORT
2129cppflags-$(CONFIG_MCL) += -DCONFIG_MCL
bings2f0f9f02019-03-08 10:59:15 +08002130cppflags-$(CONFIG_REG_CLIENT) += -DCONFIG_REG_CLIENT
Jeff Johnsonee869842018-04-17 11:14:03 -07002131cppflags-$(CONFIG_WLAN_PMO_ENABLE) += -DWLAN_PMO_ENABLE
2132cppflags-$(CONFIG_CONVERGED_P2P_ENABLE) += -DCONVERGED_P2P_ENABLE
2133cppflags-$(CONFIG_WLAN_POLICY_MGR_ENABLE) += -DWLAN_POLICY_MGR_ENABLE
gaurank kathpalia3ebc17b2019-05-29 10:25:09 +05302134cppflags-$(CONFIG_FEATURE_BLACKLIST_MGR) += -DFEATURE_BLACKLIST_MGR
Jeff Johnsonee869842018-04-17 11:14:03 -07002135cppflags-$(CONFIG_SUPPORT_11AX) += -DSUPPORT_11AX
2136cppflags-$(CONFIG_HDD_INIT_WITH_RTNL_LOCK) += -DCONFIG_HDD_INIT_WITH_RTNL_LOCK
Jeff Johnsonee869842018-04-17 11:14:03 -07002137cppflags-$(CONFIG_WLAN_CONV_SPECTRAL_ENABLE) += -DWLAN_CONV_SPECTRAL_ENABLE
Wu Gao10300f92019-05-28 19:08:06 +08002138cppflags-$(CONFIG_DIRECT_BUF_RX_ENABLE) += -DDIRECT_BUF_RX_ENABLE
2139cppflags-$(CONFIG_WMI_DBR_SUPPORT) += -DWMI_DBR_SUPPORT
2140cppflags-$(CONFIG_DIRECT_BUF_RX_ENABLE) += -DDBR_MULTI_SRNG_ENABLE
Jeff Johnsonee869842018-04-17 11:14:03 -07002141cppflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS
Varun Reddy Yeturud33033f2018-06-11 10:58:30 -07002142cppflags-$(CONFIG_WLAN_FEATURE_TWT) += -DWLAN_SUPPORT_TWT
Jeff Johnson8daf7682018-04-11 07:42:56 -07002143
Jeff Johnsonee869842018-04-17 11:14:03 -07002144cppflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL
2145cppflags-$(CONFIG_WIFI_POS_CONVERGED) += -DWIFI_POS_CONVERGED
2146cppflags-$(CONFIG_WIFI_POS_LEGACY) += -DFEATURE_OEM_DATA_SUPPORT
2147cppflags-$(CONFIG_FEATURE_HTC_CREDIT_HISTORY) += -DFEATURE_HTC_CREDIT_HISTORY
2148cppflags-$(CONFIG_WLAN_FEATURE_P2P_DEBUG) += -DWLAN_FEATURE_P2P_DEBUG
Rachit Kankane0dc3e852018-05-07 17:33:42 +05302149cppflags-$(CONFIG_WLAN_WEXT_SUPPORT_ENABLE) += -DWLAN_WEXT_SUPPORT_ENABLE
Jeff Johnsonee869842018-04-17 11:14:03 -07002150cppflags-$(CONFIG_WLAN_LOGGING_SOCK_SVC) += -DWLAN_LOGGING_SOCK_SVC_ENABLE
Rachit Kankane0868f8f2018-06-22 18:52:03 +05302151cppflags-$(CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY) += -DWLAN_LOGGING_BUFFERS_DYNAMICALLY
Jeff Johnsonee869842018-04-17 11:14:03 -07002152cppflags-$(CONFIG_WLAN_FEATURE_FILS) += -DWLAN_FEATURE_FILS_SK
Naveen Rawat96a77d32018-01-12 15:26:14 -08002153cppflags-$(CONFIG_CP_STATS) += -DQCA_SUPPORT_CP_STATS
Paul Zhang37185672019-05-14 11:20:14 +08002154cppflags-$(CONFIG_FEATURE_INTEROP_ISSUES_AP) += -DWLAN_FEATURE_INTEROP_ISSUES_AP
Wen Gong3f003382018-05-14 14:26:37 +08002155cppflags-$(CONFIG_FEATURE_MEMDUMP_ENABLE) += -DWLAN_FEATURE_MEMDUMP_ENABLE
Wen Gong99768902018-04-25 12:07:49 +08002156cppflags-$(CONFIG_FEATURE_FW_LOG_PARSING) += -DFEATURE_FW_LOG_PARSING
Paul Zhangda2970b2019-06-23 18:16:38 +08002157cppflags-$(CONFIG_FEATURE_OEM_DATA) += -DFEATURE_OEM_DATA
Visweswara Tanuku322348d2019-08-05 12:24:58 +05302158cppflags-$(CONFIG_FEATURE_MOTION_DETECTION) += -DWLAN_FEATURE_MOTION_DETECTION
Paul Zhangc9dbaee2019-06-23 22:07:31 +08002159cppflags-$(CONFIG_WLAN_FW_OFFLOAD) += -DWLAN_FW_OFFLOAD
2160cppflags-$(CONFIG_WLAN_FEATURE_ELNA) += -DWLAN_FEATURE_ELNA
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +05302161
Nirav Shah1575dd72018-06-24 13:46:39 +05302162cppflags-$(CONFIG_PLD_SDIO_CNSS_FLAG) += -DCONFIG_PLD_SDIO_CNSS
Naman Padhiarc52e7fd2019-06-23 01:21:42 +05302163
2164ifeq ($(CONFIG_PLD_PCIE_CNSS_FLAG), y)
2165ifeq ($(CONFIG_PCIE_FW_SIM), y)
2166cppflags-y += -DCONFIG_PLD_PCIE_FW_SIM
2167else
2168cppflags-y += -DCONFIG_PLD_PCIE_CNSS
2169endif
2170endif
2171
Nirav Shah1575dd72018-06-24 13:46:39 +05302172cppflags-$(CONFIG_PLD_PCIE_INIT_FLAG) += -DCONFIG_PLD_PCIE_INIT
Mohit Khanna70322002018-05-15 19:21:32 -07002173cppflags-$(CONFIG_WLAN_FEATURE_DP_RX_THREADS) += -DFEATURE_WLAN_DP_RX_THREADS
Mohit Khannad02e9b82019-03-22 16:36:15 -07002174cppflags-$(CONFIG_WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT) += -DWLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
Ajit Pal Singh6f5f5892018-07-19 14:08:20 +05302175cppflags-$(CONFIG_PLD_USB_CNSS) += -DCONFIG_PLD_USB_CNSS
Sriram Madhvapathiecb0bcd2018-07-04 14:48:41 +05302176cppflags-$(CONFIG_PLD_SDIO_CNSS2) += -DCONFIG_PLD_SDIO_CNSS2
Alok Kumar68946922019-09-11 17:44:57 +05302177cppflags-$(CONFIG_WLAN_RECORD_RX_PADDR) += -DHIF_RECORD_RX_PADDR
Yue Mae6a7a322016-08-31 11:09:23 -07002178
Lin Baide6c5532019-03-19 11:03:59 +08002179#For both legacy and lithium chip's monitor mode config
2180ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y)
2181cppflags-y += -DFEATURE_MONITOR_MODE_SUPPORT
2182else
2183cppflags-y += -DDISABLE_MON_CONFIG
2184endif
2185
Lin Bai59b79762017-09-01 16:18:55 +08002186#Enable NL80211 test mode
Jeff Johnsonee869842018-04-17 11:14:03 -07002187cppflags-$(CONFIG_NL80211_TESTMODE) += -DWLAN_NL80211_TESTMODE
Lin Bai59b79762017-09-01 16:18:55 +08002188
Yue Ma2b091312017-02-15 15:56:47 -08002189# Flag to enable bus auto suspend
Jeff Johnsonfe6f0b02018-04-11 09:27:04 -07002190ifeq ($(CONFIG_HIF_PCI), y)
Yue Ma2b091312017-02-15 15:56:47 -08002191ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002192cppflags-y += -DFEATURE_RUNTIME_PM
Yue Ma2b091312017-02-15 15:56:47 -08002193endif
2194endif
2195
Naman Padhiarc52e7fd2019-06-23 01:21:42 +05302196ifeq ($(CONFIG_ICNSS), y)
2197ifeq ($(CONFIG_SNOC_FW_SIM), y)
2198cppflags-y += -DCONFIG_PLD_SNOC_FW_SIM
2199else
2200cppflags-y += -DCONFIG_PLD_SNOC_ICNSS
2201endif
2202endif
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07002203
Jeff Johnsonee869842018-04-17 11:14:03 -07002204cppflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0_ADRASTEA
Nirav Shah93b32352018-09-05 13:21:18 +05302205cppflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0
Jeff Johnsonee869842018-04-17 11:14:03 -07002206cppflags-$(CONFIG_ADRASTEA_SHADOW_REGISTERS) += -DADRASTEA_SHADOW_REGISTERS
2207cppflags-$(CONFIG_ADRASTEA_RRI_ON_DDR) += -DADRASTEA_RRI_ON_DDR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002208
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002209ifeq ($(CONFIG_QMI_SUPPORT), n)
Jeff Johnsonee869842018-04-17 11:14:03 -07002210cppflags-y += -DCONFIG_BYPASS_QMI
Yuanyuan Liuf45ab3d2017-12-14 11:00:09 -08002211endif
2212
Jeff Johnsonee869842018-04-17 11:14:03 -07002213cppflags-$(CONFIG_WLAN_FASTPATH) += -DWLAN_FEATURE_FASTPATH
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002214
Jeff Johnsonee869842018-04-17 11:14:03 -07002215cppflags-$(CONFIG_FEATURE_PKTLOG) += -DFEATURE_PKTLOG
Poddar, Siddartheefe3482016-09-21 18:12:59 +05302216
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002217ifeq ($(CONFIG_WLAN_NAPI), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002218cppflags-y += -DFEATURE_NAPI
2219cppflags-y += -DHIF_IRQ_AFFINITY
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002220ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002221cppflags-y += -DFEATURE_NAPI_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002222endif
2223endif
2224
Yue Madf224b82016-04-21 12:46:04 -07002225ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
Jeff Johnsonee869842018-04-17 11:14:03 -07002226cppflags-y += -DMSM_PLATFORM
Yuanyuan Liu5af44362016-04-01 21:57:06 -07002227endif
2228
Tiger Yu8b119e92019-04-09 13:55:07 +08002229cppflags-$(CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH) += -DWLAN_FEATURE_DP_BUS_BANDWIDTH
2230
Jeff Johnsonee869842018-04-17 11:14:03 -07002231cppflags-y += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002232
Jeff Johnsonee869842018-04-17 11:14:03 -07002233cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_CONTROL_V2
2234cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
2235cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY) += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
hangtianb9c91362019-06-07 10:39:38 +08002236cppflags-$(CONFIG_WLAN_PDEV_TX_FLOW_CONTROL) += -DQCA_LL_PDEV_TX_FLOW_CONTROL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002237
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002238ifeq ($(BUILD_DEBUG_VERSION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002239cppflags-y += -DWLAN_DEBUG
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002240ifeq ($(CONFIG_TRACE_RECORD_FEATURE), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002241cppflags-y += -DTRACE_RECORD \
Rachit Kankane0baf6e72018-01-19 15:01:50 +05302242 -DLIM_TRACE_RECORD \
2243 -DSME_TRACE_RECORD \
2244 -DHDD_TRACE_RECORD
2245endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002246endif
Dustin Brown0ea8d3b2018-07-06 13:58:49 -07002247cppflags-$(CONFIG_UNIT_TEST) += -DWLAN_UNIT_TEST
Jeff Johnsonee869842018-04-17 11:14:03 -07002248cppflags-$(CONFIG_WLAN_DEBUG_CRASH_INJECT) += -DCONFIG_WLAN_DEBUG_CRASH_INJECT
2249cppflags-$(CONFIG_FEATURE_UNIT_TEST_SUSPEND) += -DWLAN_SUSPEND_RESUME_TEST
Krunal Sonif9ba53d2019-01-03 21:44:41 -08002250cppflags-$(CONFIG_FEATURE_WLM_STATS) += -DFEATURE_WLM_STATS
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07002251
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002252ifeq ($(CONFIG_LEAK_DETECTION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002253cppflags-y += \
Dustin Brown63ef3182018-04-02 10:57:18 -07002254 -DCONFIG_HALT_KMEMLEAK \
2255 -DCONFIG_LEAK_DETECTION \
2256 -DMEMORY_DEBUG \
2257 -DNBUF_MEMORY_DEBUG \
Dustin Brownf39413a2018-07-05 14:01:23 -07002258 -DNBUF_MAP_UNMAP_DEBUG \
Dustin Brownc2796312019-03-13 16:43:36 -07002259 -DTIMER_MANAGER \
Dustin Brown4a93bb52019-03-13 11:46:34 -07002260 -DWLAN_DELAYED_WORK_DEBUG \
2261 -DWLAN_PERIODIC_WORK_DEBUG
Dustin Brown21a761d2017-11-15 16:37:00 -08002262endif
2263
Jeff Johnsonee869842018-04-17 11:14:03 -07002264cppflags-y += -DWLAN_FEATURE_P2P
2265cppflags-y += -DWLAN_FEATURE_WFD
Wu Gao10300f92019-05-28 19:08:06 +08002266
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002267ifeq ($(CONFIG_QCOM_VOWIFI_11R), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002268cppflags-y += -DKERNEL_SUPPORT_11R_CFG80211
2269cppflags-y += -DUSE_80211_WMMTSPEC_FOR_RIC
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002270endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002271
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002272ifeq ($(CONFIG_QCOM_ESE), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002273cppflags-y += -DFEATURE_WLAN_ESE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002274endif
2275
2276#normally, TDLS negative behavior is not needed
Jeff Johnsonee869842018-04-17 11:14:03 -07002277cppflags-$(CONFIG_QCOM_TDLS) += -DFEATURE_WLAN_TDLS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002278
Jeff Johnsonee869842018-04-17 11:14:03 -07002279cppflags-$(CONFIG_QCACLD_WLAN_LFR3) += -DWLAN_FEATURE_ROAM_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002280
Sandeep Puligilla19522172019-01-10 19:53:45 -08002281cppflags-$(CONFIG_WLAN_FEATURE_MBSSID) += -DWLAN_FEATURE_MBSSID
2282
Jeff Johnsonee869842018-04-17 11:14:03 -07002283cppflags-$(CONFIG_CNSS_GENL) += -DCNSS_GENL
Selvaraj, Sridhar046d77d2017-03-07 14:53:13 +05302284
Jeff Johnsonee869842018-04-17 11:14:03 -07002285cppflags-$(CONFIG_QCACLD_WLAN_LFR2) += -DWLAN_FEATURE_HOST_ROAM
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -08002286
Qiwei Caid96c0212018-06-15 11:12:49 +08002287cppflags-$(CONFIG_FEATURE_ROAM_DEBUG) += -DFEATURE_ROAM_DEBUG
2288
Jeff Johnsonee869842018-04-17 11:14:03 -07002289cppflags-$(CONFIG_WLAN_POWER_DEBUGFS) += -DWLAN_POWER_DEBUGFS
Sridhar Selvarajdc400d22016-10-18 17:18:03 +05302290
Arun Kumar Khandavallideda5a82019-03-11 15:32:19 +05302291cppflags-$(CONFIG_WLAN_MWS_INFO_DEBUGFS) += -DWLAN_MWS_INFO_DEBUGFS
2292
Rajeev Kumar69d7d492017-02-13 21:48:16 -08002293# Enable object manager reference count debug infrastructure
Jeff Johnsonee869842018-04-17 11:14:03 -07002294cppflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_DEBUG
Pragaspathi Thilagarajab5cc6e2018-08-15 21:53:49 +05302295cppflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_REF_ID_DEBUG
Rajeev Kumar69d7d492017-02-13 21:48:16 -08002296
Jeff Johnsonee869842018-04-17 11:14:03 -07002297cppflags-$(CONFIG_WLAN_FEATURE_SAE) += -DWLAN_FEATURE_SAE
Padma, Santhosh Kumar07eb80b2017-07-05 16:10:06 +05302298
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002299ifeq ($(BUILD_DIAG_VERSION), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002300cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT
2301cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
2302cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002303ifeq ($(CONFIG_HIF_PCI), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002304cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002305endif
2306endif
2307
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002308ifeq ($(CONFIG_HIF_USB), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002309cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
2310cppflags-y += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
2311cppflags-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 -08002312endif
2313
Tiger Yue40e7832019-04-25 10:46:53 +08002314cppflags-$(CONFIG_QCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK) += -DQCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK
2315
Jeff Johnsonee869842018-04-17 11:14:03 -07002316cppflags-$(CONFIG_WLAN_FEATURE_11W) += -DWLAN_FEATURE_11W
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002317
Jeff Johnsonee869842018-04-17 11:14:03 -07002318cppflags-$(CONFIG_QCA_TXDESC_SANITY_CHECKS) += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
gbiane55c9562016-11-01 14:47:47 +08002319
Jeff Johnsonee869842018-04-17 11:14:03 -07002320cppflags-$(CONFIG_QCOM_LTE_COEX) += -DFEATURE_WLAN_CH_AVOID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002321
Jeff Johnsonee869842018-04-17 11:14:03 -07002322cppflags-$(CONFIG_WLAN_FEATURE_LPSS) += -DWLAN_FEATURE_LPSS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002323
Nirav Shaha72db1d2018-06-06 17:11:07 +05302324cppflags-$(CONFIG_DESC_DUP_DETECT_DEBUG) += -DDESC_DUP_DETECT_DEBUG
2325cppflags-$(CONFIG_DEBUG_RX_RING_BUFFER) += -DDEBUG_RX_RING_BUFFER
Nirav Shah76291962016-04-25 10:50:37 +05302326
Rakshith Suresh Patkar384a28a2018-11-02 16:43:43 +05302327cppflags-$(CONFIG_DESC_TIMESTAMP_DEBUG_INFO) += -DDESC_TIMESTAMP_DEBUG_INFO
2328
Jeff Johnsonee869842018-04-17 11:14:03 -07002329cppflags-$(PANIC_ON_BUG) += -DPANIC_ON_BUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002330
Jeff Johnsonee869842018-04-17 11:14:03 -07002331cppflags-$(WLAN_WARN_ON_ASSERT) += -DWLAN_WARN_ON_ASSERT
Dustin Brown0634ba32018-03-22 13:00:44 -07002332
Rajeev Kumar6bdee8e2018-04-18 17:36:05 -07002333ccflags-$(CONFIG_POWER_MANAGEMENT_OFFLOAD) += -DWLAN_POWER_MANAGEMENT_OFFLOAD
2334
Jeff Johnsonee869842018-04-17 11:14:03 -07002335cppflags-$(CONFIG_WLAN_LOG_FATAL) += -DWLAN_LOG_FATAL
2336cppflags-$(CONFIG_WLAN_LOG_ERROR) += -DWLAN_LOG_ERROR
2337cppflags-$(CONFIG_WLAN_LOG_WARN) += -DWLAN_LOG_WARN
2338cppflags-$(CONFIG_WLAN_LOG_INFO) += -DWLAN_LOG_INFO
2339cppflags-$(CONFIG_WLAN_LOG_DEBUG) += -DWLAN_LOG_DEBUG
Nirav Shahd6fa0f82018-07-06 15:52:25 +05302340cppflags-$(CONFIG_WLAN_LOG_ENTER) += -DWLAN_LOG_ENTER
2341cppflags-$(CONFIG_WLAN_LOG_EXIT) += -DWLAN_LOG_EXIT
Jeff Johnsonee869842018-04-17 11:14:03 -07002342cppflags-$(WLAN_OPEN_SOURCE) += -DWLAN_OPEN_SOURCE
Jeff Johnsonee869842018-04-17 11:14:03 -07002343cppflags-$(CONFIG_FEATURE_STATS_EXT) += -DWLAN_FEATURE_STATS_EXT
Jeff Johnsonee869842018-04-17 11:14:03 -07002344cppflags-$(CONFIG_QCACLD_FEATURE_NAN) += -DWLAN_FEATURE_NAN
Wu Gao18596ae2019-08-13 17:33:14 +08002345cppflags-$(CONFIG_NDP_SAP_CONCURRENCY_ENABLE) += -DNDP_SAP_CONCURRENCY_ENABLE
Abhishek Ambure995ab5a2019-09-27 19:06:02 +05302346
2347ifeq ($(CONFIG_QCA_IBSS_SUPPORT), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002348cppflags-$(CONFIG_QCA_IBSS_SUPPORT) += -DQCA_IBSS_SUPPORT
Abhishek Ambure995ab5a2019-09-27 19:06:02 +05302349endif
2350
Kai Liuaa88d2f2018-08-13 11:30:11 +08002351cppflags-$(CONFIG_WLAN_SYSFS) += -DWLAN_SYSFS
Rachit Kankaneee1735c2018-08-02 13:19:34 +05302352cppflags-$(CONFIG_FEATURE_WLAN_RMC) += -DFEATURE_WLAN_RMC
Arunk Khandavallica56d4b2018-11-29 15:46:00 +05302353cppflags-$(CONFIG_FEATURE_BECN_STATS) += -DWLAN_FEATURE_BEACON_RECEPTION_STATS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002354
hangtian2b9856f2019-01-25 11:50:39 +08002355#Set RX_PERFORMANCE
2356cppflags-$(CONFIG_RX_PERFORMANCE) += -DRX_PERFORMANCE
hangtiancd2b2862019-01-16 12:43:05 +08002357
Hangtian Zhuc7642602019-09-11 17:47:43 +08002358#Set MULTI_IF_LOG
2359cppflags-$(CONFIG_MULTI_IF_LOG) += -DMULTI_IF_LOG
2360
Hangtian Zhu39e2e212019-09-02 13:34:57 +08002361#Set SLUB_MEM_OPTIMIZE
2362cppflags-$(CONFIG_SLUB_MEM_OPTIMIZE) += -DSLUB_MEM_OPTIMIZE
hangtian1c37fb92019-04-10 11:15:20 +08002363
Hangtian Zhu9a28ed02019-09-24 12:18:20 +08002364#Set DFS_PRI_MULTIPLIER
2365cppflags-$(CONFIG_DFS_PRI_MULTIPLIER) += -DDFS_PRI_MULTIPLIER
2366
2367#Set DFS_OVERRIDE_RF_THRESHOLD
2368cppflags-$(CONFIG_DFS_OVERRIDE_RF_THRESHOLD) += -DDFS_OVERRIDE_RF_THRESHOLD
2369
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002370#Enable OL debug and wmi unified functions
Jeff Johnsonee869842018-04-17 11:14:03 -07002371cppflags-$(CONFIG_ATH_PERF_PWR_OFFLOAD) += -DATH_PERF_PWR_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002372
2373#Disable packet log
Jeff Johnsonee869842018-04-17 11:14:03 -07002374cppflags-$(CONFIG_REMOVE_PKT_LOG) += -DREMOVE_PKT_LOG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002375
2376#Enable 11AC TX
Jeff Johnsonee869842018-04-17 11:14:03 -07002377cppflags-$(CONFIG_ATH_11AC_TXCOMPACT) += -DATH_11AC_TXCOMPACT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002378
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002379#Enable PCI specific APIS (dma, etc)
Jeff Johnsonee869842018-04-17 11:14:03 -07002380cppflags-$(CONFIG_HIF_PCI) += -DHIF_PCI
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002381
Jeff Johnsonee869842018-04-17 11:14:03 -07002382cppflags-$(CONFIG_HIF_SNOC) += -DHIF_SNOC
Houston Hoffman1edffd32016-01-27 16:30:34 -08002383
Nirav Shah52d85aa2018-04-26 14:03:00 +05302384cppflags-$(CONFIG_HL_DP_SUPPORT) += -DCONFIG_HL_SUPPORT
Nirav Shah6ebfe242018-05-09 15:56:12 +05302385cppflags-$(CONFIG_HL_DP_SUPPORT) += -DWLAN_PARTIAL_REORDER_OFFLOAD
Qiwei Cai36bd9de2018-09-03 10:45:47 +08002386cppflags-$(CONFIG_HL_DP_SUPPORT) += -DQCA_COMPUTE_TX_DELAY
2387cppflags-$(CONFIG_HL_DP_SUPPORT) += -DQCA_COMPUTE_TX_DELAY_PER_TID
Nirav Shah52d85aa2018-04-26 14:03:00 +05302388cppflags-$(CONFIG_LL_DP_SUPPORT) += -DCONFIG_LL_DP_SUPPORT
Nirav Shah6ebfe242018-05-09 15:56:12 +05302389cppflags-$(CONFIG_LL_DP_SUPPORT) += -DWLAN_FULL_REORDER_OFFLOAD
Nirav Shah52d85aa2018-04-26 14:03:00 +05302390
Ajit Pal Singh9c098852019-08-19 17:48:19 +05302391# For OOB testing
2392cppflags-$(CONFIG_WLAN_FEATURE_WOW_PULSE) += -DWLAN_FEATURE_WOW_PULSE
2393
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05302394#Enable High Latency related Flags
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002395ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
Nirav Shah52d85aa2018-04-26 14:03:00 +05302396cppflags-y += -DCONFIG_AR6320_SUPPORT \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05302397 -DSDIO_3_0 \
2398 -DHIF_SDIO \
2399 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
2400 -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05302401 -DHIF_MBOX_SLEEP_WAR \
2402 -DDEBUG_HL_LOGGING \
2403 -DQCA_BAD_PEER_TX_FLOW_CL \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05302404 -DCONFIG_SDIO \
2405 -DFEATURE_WLAN_FORCE_SAP_SCC
Sriram Madhvapathi82ec8e32018-06-07 10:20:15 +05302406
2407ifeq ($(CONFIG_SDIO_TRANSFER), adma)
2408cppflags-y += -DCONFIG_SDIO_TRANSFER_ADMA
2409else
2410cppflags-y += -DCONFIG_SDIO_TRANSFER_MAILBOX
2411endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05302412endif
2413
Agrawal Ashishb141b092016-09-02 19:59:26 +05302414ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002415cppflags-y += -DWLAN_FEATURE_DSRC
Zhang Qian47e22ce2018-01-04 15:38:38 +08002416
2417ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002418cppflags-y += -DWLAN_OCB_UT
Zhang Qian47e22ce2018-01-04 15:38:38 +08002419endif
2420
Agrawal Ashishb141b092016-09-02 19:59:26 +05302421endif
2422
Jeff Johnsonee869842018-04-17 11:14:03 -07002423cppflags-$(CONFIG_FEATURE_SKB_PRE_ALLOC) += -DFEATURE_SKB_PRE_ALLOC
bings7762da12017-03-06 07:21:04 +08002424
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002425#Enable USB specific APIS
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002426ifeq ($(CONFIG_HIF_USB), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002427cppflags-y += -DHIF_USB \
Nirav Shah52d85aa2018-04-26 14:03:00 +05302428 -DDEBUG_HL_LOGGING
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002429endif
2430
Ajit Pal Singh0bd748a2018-06-19 11:48:02 +05302431#Enable Genoa specific features.
2432cppflags-$(CONFIG_QCA_HL_NETDEV_FLOW_CONTROL) += -DQCA_HL_NETDEV_FLOW_CONTROL
2433cppflags-$(CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL) += -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL
2434cppflags-$(CONFIG_FEATURE_HL_DBS_GROUP_CREDIT_SHARING) += -DFEATURE_HL_DBS_GROUP_CREDIT_SHARING
2435cppflags-$(CONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE) += -DCONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE
Ajit Pal Singh17634e12019-04-12 11:17:36 +05302436cppflags-$(CONFIG_RX_PN_CHECK_OFFLOAD) += -DCONFIG_RX_PN_CHECK_OFFLOAD
Ajit Pal Singh0bd748a2018-06-19 11:48:02 +05302437
Paul Zhangfaa929c2019-11-12 10:10:44 +08002438cppflags-$(CONFIG_WLAN_SYNC_TSF_TIMER) += -DWLAN_FEATURE_TSF_TIMER_SYNC
Subrat Dash5f36fbe2019-02-12 16:28:14 +05302439cppflags-$(CONFIG_WLAN_SYNC_TSF_PTP) += -DWLAN_FEATURE_TSF_PTP
2440cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS_EXT_GPIO_IRQ) += -DWLAN_FEATURE_TSF_PLUS_EXT_GPIO_IRQ
Subrat Dashb1e61b22019-07-22 14:09:34 +05302441cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS_EXT_GPIO_SYNC) += -DWLAN_FEATURE_TSF_PLUS_EXT_GPIO_SYNC
Ajit Pal Singhcf33f962018-07-19 17:50:47 +05302442cppflags-$(CONFIG_TX_DESC_HI_PRIO_RESERVE) += -DCONFIG_TX_DESC_HI_PRIO_RESERVE
Ajit Pal Singhcf33f962018-07-19 17:50:47 +05302443
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002444#Enable FW logs through ini
Jeff Johnsonee869842018-04-17 11:14:03 -07002445cppflags-y += -DCONFIG_FW_LOGS_BASED_ON_INI
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002446
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002447#Enable power management suspend/resume functionality
Jeff Johnsonee869842018-04-17 11:14:03 -07002448cppflags-$(CONFIG_ATH_BUS_PM) += -DATH_BUS_PM
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002449
2450#Enable FLOWMAC module support
Jeff Johnsonee869842018-04-17 11:14:03 -07002451cppflags-$(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE) += -DATH_SUPPORT_FLOWMAC_MODULE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002452
2453#Enable spectral support
Jeff Johnsonee869842018-04-17 11:14:03 -07002454cppflags-$(CONFIG_ATH_SUPPORT_SPECTRAL) += -DATH_SUPPORT_SPECTRAL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002455
Tiger Yube6e7752019-09-09 13:14:20 +08002456#Enable legacy pktlog
2457cppflags-$(CONFIG_PKTLOG_LEGACY) += -DPKTLOG_LEGACY
2458
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002459#Enable WDI Event support
Jeff Johnsonee869842018-04-17 11:14:03 -07002460cppflags-$(CONFIG_WDI_EVENT_ENABLE) += -DWDI_EVENT_ENABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002461
Tiger Yubf14ba82019-09-09 12:46:22 +08002462#Enable the type_specific_data in the struct ath_pktlog_arg
2463cppflags-$(CONFIG_PKTLOG_HAS_SPECIFIC_DATA) += -DPKTLOG_HAS_SPECIFIC_DATA
2464
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07002465#Endianness selection
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002466ifeq ($(CONFIG_LITTLE_ENDIAN), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002467cppflags-y += -DANI_LITTLE_BYTE_ENDIAN
2468cppflags-y += -DANI_LITTLE_BIT_ENDIAN
2469cppflags-y += -DDOT11F_LITTLE_ENDIAN_HOST
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002470else
Jeff Johnsonee869842018-04-17 11:14:03 -07002471cppflags-y += -DANI_BIG_BYTE_ENDIAN
2472cppflags-y += -DBIG_ENDIAN_HOST
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002473endif
2474
Dundi Ravitejaeab3b8d2018-07-17 18:10:41 +05302475#Enable MWS COEX support for 4G quick TDM and 5G NR pwr limit
2476cppflags-y += -DMWS_COEX
2477
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002478#Enable TX reclaim support
Jeff Johnsonee869842018-04-17 11:14:03 -07002479cppflags-$(CONFIG_TX_CREDIT_RECLAIM_SUPPORT) += -DTX_CREDIT_RECLAIM_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002480
2481#Enable FTM support
Jeff Johnsonee869842018-04-17 11:14:03 -07002482cppflags-$(CONFIG_QCA_WIFI_FTM) += -DQCA_WIFI_FTM
Ryan Hsu6e9db0b2018-06-01 10:45:51 -07002483cppflags-$(CONFIG_NL80211_TESTMODE) += -DQCA_WIFI_FTM_NL80211
2484cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR -DQCA_WIFI_FTM_IOCTL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002485
2486#Enable Checksum Offload support
Jeff Johnsonee869842018-04-17 11:14:03 -07002487cppflags-$(CONFIG_CHECKSUM_OFFLOAD) += -DCHECKSUM_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002488
Sravan Kumar Kairam7efc0132019-03-25 16:13:46 +05302489#Enable IPA Offload support
Jeff Johnsonee869842018-04-17 11:14:03 -07002490cppflags-$(CONFIG_IPA_OFFLOAD) += -DIPA_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002491
Sravan Kumar Kairam7efc0132019-03-25 16:13:46 +05302492cppflags-$(CONFIG_WDI3_IPA_OVER_GSI) += -DIPA_WDI3_GSI
2493
anisha agarwal188d2542017-03-21 13:15:58 -07002494ifeq ($(CONFIG_ARCH_SDX20), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002495cppflags-y += -DSYNC_IPA_READY
bings7762da12017-03-06 07:21:04 +08002496endif
2497
Tiger Yu24ca3362018-11-05 16:49:11 +08002498ifeq ($(CONFIG_ARCH_SDXPOORWILLS), y)
Tiger Yu287056c2018-11-13 16:34:43 +08002499CONFIG_FEATURE_SG := y
2500endif
2501
2502ifeq ($(CONFIG_ARCH_MSM8996), y)
Ajit Pal Singh4c8f6722019-11-14 15:39:26 +05302503ifneq ($(CONFIG_QCN7605_SUPPORT), y)
Tiger Yu287056c2018-11-13 16:34:43 +08002504CONFIG_FEATURE_SG := y
Tiger Yu13cdcc42018-11-29 18:11:22 +08002505CONFIG_RX_THREAD_PRIORITY := y
Tiger Yu287056c2018-11-13 16:34:43 +08002506endif
Ajit Pal Singh4c8f6722019-11-14 15:39:26 +05302507endif
Tiger Yu287056c2018-11-13 16:34:43 +08002508
2509ifeq ($(CONFIG_FEATURE_SG), y)
Tiger Yu24ca3362018-11-05 16:49:11 +08002510cppflags-y += -DFEATURE_SG
2511endif
2512
Tiger Yu13cdcc42018-11-29 18:11:22 +08002513ifeq ($(CONFIG_RX_THREAD_PRIORITY), y)
2514cppflags-y += -DRX_THREAD_PRIORITY
2515endif
2516
Wu Gao0bdcbed2018-12-27 12:12:08 +08002517ifeq ($(CONFIG_SUPPORT_P2P_BY_ONE_INTF_WLAN), y)
2518#sta support to tx P2P action frames
2519cppflags-y += -DSUPPORT_P2P_BY_ONE_INTF_WLAN
2520else
2521#Open P2P device interface only for non-Mobile router use cases
2522cppflags-$(CONFIG_WLAN_OPEN_P2P_INTERFACE) += -DWLAN_OPEN_P2P_INTERFACE
2523endif
Tiger Yu13cdcc42018-11-29 18:11:22 +08002524
Liangwei Dong03e080c2019-07-02 17:06:39 +08002525cppflags-$(CONFIG_WMI_BCN_OFFLOAD) += -DWLAN_WMI_BCN
2526
Rakshith Suresh Patkard9f4e612018-09-12 12:10:38 +05302527#Enable wbuff
2528cppflags-$(CONFIG_WLAN_WBUFF) += -DWLAN_FEATURE_WBUFF
2529
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002530#Enable GTK Offload
Jeff Johnsonee869842018-04-17 11:14:03 -07002531cppflags-$(CONFIG_GTK_OFFLOAD) += -DWLAN_FEATURE_GTK_OFFLOAD
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002532
Jeff Johnsonb8b39762018-04-06 20:08:10 -07002533#Enable External WoW
Jeff Johnsonee869842018-04-17 11:14:03 -07002534cppflags-$(CONFIG_EXT_WOW) += -DWLAN_FEATURE_EXTWOW_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002535
2536#Mark it as SMP Kernel
Jeff Johnsonee869842018-04-17 11:14:03 -07002537cppflags-$(CONFIG_SMP) += -DQCA_CONFIG_SMP
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002538
Jeff Johnsonee869842018-04-17 11:14:03 -07002539cppflags-$(CONFIG_CHNL_MATRIX_RESTRICTION) += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002540
Zhu Jianmin04392c42017-05-12 16:34:53 +08002541#Enable ICMP packet disable powersave feature
Jeff Johnsonee869842018-04-17 11:14:03 -07002542cppflags-$(CONFIG_ICMP_DISABLE_PS) += -DWLAN_ICMP_DISABLE_PS
Zhu Jianmin04392c42017-05-12 16:34:53 +08002543
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07002544#Enable OBSS feature
Jeff Johnsonee869842018-04-17 11:14:03 -07002545cppflags-y += -DQCA_HT_2040_COEX
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07002546
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002547#enable MCC TO SCC switch
Jeff Johnsonee869842018-04-17 11:14:03 -07002548cppflags-$(CONFIG_FEATURE_WLAN_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002549
2550#enable wlan auto shutdown feature
Jeff Johnsonee869842018-04-17 11:14:03 -07002551cppflags-$(CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN) += -DFEATURE_WLAN_AUTO_SHUTDOWN
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002552
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002553#enable AP-AP ACS Optimization
Jeff Johnsonee869842018-04-17 11:14:03 -07002554cppflags-$(CONFIG_FEATURE_WLAN_AP_AP_ACS_OPTIMIZE) += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002555
2556#Enable 4address scheme
Jeff Johnsonee869842018-04-17 11:14:03 -07002557cppflags-$(CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME) += -DFEATURE_WLAN_STA_4ADDR_SCHEME
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002558
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08002559#enable MDM/SDX special config
Jeff Johnsonee869842018-04-17 11:14:03 -07002560cppflags-$(CONFIG_MDM_PLATFORM) += -DMDM_PLATFORM
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08002561
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002562#Disable STA-AP Mode DFS support
Jeff Johnsonee869842018-04-17 11:14:03 -07002563cppflags-$(CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE) += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002564
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002565#Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
Jeff Johnsonee869842018-04-17 11:14:03 -07002566cppflags-$(CONFIG_WLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY) += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002567
2568#Green AP feature
Jeff Johnsonee869842018-04-17 11:14:03 -07002569cppflags-$(CONFIG_QCACLD_FEATURE_GREEN_AP) += -DWLAN_SUPPORT_GREEN_AP
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002570
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +05302571cppflags-$(CONFIG_QCACLD_FEATURE_APF) += -DFEATURE_WLAN_APF
Jeff Johnsonfcc29d42018-07-17 20:36:45 -07002572
2573cppflags-$(CONFIG_WLAN_FEATURE_SARV1_TO_SARV2) += -DWLAN_FEATURE_SARV1_TO_SARV2
Varun Reddy Yeturu29044cd2018-06-28 14:03:10 -07002574#CRYPTO Coverged Component
2575cppflags-$(CONFIG_CRYPTO_COMPONENT) += -DWLAN_CONV_CRYPTO_SUPPORTED \
Kiran Kumar Lokere8dbd85a2018-11-14 17:51:41 -08002576 -DCRYPTO_SET_KEY_CONVERGED \
2577 -DWLAN_CONV_CRYPTO_IE_SUPPORT \
Varun Reddy Yeturu29044cd2018-06-28 14:03:10 -07002578 -DWLAN_CRYPTO_WEP_OS_DERIVATIVE \
2579 -DWLAN_CRYPTO_TKIP_OS_DERIVATIVE \
2580 -DWLAN_CRYPTO_CCMP_OS_DERIVATIVE \
2581 -DWLAN_CRYPTO_GCMP_OS_DERIVATIVE \
2582 -DWLAN_CRYPTO_WAPI_OS_DERIVATIVE \
2583 -DWLAN_CRYPTO_GCM_OS_DERIVATIVE \
2584 -DWLAN_CRYPTO_FILS_OS_DERIVATIVE \
2585 -DWLAN_CRYPTO_OMAC1_OS_DERIVATIVE
Nachiket Kukaded0dd62e2018-05-21 18:39:22 +05302586
Rachit Kankane2a3fd392018-12-06 14:03:57 +05302587cppflags-$(CONFIG_FEATURE_WLAN_FT_IEEE8021X) += -DFEATURE_WLAN_FT_IEEE8021X
2588cppflags-$(CONFIG_FEATURE_WLAN_FT_PSK) += -DFEATURE_WLAN_FT_PSK
2589
Liangwei Dong2fce7162018-08-24 01:07:22 -04002590#Enable host 11d scan
2591cppflags-$(CONFIG_HOST_11D_SCAN) += -DHOST_11D_SCAN
2592
Yun Park637d6482016-10-05 10:51:33 -07002593#Stats & Quota Metering feature
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002594ifeq ($(CONFIG_IPA_OFFLOAD), y)
2595ifeq ($(CONFIG_QCACLD_FEATURE_METERING), y)
Jeff Johnsonee869842018-04-17 11:14:03 -07002596cppflags-y += -DFEATURE_METERING
Yun Park637d6482016-10-05 10:51:33 -07002597endif
Yun Parkb4f591d2017-03-29 15:51:01 -07002598endif
Yun Park637d6482016-10-05 10:51:33 -07002599
Chaoli Zhoub11e18a2019-07-08 15:14:20 +08002600#Define Max IPA interface
2601ifeq ($(CONFIG_IPA_OFFLOAD), y)
2602ifdef CONFIG_NUM_IPA_IFACE
2603cppflags-y += -DMAX_IPA_IFACE=$(CONFIG_NUM_IPA_IFACE)
2604else
2605NUM_IPA_IFACE ?= 3
2606cppflags-y += -DMAX_IPA_IFACE=$(NUM_IPA_IFACE)
2607endif
2608endif
2609
Jeff Johnsonee869842018-04-17 11:14:03 -07002610cppflags-$(CONFIG_TUFELLO_DUAL_FW_SUPPORT) += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
2611cppflags-$(CONFIG_CHANNEL_HOPPING_ALL_BANDS) += -DCHANNEL_HOPPING_ALL_BANDS
gaolez76d2a162017-03-21 19:23:58 +08002612
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002613#Enable Signed firmware support for split binary format
Jeff Johnsonee869842018-04-17 11:14:03 -07002614cppflags-$(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT) += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002615
2616#Enable single firmware binary format
Jeff Johnsonee869842018-04-17 11:14:03 -07002617cppflags-$(CONFIG_QCA_SINGLE_BINARY_SUPPORT) += -DQCA_SINGLE_BINARY_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002618
2619#Enable collecting target RAM dump after kernel panic
Jeff Johnsonee869842018-04-17 11:14:03 -07002620cppflags-$(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC) += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002621
2622#Enable/disable secure firmware feature
Jeff Johnsonee869842018-04-17 11:14:03 -07002623cppflags-$(CONFIG_FEATURE_SECURE_FIRMWARE) += -DFEATURE_SECURE_FIRMWARE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002624
Jeff Johnsonee869842018-04-17 11:14:03 -07002625cppflags-$(CONFIG_ATH_PCIE_ACCESS_DEBUG) += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002626
Jeff Johnson69ba6d02018-04-12 16:05:32 -07002627# Enable feature support for Linux version QCMBR
Jeff Johnsonee869842018-04-17 11:14:03 -07002628cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002629
yuanl2746f072018-09-21 19:19:16 +08002630# Enable feature sync tsf between multi devices
Jeff Johnsonee869842018-04-17 11:14:03 -07002631cppflags-$(CONFIG_WLAN_SYNC_TSF) += -DWLAN_FEATURE_TSF
2632cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS) += -DWLAN_FEATURE_TSF_PLUS
yuanl2746f072018-09-21 19:19:16 +08002633# Enable feature sync tsf for chips based on Adrastea arch
2634cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS_NOIRQ) += -DWLAN_FEATURE_TSF_PLUS_NOIRQ
Yu Wang000dc2f2017-05-26 17:38:48 +08002635
Jeff Johnsonee869842018-04-17 11:14:03 -07002636cppflags-$(CONFIG_ATH_PROCFS_DIAG_SUPPORT) += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
Nirav Shahe8ac3402017-12-31 15:36:32 +05302637
Jeff Johnsonee869842018-04-17 11:14:03 -07002638cppflags-$(CONFIG_HELIUMPLUS) += -DHELIUMPLUS
Manjunathappa Prakash7b0ad462018-04-15 00:37:16 -07002639cppflags-$(CONFIG_RX_OL) += -DRECEIVE_OFFLOAD
chenguo0f3636b2018-05-10 14:24:49 +08002640cppflags-$(CONFIG_TX_TID_OVERRIDE) += -DATH_TX_PRI_OVERRIDE
Jeff Johnsonee869842018-04-17 11:14:03 -07002641cppflags-$(CONFIG_AR900B) += -DAR900B
2642cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
2643cppflags-$(CONFIG_OL_RX_INDICATION_RECORD) += -DOL_RX_INDICATION_RECORD
2644cppflags-$(CONFIG_TSOSEG_DEBUG) += -DTSOSEG_DEBUG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002645
Jeff Johnsonee869842018-04-17 11:14:03 -07002646cppflags-$(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING) += -DENABLE_DEBUG_ADDRESS_MARKING
2647cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
2648cppflags-$(CONFIG_FEATURE_TSO_DEBUG) += -DFEATURE_TSO_DEBUG
Venkata Sharath Chandra Manchalacf572622019-07-29 11:50:57 -07002649cppflags-$(CONFIG_FEATURE_TSO_STATS) += -DFEATURE_TSO_STATS
Venkata Sharath Chandra Manchala06f1f122019-10-29 13:22:15 -07002650cppflags-$(CONFIG_FEATURE_FORCE_WAKE) += -DFORCE_WAKE
Jeff Johnsonee869842018-04-17 11:14:03 -07002651cppflags-$(CONFIG_WLAN_LRO) += -DFEATURE_LRO
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002652
Jeff Johnsonee869842018-04-17 11:14:03 -07002653cppflags-$(CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE) += -DFEATURE_AP_MCC_CH_AVOIDANCE
Tushnim Bhattacharyyaa2c18de2018-03-27 15:00:00 -07002654
Jeff Johnsonee869842018-04-17 11:14:03 -07002655cppflags-$(CONFIG_MPC_UT_FRAMEWORK) += -DMPC_UT_FRAMEWORK
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002656
Jeff Johnsonee869842018-04-17 11:14:03 -07002657cppflags-$(CONFIG_FEATURE_EPPING) += -DWLAN_FEATURE_EPPING
Nirav Shah459bebf2018-01-17 16:59:14 +05302658
Jeff Johnsonee869842018-04-17 11:14:03 -07002659cppflags-$(CONFIG_WLAN_OFFLOAD_PACKETS) += -DWLAN_FEATURE_OFFLOAD_PACKETS
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002660
Jeff Johnsonee869842018-04-17 11:14:03 -07002661cppflags-$(CONFIG_WLAN_FEATURE_DISA) += -DWLAN_FEATURE_DISA
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +05302662
Rajeev Kumar Sirasanagandla4725ae42018-05-24 22:33:34 +05302663cppflags-$(CONFIG_WLAN_FEATURE_ACTION_OUI) += -DWLAN_FEATURE_ACTION_OUI
2664
Jeff Johnsonee869842018-04-17 11:14:03 -07002665cppflags-$(CONFIG_WLAN_FEATURE_FIPS) += -DWLAN_FEATURE_FIPS
Jeff Johnson7869aad2017-05-15 15:46:36 -07002666
Jeff Johnsonee869842018-04-17 11:14:03 -07002667cppflags-$(CONFIG_LFR_SUBNET_DETECTION) += -DFEATURE_LFR_SUBNET_DETECTION
Ravi Joshi61c3c7a2015-11-09 18:41:20 -08002668
Jeff Johnsonee869842018-04-17 11:14:03 -07002669cppflags-$(CONFIG_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +05302670
Jeff Johnsonee869842018-04-17 11:14:03 -07002671cppflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW
Will Huang3cd2b7c2017-11-17 13:16:56 +08002672
Yue Ma91e1c002018-05-24 11:18:36 -07002673cppflags-$(CONFIG_QCA_WIFI_NAPIER_EMULATION) += -DQCA_WIFI_NAPIER_EMULATION
Jeff Johnsonee869842018-04-17 11:14:03 -07002674cppflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2
2675cppflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF
2676cppflags-$(CONFIG_QCA_WIFI_QCA6290) += -DQCA_WIFI_QCA6290
Venkata Sharath Chandra Manchala27a42962018-06-08 17:51:44 -07002677cppflags-$(CONFIG_QCA6390_HEADERS_DEF) += -DQCA6390_HEADERS_DEF
2678cppflags-$(CONFIG_QCA_WIFI_QCA6390) += -DQCA_WIFI_QCA6390
Manjunathappa Prakash458f6fe2019-05-13 18:33:01 -07002679cppflags-$(CONFIG_QCA6490_HEADERS_DEF) += -DQCA6490_HEADERS_DEF
2680cppflags-$(CONFIG_QCA_WIFI_QCA6490) += -DQCA_WIFI_QCA6490
Jeff Johnsonee869842018-04-17 11:14:03 -07002681cppflags-$(CONFIG_QCA_WIFI_QCA8074) += -DQCA_WIFI_QCA8074
Venkata Sharath Chandra Manchala1619b732018-10-04 10:52:58 -07002682cppflags-$(CONFIG_SCALE_INCLUDES) += -DSCALE_INCLUDES
Jeff Johnsonee869842018-04-17 11:14:03 -07002683cppflags-$(CONFIG_QCA_WIFI_QCA8074_VP) += -DQCA_WIFI_QCA8074_VP
2684cppflags-$(CONFIG_DP_INTR_POLL_BASED) += -DDP_INTR_POLL_BASED
2685cppflags-$(CONFIG_TX_PER_PDEV_DESC_POOL) += -DTX_PER_PDEV_DESC_POOL
2686cppflags-$(CONFIG_DP_TRACE) += -DCONFIG_DP_TRACE
2687cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
2688cppflags-$(CONFIG_TSO_DEBUG_LOG_ENABLE) += -DTSO_DEBUG_LOG_ENABLE
2689cppflags-$(CONFIG_DP_LFR) += -DDP_LFR
Saket Jha8d70a682019-07-10 19:57:27 -07002690cppflags-$(CONFIG_DUP_RX_DESC_WAR) += -DDUP_RX_DESC_WAR
Saket Jha99531502019-08-21 15:00:49 -07002691cppflags-$(CONFIG_DP_TXRX_SOC_ATTACH) += -DDP_TXRX_SOC_ATTACH
Jeff Johnsonee869842018-04-17 11:14:03 -07002692cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
Qiwei Caia01a9622018-07-11 10:02:03 +08002693cppflags-$(CONFIG_WLAN_FEATURE_BMI) += -DWLAN_FEATURE_BMI
Visweswara Tanuku2e839e52019-06-11 10:16:30 +05302694cppflags-$(CONFIG_QCA_TX_PADDING_CREDIT_SUPPORT) += -DQCA_TX_PADDING_CREDIT_SUPPORT
Ajit Pal Singh25caf992018-10-15 15:10:18 +05302695cppflags-$(CONFIG_QCN7605_SUPPORT) += -DQCN7605_SUPPORT -DPLATFORM_GENOA
Nirav Shahb34413a2018-07-31 14:26:35 +05302696cppflags-$(CONFIG_HIF_REG_WINDOW_SUPPORT) += -DHIF_REG_WINDOW_SUPPORT
Qiwei Cai50a21082018-08-07 14:30:09 +08002697cppflags-$(CONFIG_WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY) += -DWLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY
Venkata Sharath Chandra Manchalaeb2d2582019-05-01 13:57:11 -07002698cppflags-$(CONFIG_HIF_CE_DEBUG_DATA_BUF) += -DHIF_CE_DEBUG_DATA_BUF
Nirav Shahc8047a82018-06-22 16:39:01 +05302699ccflags-$(CONFIG_QCA_LL_TX_FLOW_CONTROL_RESIZE) += -DQCA_LL_TX_FLOW_CONTROL_RESIZE
Nirav Shahaf1260f2018-09-13 23:28:13 +05302700ccflags-$(CONFIG_HIF_PCI) += -DCE_SVC_CMN_INIT
2701ccflags-$(CONFIG_HIF_SNOC) += -DCE_SVC_CMN_INIT
Nirav Shahc8047a82018-06-22 16:39:01 +05302702
psimha0b6bb892017-10-10 14:28:34 -07002703ifeq ($(CONFIG_QCA6290_11AX), y)
Vevek Venkatesanaa66a192019-06-19 15:15:15 +05302704cppflags-y += -DQCA_WIFI_QCA6290_11AX -DQCA_WIFI_QCA6290_11AX_MU_UL
chenguoac840e52018-12-21 13:47:53 +08002705endif
2706
2707ifeq ($(CONFIG_LITHIUM), y)
chenguo5958e5a2018-09-27 19:19:57 +08002708cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_AC_BASED_FLOW_CONTROL
psimha0b6bb892017-10-10 14:28:34 -07002709endif
2710
Manjunathappa Prakasheb1ec862019-07-28 00:01:18 -07002711cppflags-$(CONFIG_WLAN_CLD_PM_QOS) += -DCLD_PM_QOS
Nisha Menond6c2c372019-11-01 20:02:56 -07002712cppflags-$(CONFIG_REO_DESC_DEFER_FREE) += -DREO_DESC_DEFER_FREE
Jeff Johnsonee869842018-04-17 11:14:03 -07002713cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX
2714cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX_BSS_COLOR
Kiran Kumar Lokere1f96b4a2018-08-22 14:47:11 -07002715cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DSUPPORT_11AX_D3
Krishna Kumaar Natarajan639c6ff2017-02-13 14:01:04 -08002716
Sravan Kumar Kairam7bca07e2018-07-05 18:32:22 +05302717cppflags-$(CONFIG_LITHIUM) += -DFEATURE_AST
Sravan Kumar Kairam87cd08e2018-09-05 19:29:12 +05302718cppflags-$(CONFIG_LITHIUM) += -DPEER_PROTECTED_ACCESS
Sravan Kumar Kairam782f9c12019-03-25 23:03:20 +05302719cppflags-$(CONFIG_LITHIUM) += -DSERIALIZE_QUEUE_SETUP
Jinwei Chendeb99362019-07-17 16:04:05 +08002720cppflags-$(CONFIG_LITHIUM) += -DDP_RX_PKT_NO_PEER_DELIVER
Krunal Soni888d4012019-02-25 16:47:21 -08002721cppflags-$(CONFIG_VERBOSE_DEBUG) += -DENABLE_VERBOSE_DEBUG
Mohit Khannacf139fe2019-01-28 12:22:14 -08002722cppflags-$(CONFIG_RX_DESC_DEBUG_CHECK) += -DRX_DESC_DEBUG_CHECK
Jinwei Chen795728d2019-11-07 16:23:20 +08002723cppflags-$(CONFIG_REGISTER_OP_DEBUG) += -DHAL_REGISTER_WRITE_DEBUG
Jinwei Chen230918f2019-11-14 13:41:16 +08002724cppflags-$(CONFIG_ENABLE_QDF_PTR_HASH_DEBUG) += -DENABLE_QDF_PTR_HASH_DEBUG
Abhishek Singhed197482018-09-05 13:22:02 +05302725#Enable STATE MACHINE HISTORY
2726cppflags-$(CONFIG_SM_ENG_HIST) += -DSM_ENG_HIST_ENABLE
sandeep puligilla4afcb112019-04-23 13:42:51 -07002727cppflags-$(CONFIG_FEATURE_VDEV_RSP_WAKELOCK) += -DFEATURE_VDEV_RSP_WAKELOCK
Abhishek Singhed197482018-09-05 13:22:02 +05302728
Qiwei Caie689a262018-07-26 15:50:22 +08002729# Vendor Commands
2730cppflags-$(CONFIG_FEATURE_RSSI_MONITOR) += -DFEATURE_RSSI_MONITOR
2731cppflags-$(CONFIG_FEATURE_BSS_TRANSITION) += -DFEATURE_BSS_TRANSITION
2732cppflags-$(CONFIG_FEATURE_STATION_INFO) += -DFEATURE_STATION_INFO
2733cppflags-$(CONFIG_FEATURE_TX_POWER) += -DFEATURE_TX_POWER
2734cppflags-$(CONFIG_FEATURE_OTA_TEST) += -DFEATURE_OTA_TEST
2735cppflags-$(CONFIG_FEATURE_ACTIVE_TOS) += -DFEATURE_ACTIVE_TOS
2736cppflags-$(CONFIG_FEATURE_SAR_LIMITS) += -DFEATURE_SAR_LIMITS
2737cppflags-$(CONFIG_FEATURE_CONCURRENCY_MATRIX) += -DFEATURE_CONCURRENCY_MATRIX
2738cppflags-$(CONFIG_FEATURE_SAP_COND_CHAN_SWITCH) += -DFEATURE_SAP_COND_CHAN_SWITCH
Rachit Kankane026e77a2018-07-31 16:21:09 +05302739
2740#if converged p2p is enabled
2741ifeq ($(CONFIG_CONVERGED_P2P_ENABLE), y)
Qiwei Caie689a262018-07-26 15:50:22 +08002742cppflags-$(CONFIG_FEATURE_P2P_LISTEN_OFFLOAD) += -DFEATURE_P2P_LISTEN_OFFLOAD
Rachit Kankane026e77a2018-07-31 16:21:09 +05302743endif
Qiwei Caie689a262018-07-26 15:50:22 +08002744
Sourav Mohapatra2a67b0e2019-10-15 17:59:59 +05302745#Enable support to get ANI value
2746ifeq ($(CONFIG_ANI_LEVEL_REQUEST), y)
2747cppflags-y += -DFEATURE_ANI_LEVEL_REQUEST
2748endif
2749
Qiwei Caidcb73b02018-09-17 19:58:29 +08002750#Flags to enable/disable WMI APIs
2751cppflags-$(CONFIG_WMI_ROAM_SUPPORT) += -DWMI_ROAM_SUPPORT
2752cppflags-$(CONFIG_WMI_CONCURRENCY_SUPPORT) += -DWMI_CONCURRENCY_SUPPORT
2753cppflags-$(CONFIG_WMI_STA_SUPPORT) += -DWMI_STA_SUPPORT
2754
Vevek Venkatesan6230c332019-06-28 18:27:05 +05302755cppflags-y += -DWMI_MULTI_MAC_SVC
2756
Leo Chang5f7a1e02016-11-04 14:04:26 -07002757# Dummy flag for WIN/MCL converged data path compilation
Jeff Johnsonee869842018-04-17 11:14:03 -07002758cppflags-y += -DDP_PRINT_ENABLE=0
2759cppflags-y += -DATH_SUPPORT_WRAP=0
2760cppflags-y += -DQCA_HOST2FW_RXBUF_RING
Vevek Venkatesandba9bc02019-06-18 18:16:22 +05302761cppflags-y += -DDP_FLOW_CTL
2762cppflags-y += -DDP_PEER_EXTENDED_API
2763cppflags-y += -DDP_POWER_SAVE
2764cppflags-y += -DDP_CON_MON
2765cppflags-y += -DDP_MOB_DEFS
2766cppflags-y += -DDP_PRINT_NO_CONSOLE
2767cppflags-y += -DDP_INTR_POLL_BOTH
2768cppflags-y += -DDP_INVALID_PEER_ASSERT
Yeshwanth Sriram Guntuka4382d422019-11-14 12:19:11 +05302769
2770ifdef CONFIG_HIF_LARGE_CE_RING_HISTORY
2771ccflags-y += -DHIF_CE_HISTORY_MAX=$(CONFIG_HIF_LARGE_CE_RING_HISTORY)
2772endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07002773#endof dummy flags
2774
Nirav Shah8ba94a52018-06-07 09:06:25 +05302775ccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os
2776
Arif Hussain757b45f2017-02-11 16:47:06 -08002777# DFS component
Rachit Kankaneb57ea612018-09-10 12:36:20 +05302778cppflags-$(CONFIG_WLAN_DFS_STATIC_MEM_ALLOC) += -DWLAN_DFS_STATIC_MEM_ALLOC
Wen Gong01a2c632018-04-11 18:34:55 +08002779cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_MCL_DFS_SUPPORT
Jeff Johnsoneadeb932018-04-07 15:32:36 -07002780ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)
Wen Gong01a2c632018-04-11 18:34:55 +08002781cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_FULL_OFFLOAD
Arif Hussain02c2b632018-03-08 23:09:21 -08002782else
Wen Gong01a2c632018-04-11 18:34:55 +08002783cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_PARTIAL_OFFLOAD
Arif Hussain02c2b632018-03-08 23:09:21 -08002784endif
Wen Gong01a2c632018-04-11 18:34:55 +08002785cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DDFS_COMPONENT_ENABLE
2786cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_USE_POLICY_MANAGER
2787cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
Arif Hussain757b45f2017-02-11 16:47:06 -08002788
Jeff Johnsonee869842018-04-17 11:14:03 -07002789cppflags-$(CONFIG_WLAN_DEBUGFS) += -DWLAN_DEBUGFS
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -07002790
Jeff Johnsonee869842018-04-17 11:14:03 -07002791cppflags-$(CONFIG_DYNAMIC_DEBUG) += -DFEATURE_MULTICAST_HOST_FW_MSGS
Zhu Jianmin35fcd0d2017-08-30 10:47:31 +08002792
Jeff Johnsonee869842018-04-17 11:14:03 -07002793cppflags-$(CONFIG_ENABLE_SMMU_S1_TRANSLATION) += -DENABLE_SMMU_S1_TRANSLATION
Himanshu Agarwaledf30dc2017-06-05 15:54:27 +05302794
Ashish Kumar Dhanotiya2af7f562018-07-24 15:52:46 +05302795#Flag to enable/disable MTRACE feature
2796cppflags-$(CONFIG_ENABLE_MTRACE_LOG) += -DENABLE_MTRACE_LOG
2797
Pragaspathi Thilagaraj1f3f99f2019-04-24 23:48:47 +05302798#Flag to enable/disable Adaptive 11r feature
2799cppflags-$(CONFIG_ADAPTIVE_11R) += -DWLAN_ADAPTIVE_11R
2800
Alok Kumarb64650c2018-03-23 17:05:11 +05302801#Flag to enable NUD tracking
Jeff Johnsonee869842018-04-17 11:14:03 -07002802cppflags-$(CONFIG_WLAN_NUD_TRACKING) += -DWLAN_NUD_TRACKING
2803
Ashish Kumar Dhanotiya3f78e682018-03-14 11:19:27 +05302804#Flag to enable set and get disable channel list feature
2805cppflags-$(CONFIG_DISABLE_CHANNEL_LIST) += -DDISABLE_CHANNEL_LIST
2806
Abhinav Kumardbbfd2c2019-05-07 12:22:06 +05302807#Flag to enable/disable WIPS feature
2808cppflags-$(CONFIG_WLAN_BCN_RECV_FEATURE) += -DWLAN_BCN_RECV_FEATURE
2809
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05302810#Flag to enable/disable LTE COEX support
Ashish Kumar Dhanotiyaddeb4d72019-01-08 21:25:30 +05302811cppflags-$(CONFIG_LTE_COEX) += -DLTE_COEX
Ashish Kumar Dhanotiyaaa9fdbb2018-12-14 15:29:14 +05302812
2813#Flag to enable/disable HOST_OPCLASS
2814cppflags-$(CONFIG_HOST_OPCLASS) += -DHOST_OPCLASS
2815
Ashish Kumar Dhanotiyaddeb4d72019-01-08 21:25:30 +05302816#Flag to enable/disable TARGET_11D_SCAN
2817cppflags-$(CONFIG_TARGET_11D_SCAN) += -DTARGET_11D_SCAN
2818
Ashish Kumar Dhanotiya2168aad2019-06-12 20:51:36 +05302819#Flag to enable/disable avoid acs frequency list feature
2820cppflags-$(CONFIG_SAP_AVOID_ACS_FREQ_LIST) += -DSAP_AVOID_ACS_FREQ_LIST
2821
Rachit Kankanef6834c42018-08-02 18:47:50 +05302822#Flag to enable Dynamic Voltage WDCVS (Config Voltage Mode)
2823cppflags-$(CONFIG_WLAN_DYNAMIC_CVM) += -DFEATURE_WLAN_DYNAMIC_CVM
2824
Qun Zhangef655622019-02-25 10:48:10 +08002825#Flag to enable get firmware state feature
2826cppflags-$(CONFIG_QCACLD_FEATURE_FW_STATE) += -DFEATURE_FW_STATE
2827
Jiani Liua5f17222019-03-04 16:22:33 +08002828#Flag to enable set coex configuration feature
2829cppflags-$(CONFIG_QCACLD_FEATURE_COEX_CONFIG) += -DFEATURE_COEX_CONFIG
2830
stonez2d686482019-03-12 14:54:26 +08002831#Flag to enable MPTA helper feature
2832cppflags-$(CONFIG_QCACLD_FEATURE_MPTA_HELPER) += -DFEATURE_MPTA_HELPER
2833
guangde4853c402019-05-06 15:54:04 +08002834#Flag to enable get hw capability
2835cppflags-$(CONFIG_QCACLD_FEATURE_HW_CAPABILITY) += -DFEATURE_HW_CAPABILITY
2836
Nirav Shah6f261332019-03-04 12:29:52 +05302837cppflags-$(CONFIG_DATA_CE_SW_INDEX_NO_INLINE_UPDATE) += -DDATA_CE_SW_INDEX_NO_INLINE_UPDATE
2838
Varun Reddy Yeturucbaa0042019-05-16 14:10:02 -07002839#Flag to enable Multi page memory allocation for RX descriptor pool
2840cppflags-$(CONFIG_QCACLD_RX_DESC_MULTI_PAGE_ALLOC) += -DRX_DESC_MULTI_PAGE_ALLOC
2841
Rakesh Pillaif41fe0c2019-06-05 01:10:05 +05302842cppflags-$(CONFIG_WLAN_FEATURE_DP_EVENT_HISTORY) += -DWLAN_FEATURE_DP_EVENT_HISTORY
Venkata Sharath Chandra Manchalaaf9e44a2019-06-18 18:10:16 -07002843cppflags-$(CONFIG_WLAN_DP_PER_RING_TYPE_CONFIG) += -DWLAN_DP_PER_RING_TYPE_CONFIG
Nirav Shaha43f6dc2019-07-24 14:32:25 +05302844cppflags-$(CONFIG_SAP_DHCP_FW_IND) += -DSAP_DHCP_FW_IND
Jinwei Chen54235792019-10-11 10:36:47 +08002845cppflags-$(CONFIG_WLAN_DP_PENDING_MEM_FLUSH) += -DWLAN_DP_PENDING_MEM_FLUSH
Alok Kumara6bdc6f2019-11-08 11:52:38 +05302846cppflags-$(CONFIG_WLAN_SUPPORT_DATA_STALL) += -DWLAN_SUPPORT_DATA_STALL
Nirav Shahfb9b1df2019-11-15 11:40:52 +05302847cppflags-$(CONFIG_WLAN_SUPPORT_TXRX_HL_BUNDLE) += -DWLAN_SUPPORT_TXRX_HL_BUNDLE
Rakesh Pillaif41fe0c2019-06-05 01:10:05 +05302848
Dustin Brown93abc2c2018-10-22 13:56:01 -07002849ifdef CONFIG_MAX_LOGS_PER_SEC
2850ccflags-y += -DWLAN_MAX_LOGS_PER_SEC=$(CONFIG_MAX_LOGS_PER_SEC)
2851endif
2852
Dustin Brown099048b2018-08-30 15:04:29 -07002853ifdef CONFIG_SCHED_HISTORY_SIZE
2854ccflags-y += -DWLAN_SCHED_HISTORY_SIZE=$(CONFIG_SCHED_HISTORY_SIZE)
2855endif
2856
Nirav Shah997e0832018-06-06 17:49:12 +05302857# configure log buffer size
2858ifdef CONFIG_CFG_NUM_DP_TRACE_RECORD
2859ccflags-y += -DMAX_QDF_DP_TRACE_RECORDS=$(CONFIG_CFG_NUM_DP_TRACE_RECORD)
2860endif
2861
2862ifdef CONFIG_CFG_NUM_HTC_CREDIT_HISTORY
2863ccflags-y += -DHTC_CREDIT_HISTORY_MAX=$(CONFIG_CFG_NUM_HTC_CREDIT_HISTORY)
2864endif
2865
2866ifdef CONFIG_CFG_NUM_WMI_EVENT_HISTORY
2867ccflags-y += -DWMI_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_EVENT_HISTORY)
2868endif
2869
2870ifdef CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY
2871ccflags-y += -DWMI_MGMT_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY)
2872endif
2873
2874ifdef CONFIG_CFG_NUM_TX_RX_HISTOGRAM
2875ccflags-y += -DNUM_TX_RX_HISTOGRAM=$(CONFIG_CFG_NUM_TX_RX_HISTOGRAM)
2876endif
2877
2878ifdef CONFIG_CFG_NUM_RX_IND_RECORD
2879ccflags-y += -DOL_RX_INDICATION_MAX_RECORDS=$(CONFIG_CFG_NUM_RX_IND_RECORD)
2880endif
2881
Qiwei Caiad9b01c2018-07-09 17:21:31 +08002882ifdef CONFIG_CFG_NUM_ROAM_DEBUG_RECORD
2883ccflags-y += -DWLAN_ROAM_DEBUG_MAX_REC=$(CONFIG_CFG_NUM_ROAM_DEBUG_RECORD)
2884endif
2885
Rachit Kankane8863cba2018-06-05 17:31:48 +05302886ifdef CONFIG_CFG_PMO_WOW_FILTERS_MAX
2887ccflags-y += -DPMO_WOW_FILTERS_MAX=$(CONFIG_CFG_PMO_WOW_FILTERS_MAX)
2888endif
Nirav Shah997e0832018-06-06 17:49:12 +05302889
jsreekumac44b922018-06-12 20:18:39 +05302890ifdef CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV
2891ccflags-y += -DCFG_TGT_DEFAULT_GTK_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV)
2892endif
2893
Ajit Pal Singha70e3152019-01-03 17:13:41 +05302894ifdef CONFIG_TGT_NUM_MSDU_DESC
2895ccflags-y += -DCFG_TGT_NUM_MSDU_DESC=$(CONFIG_TGT_NUM_MSDU_DESC)
2896endif
2897
Ajit Pal Singh7fef54a2019-10-09 18:32:16 +05302898ifdef CONFIG_HTC_MAX_MSG_PER_BUNDLE_TX
2899ccflags-y += -DCFG_HTC_MAX_MSG_PER_BUNDLE_TX=$(CONFIG_HTC_MAX_MSG_PER_BUNDLE_TX)
2900endif
2901
jsreekumac44b922018-06-12 20:18:39 +05302902ifdef CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV
2903ccflags-y += -DCFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV)
2904endif
2905
2906ifdef CONFIG_CFG_MAX_PERIODIC_TX_PTRNS
2907ccflags-y += -DWMA_MAXNUM_PERIODIC_TX_PTRNS=$(CONFIG_CFG_MAX_PERIODIC_TX_PTRNS)
2908endif
2909
2910ifdef CONFIG_CFG_MAX_STA_VDEVS
2911ccflags-y += -DCFG_TGT_DEFAULT_MAX_STA_VDEVS=$(CONFIG_CFG_MAX_STA_VDEVS)
2912endif
2913
Rachit Kankane0106e382018-05-16 18:59:28 +05302914ifdef CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS
2915ccflags-y += -DNUM_OF_ADDITIONAL_FW_PEERS=$(CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS)
2916endif
2917
jsreekumac44b922018-06-12 20:18:39 +05302918ifdef CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES
2919ccflags-y += -DCFG_TGT_NUM_TDLS_CONN_TABLE_ENTRIES=$(CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES)
2920endif
2921
Nirav Shahd1fce912019-10-24 10:12:23 +05302922ifdef CONFIG_CFG_TGT_AST_SKID_LIMIT
2923ccflags-y += -DCFG_TGT_AST_SKID_LIMIT=$(CONFIG_CFG_TGT_AST_SKID_LIMIT)
2924endif
2925
Nirav Shah2b3843e2019-10-24 15:10:46 +05302926ifdef CONFIG_TX_RESOURCE_HIGH_TH_IN_PER
2927ccflags-y += -DTX_RESOURCE_HIGH_TH_IN_PER=$(CONFIG_TX_RESOURCE_HIGH_TH_IN_PER)
2928endif
2929
2930ifdef CONFIG_TX_RESOURCE_LOW_TH_IN_PER
2931ccflags-y += -DTX_RESOURCE_LOW_TH_IN_PER=$(CONFIG_TX_RESOURCE_LOW_TH_IN_PER)
2932endif
2933
Dustin Browna19834b2019-02-04 14:40:26 -08002934CONFIG_WLAN_MAX_PSOCS ?= 1
2935ccflags-y += -DWLAN_MAX_PSOCS=$(CONFIG_WLAN_MAX_PSOCS)
2936
2937CONFIG_WLAN_MAX_PDEVS ?= 1
2938ccflags-y += -DWLAN_MAX_PDEVS=$(CONFIG_WLAN_MAX_PDEVS)
2939
2940CONFIG_WLAN_MAX_VDEVS ?= 5
2941ccflags-y += -DWLAN_MAX_VDEVS=$(CONFIG_WLAN_MAX_VDEVS)
2942
Pragaspathi Thilagaraj6c88d402019-07-02 18:41:34 +05302943#Maximum pending commands for a vdev is calculated in vdev create handler
2944#by WLAN_SER_MAX_PENDING_CMDS/WLAN_SER_MAX_VDEVS. For SAP case, we will need
2945#to accommodate 32 Pending commands to handle multiple STA sending
2946#deauth/disassoc at the same time and for STA vdev,4 non scan pending commands
2947#are supported. So calculate WLAN_SER_MAX_PENDING_COMMANDS based on the SAP
2948#modes supported and no of STA vdev total non scan pending queue. Reserve
2949#additional 3 pending commands for WLAN_SER_MAX_PENDING_CMDS_AP to account for
2950#other commands like hardware mode change.
2951
2952ifdef CONFIG_SIR_SAP_MAX_NUM_PEERS
2953CONFIG_WLAN_SER_MAX_PENDING_CMDS_AP ?=$(CONFIG_SIR_SAP_MAX_NUM_PEERS)
2954else
2955CONFIG_WLAN_SER_MAX_PENDING_CMDS_AP ?=32
2956endif
2957ccflags-y += -DWLAN_SER_MAX_PENDING_CMDS_AP=$(CONFIG_WLAN_SER_MAX_PENDING_CMDS_AP)+3
2958
2959CONFIG_WLAN_SER_MAX_PENDING_CMDS_STA ?= 4
2960ccflags-y += -DWLAN_SER_MAX_PENDING_CMDS_STA=$(CONFIG_WLAN_SER_MAX_PENDING_CMDS_STA)
2961
2962CONFIG_WLAN_MAX_PENDING_CMDS ?= $(CONFIG_WLAN_SER_MAX_PENDING_CMDS_AP)*3+$(CONFIG_WLAN_SER_MAX_PENDING_CMDS_STA)*2
2963
2964ccflags-y += -DWLAN_SER_MAX_PENDING_CMDS=$(CONFIG_WLAN_MAX_PENDING_CMDS)
2965
Dustin Browna19834b2019-02-04 14:40:26 -08002966CONFIG_WLAN_PDEV_MAX_VDEVS ?= $(CONFIG_WLAN_MAX_VDEVS)
2967ccflags-y += -DWLAN_PDEV_MAX_VDEVS=$(CONFIG_WLAN_PDEV_MAX_VDEVS)
2968
2969CONFIG_WLAN_PSOC_MAX_VDEVS ?= $(CONFIG_WLAN_MAX_VDEVS)
2970ccflags-y += -DWLAN_PSOC_MAX_VDEVS=$(CONFIG_WLAN_PSOC_MAX_VDEVS)
Rachit Kankane154559c2018-07-12 14:02:30 +05302971
Harprit Chhabada3946d612019-03-07 16:49:18 -08002972CONFIG_MAX_SCAN_CACHE_SIZE ?= 300
2973ccflags-y += -DMAX_SCAN_CACHE_SIZE=$(CONFIG_MAX_SCAN_CACHE_SIZE)
2974CONFIG_SCAN_MAX_REST_TIME ?= 0
2975ccflags-y += -DSCAN_MAX_REST_TIME=$(CONFIG_SCAN_MAX_REST_TIME)
2976CONFIG_SCAN_MIN_REST_TIME ?= 0
2977ccflags-y += -DSCAN_MIN_REST_TIME=$(CONFIG_SCAN_MIN_REST_TIME)
2978CONFIG_SCAN_BURST_DURATION ?= 0
2979ccflags-y += -DSCAN_BURST_DURATION=$(CONFIG_SCAN_BURST_DURATION)
2980CONFIG_SCAN_PROBE_SPACING_TIME ?= 0
2981ccflags-y += -DSCAN_PROBE_SPACING_TIME=$(CONFIG_SCAN_PROBE_SPACING_TIME)
2982CONFIG_SCAN_PROBE_DELAY ?= 0
2983ccflags-y += -DSCAN_PROBE_DELAY=$(CONFIG_SCAN_PROBE_DELAY)
2984CONFIG_SCAN_MAX_SCAN_TIME ?= 30000
2985ccflags-y += -DSCAN_MAX_SCAN_TIME=$(CONFIG_SCAN_MAX_SCAN_TIME)
2986CONFIG_SCAN_NETWORK_IDLE_TIMEOUT ?= 0
2987ccflags-y += -DSCAN_NETWORK_IDLE_TIMEOUT=$(CONFIG_SCAN_NETWORK_IDLE_TIMEOUT)
Jianmin Zhu0332a6c2019-04-16 16:43:36 +08002988CONFIG_HIDDEN_SSID_TIME ?= 0xFFFFFFFF
Harprit Chhabada3946d612019-03-07 16:49:18 -08002989ccflags-y += -DHIDDEN_SSID_TIME=$(CONFIG_HIDDEN_SSID_TIME)
2990CONFIG_SCAN_CHAN_STATS_EVENT_ENAB ?= false
2991ccflags-y += -DSCAN_CHAN_STATS_EVENT_ENAB=$(CONFIG_SCAN_CHAN_STATS_EVENT_ENAB)
Tushnim Bhattacharyya72d81202019-07-23 15:15:58 -07002992CONFIG_MAX_BCN_PROBE_IN_SCAN_QUEUE ?= 150
2993ccflags-y += -DMAX_BCN_PROBE_IN_SCAN_QUEUE=$(CONFIG_MAX_BCN_PROBE_IN_SCAN_QUEUE)
Harprit Chhabada3946d612019-03-07 16:49:18 -08002994
2995
Tushnim Bhattacharyyac55e9a72019-07-23 14:23:33 -07002996CONFIG_MGMT_DESC_POOL_MAX ?= 64
2997ccflags-y += -DMGMT_DESC_POOL_MAX=$(CONFIG_MGMT_DESC_POOL_MAX)
2998
Rachit Kankane154559c2018-07-12 14:02:30 +05302999ifdef CONFIG_SIR_SAP_MAX_NUM_PEERS
3000ccflags-y += -DSIR_SAP_MAX_NUM_PEERS=$(CONFIG_SIR_SAP_MAX_NUM_PEERS)
3001endif
3002
Ajit Pal Singh72100442018-12-04 17:04:36 +05303003ifdef CONFIG_BEACON_TX_OFFLOAD_MAX_VDEV
3004ccflags-y += -DCFG_TGT_DEFAULT_BEACON_TX_OFFLOAD_MAX_VDEV=$(CONFIG_BEACON_TX_OFFLOAD_MAX_VDEV)
3005endif
3006
Rajeev Kumar4a8d2642018-09-07 17:29:28 -07003007ifdef CONFIG_LOCK_STATS_ON
3008ccflags-y += -DQDF_LOCK_STATS=1
3009ccflags-y += -DQDF_LOCK_STATS_DESTROY_PRINT=0
Lihua Liue98a1352019-06-18 18:38:08 +08003010ifneq ($(CONFIG_ARCH_SDXPRAIRIE), y)
Rajeev Kumar4a8d2642018-09-07 17:29:28 -07003011ccflags-y += -DQDF_LOCK_STATS_BUG_ON=1
Lihua Liue98a1352019-06-18 18:38:08 +08003012endif
Rajeev Kumar4a8d2642018-09-07 17:29:28 -07003013ccflags-y += -DQDF_LOCK_STATS_LIST=1
3014ccflags-y += -DQDF_LOCK_STATS_LIST_SIZE=256
3015endif
3016
Visweswara Tanuku0b2e5e82019-03-18 14:39:54 +05303017ifdef CONFIG_FW_THERMAL_THROTTLE
3018ccflags-y += -DFW_THERMAL_THROTTLE_SUPPORT
3019endif
3020
Sravan Kumar Kairamd68f27c2019-03-22 18:25:50 +05303021cppflags-y += -DFEATURE_NBUFF_REPLENISH_TIMER
Sravan Kumar Kairam0c3f7322019-04-26 16:22:28 +05303022cppflags-y += -DPEER_CACHE_RX_PKTS
Sravan Kumar Kairam42cedde2019-07-10 12:57:17 +05303023cppflags-y += -DPCIE_REG_WINDOW_LOCAL_NO_CACHE
Sravan Kumar Kairamd68f27c2019-03-22 18:25:50 +05303024
Jianmin Zhubc999992019-10-22 23:32:56 +08003025cppflags-y += -DSERIALIZE_VDEV_RESP
Abhishek Ambure2ac5dec2019-05-27 14:56:56 +05303026cppflags-y += -DTGT_IF_VDEV_MGR_CONV
Abhishek Ambure2ac5dec2019-05-27 14:56:56 +05303027
Amar Singhal40dd5192019-08-21 12:19:25 -07003028cppflags-y += -DCONFIG_CHAN_NUM_API
3029cppflags-y += -DCONFIG_CHAN_FREQ_API
3030
3031cppflags-$(CONFIG_BAND_6GHZ) += -DCONFIG_BAND_6GHZ
Sandeep Puligilla425a5832019-11-15 18:32:22 -08003032cppflags-$(CONFIG_6G_SCAN_CHAN_SORT_ALGO) += -DFEATURE_6G_SCAN_CHAN_SORT_ALGO
Amar Singhal40dd5192019-08-21 12:19:25 -07003033
Jeff Johnson0187c622019-01-04 06:39:44 -08003034ccflags-$(CONFIG_HASTINGS_BT_WAR) += -DHASTINGS_BT_WAR
3035
Vevek Venkatesan8b579f42019-06-28 18:08:52 +05303036cppflags-$(CONFIG_SLUB_DEBUG_ON) += -DHIF_CONFIG_SLUB_DEBUG_ON
Venkata Sharath Chandra Manchala9173dd52019-11-14 17:01:55 -08003037cppflags-$(CONFIG_SLUB_DEBUG_ON) += -DHAL_CONFIG_SLUB_DEBUG_ON
Vevek Venkatesan8b579f42019-06-28 18:08:52 +05303038
Jianmin Zhufa587a82019-07-11 16:43:04 +08003039ccflags-$(CONFIG_FOURTH_CONNECTION) += -DFEATURE_FOURTH_CONNECTION
Manikandan Mohan1baadae2019-08-23 08:32:56 -07003040ccflags-$(CONFIG_WMI_SEND_RECV_QMI) += -DWLAN_FEATURE_WMI_SEND_RECV_QMI
Jianmin Zhufa587a82019-07-11 16:43:04 +08003041
Sravan Kumar Kairam3bc886d2019-08-22 23:46:27 +05303042cppflags-$(CONFIG_WDI3_STATS_UPDATE) += -DWDI3_STATS_UPDATE
3043
Jeff Johnsonee869842018-04-17 11:14:03 -07003044KBUILD_CPPFLAGS += $(cppflags-y)
Alok Kumarb64650c2018-03-23 17:05:11 +05303045
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003046# Currently, for versions of gcc which support it, the kernel Makefile
3047# is disabling the maybe-uninitialized warning. Re-enable it for the
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07003048# WLAN driver. Note that we must use ccflags-y here so that it
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003049# will override the kernel settings.
Jeff Johnsoneadeb932018-04-07 15:32:36 -07003050ifeq ($(call cc-option-yn, -Wmaybe-uninitialized), y)
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07003051ccflags-y += -Wmaybe-uninitialized
Leo Chang5f7a1e02016-11-04 14:04:26 -07003052ifneq (y,$(CONFIG_ARCH_MSM))
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07003053ccflags-y += -Wframe-larger-than=4096
Leo Chang5f7a1e02016-11-04 14:04:26 -07003054endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003055endif
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07003056ccflags-y += -Wmissing-prototypes
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003057
Jeff Johnsoneadeb932018-04-07 15:32:36 -07003058ifeq ($(call cc-option-yn, -Wheader-guard), y)
Jeff Johnson3a7a9c62018-04-07 18:30:05 -07003059ccflags-y += -Wheader-guard
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08003060endif
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05303061# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
Yu Wang66e4ff22017-02-15 19:09:24 +08003062# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05303063# any string that must be unique for all instances of the driver on the system.
3064# This allows multiple instances of the driver with different module names.
3065# If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
3066# treat the driver as the primary driver.
Yu Wang7d866f62019-03-13 17:55:44 +08003067#
3068# If DYNAMIC_SINGLE_CHIP is defined, which means there are multiple possible
3069# drivers, but only 1 driver will be loaded at a time(WLAN dynamic detect),
3070# leave MULTI_IF_NAME undefined, no matter what the module name is, then
3071# host driver will only append DYNAMIC_SINGLE_CHIP to the path of
3072# firmware/mac/ini file.
3073ifneq ($(DYNAMIC_SINGLE_CHIP),)
3074ccflags-y += -DDYNAMIC_SINGLE_CHIP=\"$(DYNAMIC_SINGLE_CHIP)\"
3075else
3076
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05303077ifneq ($(MODNAME), wlan)
Yu Wang66e4ff22017-02-15 19:09:24 +08003078CHIP_NAME ?= $(MODNAME)
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07003079ccflags-y += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05303080endif
3081
Yu Wang7d866f62019-03-13 17:55:44 +08003082endif #DYNAMIC_SINGLE_CHIP
3083
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05303084# WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
3085# system. If it is not defined, then the host driver will use the first 4
3086# characters (including NULL) of MULTI_IF_NAME to construct
3087# WLAN_HDD_ADAPTER_MAGIC.
3088ifdef WLAN_HDD_ADAPTER_MAGIC
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07003089ccflags-y += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05303090endif
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08003091
sheenam monga70823872019-05-22 18:37:03 +05303092# Max no of Serialization msg queue depth for MCL. If it is not
3093# defined, then SCHEDULER_CORE_MAX_MESSAGES will be 4000 for
3094# WIN.
3095
3096ccflags-y += -DSCHEDULER_CORE_MAX_MESSAGES=1000
3097
sheenam mongafa3cb432019-05-24 13:55:05 +05303098# Defining Reduction Limit 0 for MCL. If it is not defined,
3099#then WLAN_SCHED_REDUCTION_LIMIT will be 32 for
3100# WIN.
3101ccflags-y += -DWLAN_SCHED_REDUCTION_LIMIT=0
3102
Dustin Brown9b217c02018-03-29 11:17:53 -07003103# Determine if we are building against an arm architecture host
3104ifeq ($(findstring arm, $(ARCH)),)
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07003105 ccflags-y += -DWLAN_HOST_ARCH_ARM=0
Dustin Brown9b217c02018-03-29 11:17:53 -07003106else
Jeff Johnsonb4e2d822018-04-12 15:53:24 -07003107 ccflags-y += -DWLAN_HOST_ARCH_ARM=1
Dustin Brown9b217c02018-03-29 11:17:53 -07003108endif
3109
Naveen Rawat93836252017-06-20 16:30:59 -07003110# inject some build related information
Dustin Brown96cd9632017-11-13 12:45:04 -08003111ifeq ($(CONFIG_BUILD_TAG), y)
Dustin Brown0e769d02017-11-14 12:52:32 -08003112CLD_CHECKOUT = $(shell cd "$(WLAN_ROOT)" && \
Dustin Brownb0c53a82018-09-10 13:59:38 -07003113 git reflog | grep -vm1 "}: cherry-pick: " | grep -oE ^[0-f]+)
Dustin Brown0e769d02017-11-14 12:52:32 -08003114CLD_IDS = $(shell cd "$(WLAN_ROOT)" && \
Dustin Brownb0c53a82018-09-10 13:59:38 -07003115 git log -50 $(CLD_CHECKOUT)~..HEAD | \
Dustin Brown0e769d02017-11-14 12:52:32 -08003116 sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
3117 paste -sd "," -)
3118
3119CMN_CHECKOUT = $(shell cd "$(WLAN_COMMON_INC)" && \
Dustin Brownb0c53a82018-09-10 13:59:38 -07003120 git reflog | grep -vm1 "}: cherry-pick: " | grep -oE ^[0-f]+)
Dustin Brown0e769d02017-11-14 12:52:32 -08003121CMN_IDS = $(shell cd "$(WLAN_COMMON_INC)" && \
Dustin Brownb0c53a82018-09-10 13:59:38 -07003122 git log -50 $(CMN_CHECKOUT)~..HEAD | \
Dustin Brown0e769d02017-11-14 12:52:32 -08003123 sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \
3124 paste -sd "," -)
3125
Dustin Brown96cd9632017-11-13 12:45:04 -08003126TIMESTAMP = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
Dustin Brown0e769d02017-11-14 12:52:32 -08003127BUILD_TAG = "$(TIMESTAMP); cld:$(CLD_IDS); cmn:$(CMN_IDS);"
Mahesh Kumar Kalikot Veetil48af32b2018-02-23 11:50:19 -08003128# It's assumed that BUILD_TAG is used only in wlan_hdd_main.c
3129CFLAGS_wlan_hdd_main.o += -DBUILD_TAG=\"$(BUILD_TAG)\"
Naveen Rawat93836252017-06-20 16:30:59 -07003130endif
3131
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003132# Module information used by KBuild framework
3133obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
3134$(MODNAME)-y := $(OBJS)
Srinivas Girigowdac7a1b0a2017-12-08 12:00:00 -08003135OBJS_DIRS := $(dir $(OBJS)) \
3136 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ \
3137 $(QDF_OBJ_DIR)/ \
3138 $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/ \
3139 $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/ \
3140 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/
3141CLEAN_DIRS := $(addsuffix *.o,$(sort $(OBJS_DIRS))) \
3142 $(addsuffix .*.o.cmd,$(sort $(OBJS_DIRS)))
3143clean-files := $(CLEAN_DIRS)