Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | # We can build either as part of a standalone Kernel build or as |
| 2 | # an external module. Determine which mechanism is being used |
| 3 | ifeq ($(MODNAME),) |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 4 | KERNEL_BUILD := y |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 5 | else |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 6 | KERNEL_BUILD := n |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 7 | endif |
| 8 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 9 | ifeq ($(KERNEL_BUILD), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 10 | # 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 Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 14 | WLAN_COMMON_ROOT := ../qca-wifi-host-cmn |
| 15 | WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 16 | endif |
| 17 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 18 | WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn |
| 19 | WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 20 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 21 | CONFIG_QCA_CLD_WLAN_PROFILE ?= default |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 22 | |
Nirav Shah | d2aa963 | 2018-05-27 22:02:53 +0530 | [diff] [blame] | 23 | include $(WLAN_ROOT)/configs/$(CONFIG_QCA_CLD_WLAN_PROFILE)_defconfig |
Jeff Johnson | ec273f3 | 2018-04-13 20:40:05 -0700 | [diff] [blame] | 24 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 25 | ############ UAPI ############ |
| 26 | UAPI_DIR := uapi |
| 27 | UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux |
| 28 | |
| 29 | ############ COMMON ############ |
| 30 | COMMON_DIR := core/common |
| 31 | COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR) |
| 32 | |
| 33 | ############ HDD ############ |
| 34 | HDD_DIR := core/hdd |
| 35 | HDD_INC_DIR := $(HDD_DIR)/inc |
| 36 | HDD_SRC_DIR := $(HDD_DIR)/src |
| 37 | |
| 38 | HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \ |
| 39 | -I$(WLAN_ROOT)/$(HDD_SRC_DIR) |
| 40 | |
| 41 | HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \ |
| 42 | $(HDD_SRC_DIR)/wlan_hdd_cfg.o \ |
Jeff Johnson | a9d252d | 2018-04-11 15:43:53 -0700 | [diff] [blame] | 43 | $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \ |
Poddar, Siddarth | 3487278 | 2017-08-10 14:08:51 +0530 | [diff] [blame] | 44 | $(HDD_SRC_DIR)/wlan_hdd_data_stall_detection.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 45 | $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \ |
Jeff Johnson | a9d252d | 2018-04-11 15:43:53 -0700 | [diff] [blame] | 46 | $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 47 | $(HDD_SRC_DIR)/wlan_hdd_ftm.o \ |
| 48 | $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \ |
| 49 | $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \ |
| 50 | $(HDD_SRC_DIR)/wlan_hdd_main.o \ |
Jeff Johnson | a9d252d | 2018-04-11 15:43:53 -0700 | [diff] [blame] | 51 | $(HDD_SRC_DIR)/wlan_hdd_object_manager.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 52 | $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \ |
Jeff Johnson | a9d252d | 2018-04-11 15:43:53 -0700 | [diff] [blame] | 53 | $(HDD_SRC_DIR)/wlan_hdd_p2p.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 54 | $(HDD_SRC_DIR)/wlan_hdd_power.o \ |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 55 | $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 56 | $(HDD_SRC_DIR)/wlan_hdd_scan.o \ |
| 57 | $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \ |
Jeff Johnson | a9d252d | 2018-04-11 15:43:53 -0700 | [diff] [blame] | 58 | $(HDD_SRC_DIR)/wlan_hdd_stats.o \ |
Amar Singhal | 0928b19 | 2017-12-01 10:50:54 -0800 | [diff] [blame] | 59 | $(HDD_SRC_DIR)/wlan_hdd_sysfs.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 60 | $(HDD_SRC_DIR)/wlan_hdd_trace.o \ |
Jeff Johnson | a9d252d | 2018-04-11 15:43:53 -0700 | [diff] [blame] | 61 | $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 62 | $(HDD_SRC_DIR)/wlan_hdd_wmm.o \ |
SaidiReddy Yenuga | 744073f | 2017-03-09 17:31:25 +0530 | [diff] [blame] | 63 | $(HDD_SRC_DIR)/wlan_hdd_wowl.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 64 | |
Rachit Kankane | 0dc3e85 | 2018-05-07 17:33:42 +0530 | [diff] [blame] | 65 | ifeq ($(CONFIG_WLAN_WEXT_SUPPORT_ENABLE), y) |
| 66 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_wext.o \ |
| 67 | $(HDD_SRC_DIR)/wlan_hdd_hostapd_wext.o |
| 68 | endif |
| 69 | |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 70 | ifeq ($(CONFIG_WLAN_DEBUGFS), y) |
| 71 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o |
Qiwei Cai | 3719efe | 2018-06-11 21:09:29 +0800 | [diff] [blame] | 72 | ifeq ($(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS), y) |
Krishna Kumaar Natarajan | c7e2bb7 | 2017-03-10 10:38:46 -0800 | [diff] [blame] | 73 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_llstat.o |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 74 | endif |
Qiwei Cai | 3719efe | 2018-06-11 21:09:29 +0800 | [diff] [blame] | 75 | endif |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 76 | |
Sandeep Puligilla | 8e89d57 | 2018-04-02 18:07:45 -0700 | [diff] [blame] | 77 | ifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y) |
| 78 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_spectralscan.o |
| 79 | endif |
| 80 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 81 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 82 | HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o |
| 83 | endif |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 84 | |
Wen Gong | 3f00338 | 2018-05-14 14:26:37 +0800 | [diff] [blame] | 85 | ifeq ($(CONFIG_FEATURE_MEMDUMP_ENABLE), y) |
Wen Gong | aa6d55d | 2018-04-26 16:33:21 +0800 | [diff] [blame] | 86 | HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_memdump.o |
| 87 | endif |
| 88 | |
Jeff Johnson | 6fa1e01 | 2017-04-05 06:40:53 -0700 | [diff] [blame] | 89 | ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y) |
| 90 | HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_fips.o |
| 91 | endif |
| 92 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 93 | ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y) |
Jeff Johnson | 8bb6111 | 2018-03-31 13:33:54 -0700 | [diff] [blame] | 94 | HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_green_ap.o |
| 95 | endif |
| 96 | |
Nachiket Kukade | d0dd62e | 2018-05-21 18:39:22 +0530 | [diff] [blame] | 97 | ifeq ($(CONFIG_QCACLD_FEATURE_APF), y) |
| 98 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_apf.o |
| 99 | endif |
| 100 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 101 | ifeq ($(CONFIG_WLAN_FEATURE_LPSS), y) |
Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 102 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o |
| 103 | endif |
| 104 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 105 | ifeq ($(CONFIG_WLAN_LRO), y) |
| 106 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o |
| 107 | endif |
| 108 | |
| 109 | ifeq ($(CONFIG_WLAN_NAPI), y) |
| 110 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o |
| 111 | endif |
| 112 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 113 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 114 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o |
| 115 | endif |
| 116 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 117 | ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 118 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o |
| 119 | endif |
| 120 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 121 | ifeq ($(CONFIG_QCOM_TDLS), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 122 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o |
| 123 | endif |
| 124 | |
Yu Wang | 000dc2f | 2017-05-26 17:38:48 +0800 | [diff] [blame] | 125 | ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y) |
| 126 | CONFIG_WLAN_SYNC_TSF := y |
| 127 | endif |
| 128 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 129 | ifeq ($(CONFIG_WLAN_SYNC_TSF), y) |
Manikandan Mohan | dcc21ba | 2016-03-15 14:31:56 -0700 | [diff] [blame] | 130 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o |
| 131 | endif |
| 132 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 133 | ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 134 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o |
| 135 | endif |
| 136 | |
Nachiket Kukade | 98f562a | 2017-12-15 12:18:07 +0530 | [diff] [blame] | 137 | ifeq ($(CONFIG_WLAN_FEATURE_DISA), y) |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 138 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o |
| 139 | endif |
| 140 | |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 141 | ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y) |
| 142 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o |
| 143 | endif |
| 144 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 145 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 146 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o |
| 147 | endif |
| 148 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 149 | ifeq ($(CONFIG_WLAN_FEATURE_11AX), y) |
Krishna Kumaar Natarajan | ed1efd9 | 2016-09-24 18:05:47 -0700 | [diff] [blame] | 150 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o |
| 151 | endif |
| 152 | |
Varun Reddy Yeturu | d33033f | 2018-06-11 10:58:30 -0700 | [diff] [blame] | 153 | ifeq ($(CONFIG_WLAN_FEATURE_TWT), y) |
| 154 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_twt.o |
| 155 | endif |
| 156 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 157 | ifeq ($(CONFIG_LITHIUM), y) |
Ravi Joshi | 1c2cfb6 | 2017-01-18 14:40:08 -0800 | [diff] [blame] | 158 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o |
| 159 | endif |
| 160 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 161 | ifeq ($(CONFIG_WLAN_NUD_TRACKING), y) |
Alok Kumar | b64650c | 2018-03-23 17:05:11 +0530 | [diff] [blame] | 162 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nud_tracking.o |
| 163 | endif |
| 164 | |
Qiwei Cai | 4505fc6 | 2018-05-17 18:35:19 +0800 | [diff] [blame] | 165 | ifeq ($(CONFIG_WLAN_FEATURE_PACKET_FILTERING), y) |
| 166 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_packet_filter.o |
| 167 | endif |
| 168 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 169 | ########### HOST DIAG LOG ########### |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 170 | HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 171 | |
| 172 | HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc |
| 173 | HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src |
| 174 | |
| 175 | HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \ |
| 176 | -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR) |
| 177 | |
| 178 | HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o |
| 179 | |
| 180 | ############ EPPING ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 181 | EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 182 | EPPING_INC_DIR := $(EPPING_DIR)/inc |
| 183 | EPPING_SRC_DIR := $(EPPING_DIR)/src |
| 184 | |
| 185 | EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR) |
| 186 | |
| 187 | EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \ |
| 188 | $(EPPING_SRC_DIR)/epping_txrx.o \ |
| 189 | $(EPPING_SRC_DIR)/epping_tx.o \ |
| 190 | $(EPPING_SRC_DIR)/epping_rx.o \ |
| 191 | $(EPPING_SRC_DIR)/epping_helper.o \ |
| 192 | |
| 193 | |
| 194 | ############ MAC ############ |
| 195 | MAC_DIR := core/mac |
| 196 | MAC_INC_DIR := $(MAC_DIR)/inc |
| 197 | MAC_SRC_DIR := $(MAC_DIR)/src |
| 198 | |
| 199 | MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \ |
| 200 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \ |
| 201 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \ |
| 202 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 203 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \ |
| 204 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 205 | |
| 206 | MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 207 | $(MAC_SRC_DIR)/cfg/cfg_param_name.o \ |
| 208 | $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \ |
| 209 | $(MAC_SRC_DIR)/cfg/cfg_send_msg.o |
| 210 | |
| 211 | MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o |
| 212 | |
| 213 | MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \ |
| 214 | $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \ |
| 215 | $(MAC_SRC_DIR)/pe/lim/lim_api.o \ |
| 216 | $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 217 | $(MAC_SRC_DIR)/pe/lim/lim_ft.o \ |
| 218 | $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \ |
| 219 | $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 220 | $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \ |
| 221 | $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \ |
| 222 | $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \ |
| 223 | $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \ |
| 224 | $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \ |
| 225 | $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \ |
| 226 | $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \ |
| 227 | $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \ |
| 228 | $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \ |
| 229 | $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \ |
| 230 | $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \ |
| 231 | $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \ |
| 232 | $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \ |
| 233 | $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \ |
| 234 | $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \ |
| 235 | $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \ |
| 236 | $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \ |
| 237 | $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \ |
| 238 | $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \ |
| 239 | $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \ |
| 240 | $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \ |
| 241 | $(MAC_SRC_DIR)/pe/lim/lim_session.o \ |
| 242 | $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \ |
| 243 | $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \ |
| 244 | $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \ |
| 245 | $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \ |
| 246 | $(MAC_SRC_DIR)/pe/lim/lim_trace.o \ |
| 247 | $(MAC_SRC_DIR)/pe/lim/lim_utils.o |
| 248 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 249 | ifeq ($(CONFIG_QCOM_TDLS), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 250 | MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o |
| 251 | endif |
| 252 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 253 | ifeq ($(CONFIG_WLAN_FEATURE_FILS), y) |
Sridhar Selvaraj | 8c6f5e8 | 2017-08-21 14:53:46 +0530 | [diff] [blame] | 254 | MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_fils.o |
| 255 | endif |
| 256 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 257 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 258 | MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o |
| 259 | endif |
| 260 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 261 | ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y) |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 262 | MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \ |
| 263 | $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \ |
| 264 | $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \ |
| 265 | $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \ |
| 266 | $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o |
| 267 | endif |
| 268 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 269 | MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \ |
| 270 | $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \ |
| 271 | $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 272 | $(MAC_SRC_DIR)/pe/sch/sch_message.o |
| 273 | |
| 274 | MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o |
| 275 | |
| 276 | MAC_OBJS := $(MAC_CFG_OBJS) \ |
| 277 | $(MAC_DPH_OBJS) \ |
| 278 | $(MAC_LIM_OBJS) \ |
| 279 | $(MAC_SCH_OBJS) \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 280 | $(MAC_RRM_OBJS) \ |
| 281 | $(MAC_NDP_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 282 | |
| 283 | ############ SAP ############ |
| 284 | SAP_DIR := core/sap |
| 285 | SAP_INC_DIR := $(SAP_DIR)/inc |
| 286 | SAP_SRC_DIR := $(SAP_DIR)/src |
| 287 | |
| 288 | SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \ |
| 289 | -I$(WLAN_ROOT)/$(SAP_SRC_DIR) |
| 290 | |
| 291 | SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \ |
| 292 | $(SAP_SRC_DIR)/sap_ch_select.o \ |
| 293 | $(SAP_SRC_DIR)/sap_fsm.o \ |
| 294 | $(SAP_SRC_DIR)/sap_module.o |
| 295 | |
Dustin Brown | 84f46ea | 2018-02-15 11:57:36 -0800 | [diff] [blame] | 296 | ############ CFG ############ |
| 297 | CFG_REL_DIR := $(WLAN_COMMON_ROOT)/cfg |
| 298 | CFG_DIR := $(WLAN_ROOT)/$(CFG_REL_DIR) |
| 299 | CFG_INC := \ |
| 300 | -I$(CFG_DIR)/inc \ |
| 301 | -I$(CFG_DIR)/dispatcher/inc \ |
| 302 | -I$(WLAN_ROOT)/components/cfg |
| 303 | CFG_OBJS := \ |
| 304 | $(CFG_REL_DIR)/src/cfg.o |
| 305 | |
Jeff Johnson | b4e2d82 | 2018-04-12 15:53:24 -0700 | [diff] [blame] | 306 | ############ DFS ############ |
Arif Hussain | 757b45f | 2017-02-11 16:47:06 -0800 | [diff] [blame] | 307 | DFS_DIR := $(WLAN_COMMON_ROOT)/umac/dfs |
| 308 | DFS_CORE_INC_DIR := $(DFS_DIR)/core/inc |
| 309 | DFS_CORE_SRC_DIR := $(DFS_DIR)/core/src |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 310 | |
Arif Hussain | 757b45f | 2017-02-11 16:47:06 -0800 | [diff] [blame] | 311 | DFS_DISP_INC_DIR := $(DFS_DIR)/dispatcher/inc |
| 312 | DFS_DISP_SRC_DIR := $(DFS_DIR)/dispatcher/src |
| 313 | DFS_TARGET_INC_DIR := $(WLAN_COMMON_ROOT)/target_if/dfs/inc |
| 314 | DFS_CMN_SERVICES_INC_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/dfs/inc |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 315 | |
Arif Hussain | 757b45f | 2017-02-11 16:47:06 -0800 | [diff] [blame] | 316 | DFS_INC := -I$(WLAN_ROOT)/$(DFS_DISP_INC_DIR) \ |
| 317 | -I$(WLAN_ROOT)/$(DFS_TARGET_INC_DIR) \ |
| 318 | -I$(WLAN_ROOT)/$(DFS_CMN_SERVICES_INC_DIR) |
| 319 | |
Arif Hussain | 02c2b63 | 2018-03-08 23:09:21 -0800 | [diff] [blame] | 320 | DFS_OBJS := $(DFS_CORE_SRC_DIR)/misc/dfs.o \ |
| 321 | $(DFS_CORE_SRC_DIR)/misc/dfs_cac.o \ |
| 322 | $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o \ |
| 323 | $(DFS_CORE_SRC_DIR)/misc/dfs_random_chan_sel.o \ |
| 324 | $(DFS_CORE_SRC_DIR)/misc/dfs_process_radar_found_ind.o \ |
| 325 | $(DFS_DISP_SRC_DIR)/wlan_dfs_init_deinit_api.o \ |
| 326 | $(DFS_DISP_SRC_DIR)/wlan_dfs_lmac_api.o \ |
| 327 | $(DFS_DISP_SRC_DIR)/wlan_dfs_mlme_api.o \ |
| 328 | $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \ |
| 329 | $(DFS_DISP_SRC_DIR)/wlan_dfs_ucfg_api.o \ |
| 330 | $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o \ |
| 331 | $(DFS_DISP_SRC_DIR)/wlan_dfs_utils_api.o \ |
Arif Hussain | 757b45f | 2017-02-11 16:47:06 -0800 | [diff] [blame] | 332 | $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 333 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 334 | ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y) |
Arif Hussain | 02c2b63 | 2018-03-08 23:09:21 -0800 | [diff] [blame] | 335 | DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_full_offload.o \ |
| 336 | $(DFS_CORE_SRC_DIR)/misc/dfs_full_offload.o |
| 337 | else |
| 338 | DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_partial_offload.o \ |
| 339 | $(DFS_CORE_SRC_DIR)/filtering/dfs_fcc_bin5.o \ |
| 340 | $(DFS_CORE_SRC_DIR)/filtering/dfs_bindetects.o \ |
| 341 | $(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o \ |
| 342 | $(DFS_CORE_SRC_DIR)/filtering/dfs_init.o \ |
| 343 | $(DFS_CORE_SRC_DIR)/filtering/dfs_misc.o \ |
| 344 | $(DFS_CORE_SRC_DIR)/filtering/dfs_phyerr_tlv.o \ |
| 345 | $(DFS_CORE_SRC_DIR)/filtering/dfs_process_phyerr.o \ |
| 346 | $(DFS_CORE_SRC_DIR)/filtering/dfs_process_radarevent.o \ |
| 347 | $(DFS_CORE_SRC_DIR)/filtering/dfs_staggered.o \ |
| 348 | $(DFS_CORE_SRC_DIR)/filtering/dfs_radar.o \ |
| 349 | $(DFS_CORE_SRC_DIR)/filtering/dfs_ar.o \ |
| 350 | $(DFS_CORE_SRC_DIR)/filtering/dfs_partial_offload_radar.o \ |
| 351 | $(DFS_CORE_SRC_DIR)/misc/dfs_filter_init.o \ |
| 352 | $(DFS_CORE_SRC_DIR)/misc/dfs_zero_cac.o |
| 353 | endif |
| 354 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 355 | ############ SME ############ |
| 356 | SME_DIR := core/sme |
| 357 | SME_INC_DIR := $(SME_DIR)/inc |
| 358 | SME_SRC_DIR := $(SME_DIR)/src |
| 359 | |
| 360 | SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \ |
| 361 | -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr |
| 362 | |
| 363 | SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \ |
| 364 | $(SME_SRC_DIR)/csr/csr_api_scan.o \ |
| 365 | $(SME_SRC_DIR)/csr/csr_cmd_process.o \ |
| 366 | $(SME_SRC_DIR)/csr/csr_link_list.o \ |
| 367 | $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \ |
Varun Reddy Yeturu | 86459d6 | 2016-02-22 10:07:02 -0800 | [diff] [blame] | 368 | $(SME_SRC_DIR)/csr/csr_util.o \ |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 369 | |
| 370 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 371 | ifeq ($(CONFIG_QCACLD_WLAN_LFR2), y) |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 372 | SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \ |
Varun Reddy Yeturu | 86459d6 | 2016-02-22 10:07:02 -0800 | [diff] [blame] | 373 | $(SME_SRC_DIR)/csr/csr_host_scan_roam.o |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 374 | endif |
| 375 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 376 | SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o |
| 377 | |
| 378 | SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \ |
| 379 | $(SME_SRC_DIR)/common/sme_ft_api.o \ |
| 380 | $(SME_SRC_DIR)/common/sme_power_save.o \ |
| 381 | $(SME_SRC_DIR)/common/sme_trace.o |
| 382 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 383 | SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o |
| 384 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 385 | ifeq ($(CONFIG_QCACLD_FEATURE_NAN), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 386 | SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o |
| 387 | endif |
| 388 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 389 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 390 | SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o |
| 391 | endif |
| 392 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 393 | SME_OBJS := $(SME_CMN_OBJS) \ |
| 394 | $(SME_CSR_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 395 | $(SME_QOS_OBJS) \ |
| 396 | $(SME_RRM_OBJS) \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 397 | $(SME_NAN_OBJS) \ |
| 398 | $(SME_NDP_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 399 | |
| 400 | ############ NLINK ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 401 | NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 402 | NLINK_INC_DIR := $(NLINK_DIR)/inc |
| 403 | NLINK_SRC_DIR := $(NLINK_DIR)/src |
| 404 | |
| 405 | NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR) |
| 406 | NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o |
| 407 | |
| 408 | ############ PTT ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 409 | PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 410 | PTT_INC_DIR := $(PTT_DIR)/inc |
| 411 | PTT_SRC_DIR := $(PTT_DIR)/src |
| 412 | |
| 413 | PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR) |
| 414 | PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o |
| 415 | |
| 416 | ############ WLAN_LOGGING ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 417 | WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 418 | WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc |
| 419 | WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src |
| 420 | |
| 421 | WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR) |
Deepak Dhamdhere | 5d7ea2f | 2017-10-19 15:08:45 -0700 | [diff] [blame] | 422 | WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o \ |
| 423 | $(WLAN_LOGGING_SRC_DIR)/wlan_roam_debug.o |
Jeff Johnson | 8fba4d7 | 2018-04-08 08:46:04 -0700 | [diff] [blame] | 424 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 425 | ############ SYS ############ |
| 426 | SYS_DIR := core/mac/src/sys |
| 427 | |
| 428 | SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \ |
| 429 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \ |
| 430 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \ |
| 431 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc |
| 432 | |
| 433 | SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src |
| 434 | SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src |
| 435 | SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \ |
| 436 | $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \ |
| 437 | $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \ |
| 438 | $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \ |
| 439 | $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 440 | $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \ |
| 441 | $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 442 | $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o |
| 443 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 444 | ############ Qca-wifi-host-cmn ############ |
| 445 | QDF_OS_DIR := qdf |
| 446 | QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc |
Dustin Brown | a2dcb5f | 2017-10-20 17:36:19 -0700 | [diff] [blame] | 447 | QDF_OS_SRC_DIR := $(QDF_OS_DIR)/src |
| 448 | QDF_OS_LINUX_SRC_DIR := $(QDF_OS_DIR)/linux/src |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 449 | QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR) |
Dustin Brown | a2dcb5f | 2017-10-20 17:36:19 -0700 | [diff] [blame] | 450 | QDF_LINUX_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_LINUX_SRC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 451 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 452 | QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \ |
Dustin Brown | a2dcb5f | 2017-10-20 17:36:19 -0700 | [diff] [blame] | 453 | -I$(WLAN_COMMON_INC)/$(QDF_OS_LINUX_SRC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 454 | |
Dustin Brown | a2dcb5f | 2017-10-20 17:36:19 -0700 | [diff] [blame] | 455 | QDF_OBJS := $(QDF_LINUX_OBJ_DIR)/qdf_defer.o \ |
| 456 | $(QDF_LINUX_OBJ_DIR)/qdf_event.o \ |
Dustin Brown | 911057b | 2018-02-05 16:42:18 -0800 | [diff] [blame] | 457 | $(QDF_LINUX_OBJ_DIR)/qdf_file.o \ |
Dustin Brown | a2dcb5f | 2017-10-20 17:36:19 -0700 | [diff] [blame] | 458 | $(QDF_LINUX_OBJ_DIR)/qdf_list.o \ |
| 459 | $(QDF_LINUX_OBJ_DIR)/qdf_lock.o \ |
| 460 | $(QDF_LINUX_OBJ_DIR)/qdf_mc_timer.o \ |
| 461 | $(QDF_LINUX_OBJ_DIR)/qdf_mem.o \ |
| 462 | $(QDF_LINUX_OBJ_DIR)/qdf_nbuf.o \ |
| 463 | $(QDF_LINUX_OBJ_DIR)/qdf_threads.o \ |
| 464 | $(QDF_LINUX_OBJ_DIR)/qdf_crypto.o \ |
Dustin Brown | 70960c9 | 2018-01-17 14:56:41 -0800 | [diff] [blame] | 465 | $(QDF_LINUX_OBJ_DIR)/qdf_trace.o \ |
Wu Gao | 24466e3 | 2018-05-10 19:08:26 +0800 | [diff] [blame] | 466 | $(QDF_LINUX_OBJ_DIR)/qdf_idr.o \ |
Dustin Brown | 0805bef | 2018-04-12 16:12:21 -0700 | [diff] [blame] | 467 | $(QDF_OBJ_DIR)/qdf_flex_mem.o \ |
Dustin Brown | 911057b | 2018-02-05 16:42:18 -0800 | [diff] [blame] | 468 | $(QDF_OBJ_DIR)/qdf_parse.o \ |
Rajeev Kumar | a6268de | 2018-03-09 14:58:53 -0800 | [diff] [blame] | 469 | $(QDF_OBJ_DIR)/qdf_platform.o \ |
Dustin Brown | 59877b0 | 2018-02-05 14:22:51 -0800 | [diff] [blame] | 470 | $(QDF_OBJ_DIR)/qdf_str.o \ |
Rajeev Kumar | 64de454 | 2018-02-23 13:51:38 -0800 | [diff] [blame] | 471 | $(QDF_OBJ_DIR)/qdf_types.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 472 | |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 473 | ifeq ($(CONFIG_WLAN_DEBUGFS), y) |
Dustin Brown | a2dcb5f | 2017-10-20 17:36:19 -0700 | [diff] [blame] | 474 | QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_debugfs.o |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 475 | endif |
| 476 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 477 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Sravan Kumar Kairam | b9484f3 | 2018-02-22 17:16:14 +0530 | [diff] [blame] | 478 | QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_ipa.o |
| 479 | endif |
| 480 | |
Dustin Brown | a2dcb5f | 2017-10-20 17:36:19 -0700 | [diff] [blame] | 481 | # enable CPU hotplug support if SMP is enabled |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 482 | ifeq ($(CONFIG_SMP), y) |
Dustin Brown | a2dcb5f | 2017-10-20 17:36:19 -0700 | [diff] [blame] | 483 | QDF_OBJS += $(QDF_OBJ_DIR)/qdf_cpuhp.o |
| 484 | QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_cpuhp.o |
| 485 | endif |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 486 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 487 | ifeq ($(CONFIG_LEAK_DETECTION), y) |
Dustin Brown | 21a761d | 2017-11-15 16:37:00 -0800 | [diff] [blame] | 488 | QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debug_domain.o |
| 489 | endif |
| 490 | |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 491 | ##########OS_IF ####### |
| 492 | OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if |
| 493 | |
| 494 | OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux \ |
| 495 | -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \ |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 496 | -I$(WLAN_COMMON_INC)/os_if/linux/p2p/inc \ |
Sandeep Puligilla | 342d2a6 | 2017-12-12 15:40:00 -0800 | [diff] [blame] | 497 | -I$(WLAN_COMMON_INC)/os_if/linux/spectral/inc \ |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 498 | -I$(WLAN_COMMON_INC)/os_if/linux/tdls/inc |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 499 | |
Naveen Rawat | e02f8f5 | 2018-04-05 11:58:04 -0700 | [diff] [blame] | 500 | OS_IF_OBJ := $(OS_IF_DIR)/linux/p2p/src/wlan_cfg80211_p2p.o \ |
| 501 | $(OS_IF_DIR)/linux/wlan_osif_request_manager.o |
Sandeep Puligilla | fdd201e | 2017-02-02 18:43:46 -0800 | [diff] [blame] | 502 | |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 503 | ############ UMAC_DISP ############ |
| 504 | UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if |
| 505 | UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc |
| 506 | UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src |
| 507 | UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR) |
| 508 | |
| 509 | UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR) |
| 510 | |
| 511 | UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o |
| 512 | |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 513 | ############# UMAC_SCAN ############ |
| 514 | UMAC_SCAN_DIR := umac/scan |
| 515 | UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc |
| 516 | UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src |
| 517 | UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src |
Abhishek Singh | 8dfbd69 | 2017-02-21 11:11:10 +0530 | [diff] [blame] | 518 | UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 519 | |
| 520 | UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR) |
| 521 | UMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \ |
Paul Zhang | a05a025 | 2018-01-22 11:08:21 +0800 | [diff] [blame] | 522 | $(UMAC_SCAN_CORE_DIR)/wlan_scan_11d.o \ |
Abhishek Singh | 82571c8 | 2017-11-24 12:12:19 +0530 | [diff] [blame] | 523 | $(UMAC_SCAN_CORE_DIR)/wlan_scan_bss_score.o \ |
| 524 | $(UMAC_SCAN_CORE_DIR)/wlan_scan_filter.o \ |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 525 | $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \ |
| 526 | $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \ |
| 527 | $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \ |
| 528 | $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \ |
Abhishek Singh | 310503c | 2017-03-07 11:19:10 +0530 | [diff] [blame] | 529 | $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \ |
| 530 | $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \ |
| 531 | $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \ |
| 532 | $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 533 | |
Sandeep Puligilla | 342d2a6 | 2017-12-12 15:40:00 -0800 | [diff] [blame] | 534 | ############# UMAC_SPECTRAL_SCAN ############ |
| 535 | UMAC_SPECTRAL_DIR := spectral |
| 536 | UMAC_SPECTRAL_DISP_INC_DIR := $(UMAC_SPECTRAL_DIR)/dispatcher/inc |
| 537 | UMAC_SPECTRAL_CORE_INC_DIR := $(UMAC_SPECTRAL_DIR)/core |
| 538 | UMAC_SPECTRAL_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/core |
| 539 | UMAC_SPECTRAL_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SPECTRAL_DIR)/dispatcher/src |
| 540 | UMAC_TARGET_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/target_if/spectral |
| 541 | |
Sandeep Puligilla | 019a1bd | 2018-02-04 22:57:44 -0800 | [diff] [blame] | 542 | UMAC_SPECTRAL_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_DISP_INC_DIR) \ |
| 543 | -I$(WLAN_COMMON_INC)/$(UMAC_SPECTRAL_CORE_INC_DIR) \ |
| 544 | -I$(WLAN_COMMON_INC)/target_if/direct_buf_rx/inc |
Sandeep Puligilla | 8e89d57 | 2018-04-02 18:07:45 -0700 | [diff] [blame] | 545 | ifeq ($(CONFIG_WLAN_CONV_SPECTRAL_ENABLE),y) |
Sandeep Puligilla | 342d2a6 | 2017-12-12 15:40:00 -0800 | [diff] [blame] | 546 | UMAC_SPECTRAL_OBJS := $(UMAC_SPECTRAL_CORE_DIR)/spectral_offload.o \ |
| 547 | $(UMAC_SPECTRAL_CORE_DIR)/spectral_common.o \ |
| 548 | $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_ucfg_api.o \ |
| 549 | $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_utils_api.o \ |
| 550 | $(UMAC_SPECTRAL_DISP_DIR)/wlan_spectral_tgt_api.o \ |
| 551 | $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/wlan_cfg80211_spectral.o \ |
Sandeep Puligilla | 019a1bd | 2018-02-04 22:57:44 -0800 | [diff] [blame] | 552 | $(WLAN_COMMON_ROOT)/os_if/linux/spectral/src/os_if_spectral_netlink.o \ |
Sandeep Puligilla | 342d2a6 | 2017-12-12 15:40:00 -0800 | [diff] [blame] | 553 | $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_netlink.o \ |
| 554 | $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_phyerr.o \ |
| 555 | $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral.o \ |
| 556 | $(WLAN_COMMON_ROOT)/target_if/spectral/target_if_spectral_sim.o |
Sandeep Puligilla | 8e89d57 | 2018-04-02 18:07:45 -0700 | [diff] [blame] | 557 | endif |
Himanshu Agarwal | b229a14 | 2017-12-21 10:16:45 +0530 | [diff] [blame] | 558 | ############# UMAC_GREEN_AP ############ |
| 559 | UMAC_GREEN_AP_DIR := umac/green_ap |
| 560 | UMAC_GREEN_AP_DISP_INC_DIR := $(UMAC_GREEN_AP_DIR)/dispatcher/inc |
| 561 | UMAC_GREEN_AP_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/core/src |
| 562 | UMAC_GREEN_AP_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_GREEN_AP_DIR)/dispatcher/src |
| 563 | UMAC_TARGET_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/target_if/green_ap/inc |
| 564 | |
| 565 | UMAC_GREEN_AP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_GREEN_AP_DISP_INC_DIR) |
| 566 | UMAC_GREEN_AP_OBJS := $(UMAC_GREEN_AP_CORE_DIR)/wlan_green_ap_main.o \ |
| 567 | $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_api.o \ |
| 568 | $(UMAC_GREEN_AP_DISP_DIR)/wlan_green_ap_ucfg_api.o \ |
| 569 | $(WLAN_COMMON_ROOT)/target_if/green_ap/src/target_if_green_ap.o |
Jeff Johnson | 8fba4d7 | 2018-04-08 08:46:04 -0700 | [diff] [blame] | 570 | |
Ryan Hsu | c8b27a4 | 2018-01-02 13:57:56 -0800 | [diff] [blame] | 571 | ############# FTM CORE ############ |
| 572 | FTM_CORE_DIR := ftm |
| 573 | TARGET_IF_FTM_DIR := target_if/ftm |
| 574 | OS_IF_LINUX_FTM_DIR := os_if/linux/ftm |
| 575 | |
| 576 | FTM_CORE_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/core/src |
| 577 | FTM_DISP_SRC := $(WLAN_COMMON_ROOT)/$(FTM_CORE_DIR)/dispatcher/src |
| 578 | TARGET_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(TARGET_IF_FTM_DIR)/src |
| 579 | OS_IF_FTM_SRC := $(WLAN_COMMON_ROOT)/$(OS_IF_LINUX_FTM_DIR)/src |
| 580 | |
| 581 | FTM_CORE_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/core/src |
| 582 | FTM_DISP_INC := $(WLAN_COMMON_INC)/$(FTM_CORE_DIR)/dispatcher/inc |
| 583 | TARGET_IF_FTM_INC := $(WLAN_COMMON_INC)/$(TARGET_IF_FTM_DIR)/inc |
| 584 | OS_IF_FTM_INC := $(WLAN_COMMON_INC)/$(OS_IF_LINUX_FTM_DIR)/inc |
| 585 | |
| 586 | FTM_INC := -I$(FTM_DISP_INC) \ |
| 587 | -I$(FTM_CORE_INC) \ |
| 588 | -I$(OS_IF_FTM_INC) \ |
| 589 | -I$(TARGET_IF_FTM_INC) |
| 590 | |
| 591 | FTM_OBJS := $(FTM_DISP_SRC)/wlan_ftm_init_deinit.o \ |
| 592 | $(FTM_DISP_SRC)/wlan_ftm_ucfg_api.o \ |
| 593 | $(FTM_CORE_SRC)/wlan_ftm_svc.o \ |
| 594 | $(OS_IF_FTM_SRC)/wlan_cfg80211_ftm.o \ |
| 595 | $(TARGET_IF_FTM_SRC)/target_if_ftm.o |
| 596 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 597 | ifeq ($(CONFIG_LINUX_QCMBR), y) |
Ryan Hsu | c8b27a4 | 2018-01-02 13:57:56 -0800 | [diff] [blame] | 598 | FTM_OBJS += $(OS_IF_FTM_SRC)/wlan_ioctl_ftm.o |
| 599 | endif |
Himanshu Agarwal | b229a14 | 2017-12-21 10:16:45 +0530 | [diff] [blame] | 600 | |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 601 | ############# UMAC_CMN_SERVICES ############ |
Abhishek Singh | 8dfbd69 | 2017-02-21 11:11:10 +0530 | [diff] [blame] | 602 | UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \ |
| 603 | -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc |
| 604 | UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 605 | |
Dhanashri Atre | 170855e | 2016-12-15 13:26:54 -0800 | [diff] [blame] | 606 | ifeq ($(CONFIG_WLAN_LRO), y) |
Dustin Brown | a2dcb5f | 2017-10-20 17:36:19 -0700 | [diff] [blame] | 607 | QDF_OBJS += $(QDF_LINUX_OBJ_DIR)/qdf_lro.o |
Dhanashri Atre | 170855e | 2016-12-15 13:26:54 -0800 | [diff] [blame] | 608 | endif |
| 609 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 610 | ############ CDS (Connectivity driver services) ############ |
| 611 | CDS_DIR := core/cds |
| 612 | CDS_INC_DIR := $(CDS_DIR)/inc |
| 613 | CDS_SRC_DIR := $(CDS_DIR)/src |
| 614 | |
| 615 | CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \ |
| 616 | -I$(WLAN_ROOT)/$(CDS_SRC_DIR) |
| 617 | |
| 618 | CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 619 | $(CDS_SRC_DIR)/cds_reg_service.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 620 | $(CDS_SRC_DIR)/cds_packet.o \ |
| 621 | $(CDS_SRC_DIR)/cds_regdomain.o \ |
| 622 | $(CDS_SRC_DIR)/cds_sched.o \ |
Krunal Soni | d32c6bc | 2016-10-18 18:00:21 -0700 | [diff] [blame] | 623 | $(CDS_SRC_DIR)/cds_utils.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 624 | |
| 625 | |
Selvaraj, Sridhar | 0672a12 | 2016-12-29 16:11:48 +0530 | [diff] [blame] | 626 | ###### UMAC OBJMGR ######## |
| 627 | UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr |
| 628 | |
| 629 | UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \ |
| 630 | -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \ |
| 631 | -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \ |
| 632 | -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc |
| 633 | |
| 634 | UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \ |
| 635 | $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \ |
| 636 | $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \ |
| 637 | $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \ |
| 638 | $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o |
| 639 | |
Vignesh Viswanathan | 45fc4b0 | 2018-02-06 11:30:48 +0530 | [diff] [blame] | 640 | ifeq ($(CONFIG_WLAN_OBJMGR_DEBUG), y) |
| 641 | UMAC_OBJMGR_OBJS += $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_debug.o |
| 642 | endif |
| 643 | |
Himanshu Agarwal | 2fdf77a | 2016-12-29 11:41:00 +0530 | [diff] [blame] | 644 | ########### UMAC MGMT TXRX ########## |
| 645 | UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx |
| 646 | |
Himanshu Agarwal | 795b7f7 | 2017-01-17 21:19:43 +0530 | [diff] [blame] | 647 | UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \ |
Himanshu Agarwal | 2fdf77a | 2016-12-29 11:41:00 +0530 | [diff] [blame] | 648 | |
| 649 | UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \ |
| 650 | $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \ |
| 651 | $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o |
| 652 | |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 653 | ########## POWER MANAGEMENT OFFLOADS (PMO) ########## |
Rajeev Kumar | f46083e | 2017-07-17 17:48:16 -0700 | [diff] [blame] | 654 | PMO_DIR := components/pmo |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 655 | PMO_INC := -I$(WLAN_ROOT)/$(PMO_DIR)/core/inc \ |
| 656 | -I$(WLAN_ROOT)/$(PMO_DIR)/core/src \ |
| 657 | -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/inc \ |
| 658 | -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/src \ |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 659 | |
Rajeev Kumar | 6bdee8e | 2018-04-18 17:36:05 -0700 | [diff] [blame] | 660 | ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y) |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 661 | PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \ |
Dustin Brown | f1d2780 | 2018-03-01 17:28:07 -0800 | [diff] [blame] | 662 | $(PMO_DIR)/core/src/wlan_pmo_apf.o \ |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 663 | $(PMO_DIR)/core/src/wlan_pmo_arp.o \ |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 664 | $(PMO_DIR)/core/src/wlan_pmo_gtk.o \ |
| 665 | $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \ |
| 666 | $(PMO_DIR)/core/src/wlan_pmo_static_config.o \ |
| 667 | $(PMO_DIR)/core/src/wlan_pmo_wow.o \ |
Mukul Sharma | 4c60a7e | 2017-03-06 19:42:18 +0530 | [diff] [blame] | 668 | $(PMO_DIR)/core/src/wlan_pmo_lphb.o \ |
| 669 | $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \ |
Dustin Brown | 1224e21 | 2017-05-12 14:02:12 -0700 | [diff] [blame] | 670 | $(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \ |
Ravi Kumar Bokka | 0b9ead3 | 2017-05-11 17:01:43 +0530 | [diff] [blame] | 671 | $(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \ |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 672 | $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \ |
| 673 | $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \ |
| 674 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \ |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 675 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \ |
| 676 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \ |
| 677 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \ |
Mukul Sharma | 4c60a7e | 2017-03-06 19:42:18 +0530 | [diff] [blame] | 678 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \ |
| 679 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \ |
Ravi Kumar Bokka | 794fd71 | 2017-03-21 20:52:46 +0530 | [diff] [blame] | 680 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \ |
Dustin Brown | 1224e21 | 2017-05-12 14:02:12 -0700 | [diff] [blame] | 681 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \ |
Ravi Kumar Bokka | 0b9ead3 | 2017-05-11 17:01:43 +0530 | [diff] [blame] | 682 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o |
Rajeev Kumar | 6bdee8e | 2018-04-18 17:36:05 -0700 | [diff] [blame] | 683 | endif |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 684 | |
Qiwei Cai | 1083f5b | 2018-07-02 19:10:11 +0800 | [diff] [blame] | 685 | ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y) |
| 686 | PMO_OBJS += $(PMO_DIR)/core/src/wlan_pmo_ns.o \ |
| 687 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o |
| 688 | endif |
| 689 | |
Nachiket Kukade | 98f562a | 2017-12-15 12:18:07 +0530 | [diff] [blame] | 690 | ########## DISA (ENCRYPTION TEST) ########## |
| 691 | |
| 692 | DISA_DIR := components/disa |
| 693 | DISA_INC := -I$(WLAN_ROOT)/$(DISA_DIR)/core/inc \ |
| 694 | -I$(WLAN_ROOT)/$(DISA_DIR)/dispatcher/inc |
| 695 | |
| 696 | ifeq ($(CONFIG_WLAN_FEATURE_DISA), y) |
| 697 | DISA_OBJS := $(DISA_DIR)/core/src/wlan_disa_main.o \ |
| 698 | $(DISA_DIR)/dispatcher/src/wlan_disa_obj_mgmt_api.o \ |
| 699 | $(DISA_DIR)/dispatcher/src/wlan_disa_tgt_api.o \ |
| 700 | $(DISA_DIR)/dispatcher/src/wlan_disa_ucfg_api.o |
| 701 | endif |
| 702 | |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 703 | ######## OCB ############## |
| 704 | OCB_DIR := components/ocb |
| 705 | OCB_INC := -I$(WLAN_ROOT)/$(OCB_DIR)/core/inc \ |
| 706 | -I$(WLAN_ROOT)/$(OCB_DIR)/dispatcher/inc |
| 707 | |
| 708 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 709 | OCB_OBJS := $(OCB_DIR)/dispatcher/src/wlan_ocb_ucfg_api.o \ |
| 710 | $(OCB_DIR)/dispatcher/src/wlan_ocb_tgt_api.o \ |
| 711 | $(OCB_DIR)/core/src/wlan_ocb_main.o |
| 712 | endif |
| 713 | |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 714 | ######## IPA ############## |
| 715 | IPA_DIR := components/ipa |
| 716 | IPA_INC := -I$(WLAN_ROOT)/$(IPA_DIR)/core/inc \ |
| 717 | -I$(WLAN_ROOT)/$(IPA_DIR)/dispatcher/inc |
| 718 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 719 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 720 | IPA_OBJS := $(IPA_DIR)/dispatcher/src/wlan_ipa_ucfg_api.o \ |
| 721 | $(IPA_DIR)/dispatcher/src/wlan_ipa_obj_mgmt_api.o \ |
| 722 | $(IPA_DIR)/dispatcher/src/wlan_ipa_tgt_api.o \ |
Sravan Kumar Kairam | d01b445 | 2018-03-07 17:37:09 +0530 | [diff] [blame] | 723 | $(IPA_DIR)/core/src/wlan_ipa_main.o \ |
Sravan Kumar Kairam | 2e7aae9 | 2018-03-06 19:32:49 +0530 | [diff] [blame] | 724 | $(IPA_DIR)/core/src/wlan_ipa_core.o \ |
Sravan Kumar Kairam | 271fab2 | 2018-03-07 18:57:41 +0530 | [diff] [blame] | 725 | $(IPA_DIR)/core/src/wlan_ipa_stats.o \ |
Sravan Kumar Kairam | 2e7aae9 | 2018-03-06 19:32:49 +0530 | [diff] [blame] | 726 | $(IPA_DIR)/core/src/wlan_ipa_rm.o |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 727 | endif |
| 728 | |
Sandeep Puligilla | c5609d5 | 2018-05-17 19:23:41 -0700 | [diff] [blame] | 729 | |
| 730 | ######## MLME ############## |
| 731 | MLME_DIR := components/mlme |
| 732 | MLME_INC := -I$(WLAN_ROOT)/$(MLME_DIR)/core/inc \ |
| 733 | -I$(WLAN_ROOT)/$(MLME_DIR)/dispatcher/inc |
| 734 | |
| 735 | MLME_OBJS := $(MLME_DIR)/core/src/wlan_mlme_main.o |
| 736 | |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 737 | ########## CLD TARGET_IF ####### |
Rajeev Kumar | f46083e | 2017-07-17 17:48:16 -0700 | [diff] [blame] | 738 | CLD_TARGET_IF_DIR := components/target_if |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 739 | |
| 740 | CLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \ |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 741 | -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 742 | |
Wu Gao | a9d336b | 2018-05-30 14:48:04 +0800 | [diff] [blame] | 743 | ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y) |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 744 | CLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \ |
| 745 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \ |
| 746 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \ |
| 747 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \ |
| 748 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \ |
| 749 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \ |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 750 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o \ |
| 751 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \ |
| 752 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \ |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 753 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o |
Qiwei Cai | 1083f5b | 2018-07-02 19:10:11 +0800 | [diff] [blame] | 754 | ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y) |
| 755 | CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o |
| 756 | endif |
Wu Gao | a9d336b | 2018-05-30 14:48:04 +0800 | [diff] [blame] | 757 | endif |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 758 | |
| 759 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 760 | CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ocb/inc |
| 761 | CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ocb/src/target_if_ocb.o |
| 762 | endif |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 763 | |
Nachiket Kukade | 98f562a | 2017-12-15 12:18:07 +0530 | [diff] [blame] | 764 | ifeq ($(CONFIG_WLAN_FEATURE_DISA), y) |
| 765 | CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/disa/inc |
| 766 | CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/disa/src/target_if_disa.o |
| 767 | endif |
| 768 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 769 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 770 | CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ipa/inc |
| 771 | CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ipa/src/target_if_ipa.o |
| 772 | endif |
| 773 | |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 774 | ############## UMAC P2P ########### |
| 775 | P2P_DIR := umac/p2p |
| 776 | P2P_CORE_DIR := $(P2P_DIR)/core |
| 777 | P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src |
| 778 | P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR) |
| 779 | P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher |
| 780 | P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc |
| 781 | P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src |
| 782 | P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR) |
| 783 | UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \ |
| 784 | -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc |
| 785 | UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \ |
| 786 | $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \ |
Wu Gao | e568979 | 2018-07-05 19:20:13 +0800 | [diff] [blame] | 787 | $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_cfg.o \ |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 788 | $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \ |
| 789 | $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \ |
| 790 | $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o |
| 791 | |
Tushnim Bhattacharyya | 44939d4 | 2017-02-15 17:08:12 -0800 | [diff] [blame] | 792 | ###### UMAC POLICY MGR ######## |
| 793 | UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr |
| 794 | |
| 795 | UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \ |
| 796 | -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src |
| 797 | |
| 798 | UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \ |
| 799 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \ |
| 800 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \ |
| 801 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \ |
| 802 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \ |
| 803 | |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 804 | ###### UMAC TDLS ######## |
| 805 | UMAC_TDLS_DIR := $(WLAN_COMMON_ROOT)/umac/tdls |
| 806 | |
| 807 | UMAC_TDLS_INC := -I$(WLAN_COMMON_INC)/umac/tdls/dispatcher/inc |
| 808 | |
| 809 | UMAC_TDLS_OBJS := $(UMAC_TDLS_DIR)/core/src/wlan_tdls_main.o \ |
| 810 | $(UMAC_TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \ |
| 811 | $(UMAC_TDLS_DIR)/core/src/wlan_tdls_peer.o \ |
| 812 | $(UMAC_TDLS_DIR)/core/src/wlan_tdls_mgmt.o \ |
| 813 | $(UMAC_TDLS_DIR)/core/src/wlan_tdls_ct.o \ |
| 814 | $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \ |
| 815 | $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \ |
| 816 | $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \ |
| 817 | $(WLAN_COMMON_ROOT)/os_if/linux/tdls/src/wlan_cfg80211_tdls.o |
| 818 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 819 | ########### BMI ########### |
| 820 | BMI_DIR := core/bmi |
| 821 | |
| 822 | BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc |
| 823 | |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 824 | ifeq ($(CONFIG_WLAN_FEATURE_BMI), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 825 | BMI_OBJS := $(BMI_DIR)/src/bmi.o \ |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 826 | $(BMI_DIR)/src/bmi_1.o \ |
Poddar, Siddarth | ef1f302 | 2016-05-10 20:10:43 +0530 | [diff] [blame] | 827 | $(BMI_DIR)/src/ol_fw.o \ |
| 828 | $(BMI_DIR)/src/ol_fw_common.o |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 829 | endif |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 830 | |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 831 | ########## TARGET_IF ####### |
| 832 | TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if |
| 833 | |
| 834 | TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \ |
Rajeev Kumar | da2444c | 2017-01-10 22:42:07 -0800 | [diff] [blame] | 835 | -I$(WLAN_COMMON_INC)/target_if/core/src \ |
Mukul Sharma | 0cdf8b3 | 2017-02-04 14:27:56 +0530 | [diff] [blame] | 836 | -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 837 | -I$(WLAN_COMMON_INC)/target_if/p2p/inc \ |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 838 | -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \ |
| 839 | -I$(WLAN_COMMON_INC)/target_if/tdls/inc |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 840 | |
Rajeev Kumar | da2444c | 2017-01-10 22:42:07 -0800 | [diff] [blame] | 841 | TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 842 | $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \ |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 843 | $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \ |
Arunk Khandavalli | a6305a3 | 2018-01-25 11:19:18 +0530 | [diff] [blame] | 844 | $(TARGET_IF_DIR)/tdls/src/target_if_tdls.o \ |
| 845 | $(TARGET_IF_DIR)/init_deinit/src/init_cmd_api.o \ |
Sourav Mohapatra | cf63257 | 2018-04-02 11:01:35 +0530 | [diff] [blame] | 846 | $(TARGET_IF_DIR)/init_deinit/src/init_deinit_lmac.o \ |
Arunk Khandavalli | a6305a3 | 2018-01-25 11:19:18 +0530 | [diff] [blame] | 847 | $(TARGET_IF_DIR)/init_deinit/src/init_event_handler.o \ |
| 848 | $(TARGET_IF_DIR)/init_deinit/src/service_ready_util.o \ |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 849 | |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 850 | ########### GLOBAL_LMAC_IF ########## |
| 851 | GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if |
| 852 | |
| 853 | GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \ |
| 854 | -I$(WLAN_COMMON_INC)/global_lmac_if/src |
| 855 | |
| 856 | GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o |
| 857 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 858 | ########### WMI ########### |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 859 | WMI_ROOT_DIR := wmi |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 860 | |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 861 | WMI_SRC_DIR := $(WMI_ROOT_DIR)/src |
| 862 | WMI_INC_DIR := $(WMI_ROOT_DIR)/inc |
| 863 | WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 864 | |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 865 | WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR) |
| 866 | |
| 867 | WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \ |
| 868 | $(WMI_OBJ_DIR)/wmi_tlv_helper.o \ |
| 869 | $(WMI_OBJ_DIR)/wmi_unified_tlv.o \ |
| 870 | $(WMI_OBJ_DIR)/wmi_unified_api.o \ |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 871 | $(WMI_OBJ_DIR)/wmi_unified_reg_api.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 872 | |
Wu Gao | a9d336b | 2018-05-30 14:48:04 +0800 | [diff] [blame] | 873 | ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y) |
| 874 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o |
| 875 | endif |
| 876 | |
Nachiket Kukade | d0dd62e | 2018-05-21 18:39:22 +0530 | [diff] [blame] | 877 | ifeq ($(CONFIG_QCACLD_FEATURE_APF), y) |
| 878 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_apf_tlv.o |
| 879 | endif |
| 880 | |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 881 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 882 | ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y) |
| 883 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_ut.o |
| 884 | endif |
| 885 | endif |
| 886 | |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 887 | ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y) |
| 888 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o |
| 889 | endif |
| 890 | |
Varun Reddy Yeturu | d33033f | 2018-06-11 10:58:30 -0700 | [diff] [blame] | 891 | ifeq ($(CONFIG_WLAN_FEATURE_TWT), y) |
| 892 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_api.o |
| 893 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_tlv.o |
| 894 | endif |
| 895 | |
Wen Gong | bd949fc | 2018-05-21 18:35:13 +0800 | [diff] [blame] | 896 | ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y) |
| 897 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_api.o |
| 898 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_tlv.o |
| 899 | endif |
| 900 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 901 | ########### FWLOG ########### |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 902 | FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 903 | |
| 904 | FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR) |
| 905 | |
| 906 | FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o |
| 907 | |
| 908 | ############ TXRX ############ |
| 909 | TXRX_DIR := core/dp/txrx |
| 910 | TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR) |
| 911 | |
| 912 | TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \ |
| 913 | $(TXRX_DIR)/ol_cfg.o \ |
| 914 | $(TXRX_DIR)/ol_rx.o \ |
| 915 | $(TXRX_DIR)/ol_rx_fwd.o \ |
| 916 | $(TXRX_DIR)/ol_txrx.o \ |
| 917 | $(TXRX_DIR)/ol_rx_defrag.o \ |
| 918 | $(TXRX_DIR)/ol_tx_desc.o \ |
| 919 | $(TXRX_DIR)/ol_tx.o \ |
| 920 | $(TXRX_DIR)/ol_rx_reorder_timeout.o \ |
| 921 | $(TXRX_DIR)/ol_rx_reorder.o \ |
| 922 | $(TXRX_DIR)/ol_rx_pn.o \ |
| 923 | $(TXRX_DIR)/ol_tx_queue.o \ |
| 924 | $(TXRX_DIR)/ol_txrx_peer_find.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 925 | $(TXRX_DIR)/ol_txrx_encap.o \ |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 926 | $(TXRX_DIR)/ol_tx_send.o \ |
| 927 | $(TXRX_DIR)/ol_tx_sched.o \ |
| 928 | $(TXRX_DIR)/ol_tx_classify.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 929 | |
Nirav Shah | bb8e47c | 2018-05-17 16:56:41 +0530 | [diff] [blame] | 930 | ifeq ($(CONFIG_WDI_EVENT_ENABLE), y) |
| 931 | TXRX_OBJS += $(TXRX_DIR)/ol_txrx_event.o |
| 932 | endif |
| 933 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 934 | ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y) |
| 935 | TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o |
| 936 | endif |
| 937 | |
Nirav Shah | c4aa1ab | 2018-04-21 12:38:44 +0530 | [diff] [blame] | 938 | ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY), y) |
| 939 | TXRX_OBJS += $(TXRX_DIR)/ol_txrx_legacy_flow_control.o |
| 940 | endif |
| 941 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 942 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Yun Park | b4f591d | 2017-03-29 15:51:01 -0700 | [diff] [blame] | 943 | TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o |
| 944 | endif |
| 945 | |
Nirav Shah | 5ff1fd0 | 2018-03-11 14:55:53 +0530 | [diff] [blame] | 946 | ifeq ($(CONFIG_WLAN_FASTPATH), y) |
| 947 | TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_fastpath.o |
| 948 | else |
| 949 | TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_legacy.o |
| 950 | endif |
| 951 | |
Nirav Shah | 46fc630 | 2018-04-21 12:49:28 +0530 | [diff] [blame] | 952 | ifeq ($(CONFIG_QCA_SUPPORT_TX_THROTTLE), y) |
| 953 | TXRX_OBJS += $(TXRX_DIR)/ol_tx_throttle.o |
| 954 | endif |
| 955 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 956 | ifeq ($(CONFIG_LITHIUM), y) |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 957 | ############ DP 3.0 ############ |
Venkata Sharath Chandra Manchala | 9220e32 | 2018-07-09 17:20:57 -0700 | [diff] [blame] | 958 | DP_INC := -I$(WLAN_COMMON_INC)/dp/inc \ |
| 959 | -I$(WLAN_COMMON_INC)/dp/wifi3.0 \ |
| 960 | -I$(WLAN_COMMON_INC)/target_if/dp/inc |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 961 | |
| 962 | DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0 |
| 963 | DP_OBJS := $(DP_SRC)/dp_main.o \ |
| 964 | $(DP_SRC)/dp_tx.o \ |
| 965 | $(DP_SRC)/dp_tx_desc.o \ |
| 966 | $(DP_SRC)/dp_rx.o \ |
| 967 | $(DP_SRC)/dp_rx_err.o \ |
| 968 | $(DP_SRC)/dp_htt.o \ |
| 969 | $(DP_SRC)/dp_peer.o \ |
Debashis Dutt | 237c614 | 2017-01-04 11:28:59 -0800 | [diff] [blame] | 970 | $(DP_SRC)/dp_rx_desc.o \ |
Ravi Joshi | 12665a0 | 2017-03-08 16:35:04 -0800 | [diff] [blame] | 971 | $(DP_SRC)/dp_reo.o \ |
| 972 | $(DP_SRC)/dp_rx_mon_dest.o \ |
Ravi Joshi | c4a4108 | 2017-01-09 22:27:58 -0800 | [diff] [blame] | 973 | $(DP_SRC)/dp_rx_mon_status.o \ |
Venkata Sharath Chandra Manchala | bcdfdb1 | 2017-03-29 19:25:45 -0700 | [diff] [blame] | 974 | $(DP_SRC)/dp_rx_defrag.o \ |
Sravan Kumar Kairam | b8bdf52 | 2018-05-30 22:14:50 +0530 | [diff] [blame] | 975 | $(DP_SRC)/dp_stats.o \ |
| 976 | $(WLAN_COMMON_ROOT)/target_if/dp/src/target_if_dp.o |
Manjunathappa Prakash | 6c54736 | 2017-03-30 20:11:47 -0700 | [diff] [blame] | 977 | ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y) |
| 978 | DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o |
| 979 | endif |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 980 | endif |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 981 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 982 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Yun Park | b4f591d | 2017-03-29 15:51:01 -0700 | [diff] [blame] | 983 | DP_OBJS += $(DP_SRC)/dp_ipa.o |
| 984 | endif |
| 985 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 986 | ifeq ($(CONFIG_WDI_EVENT_ENABLE), y) |
Venkata Sharath Chandra Manchala | 1240fc7 | 2017-10-26 17:32:29 -0700 | [diff] [blame] | 987 | DP_OBJS += $(DP_SRC)/dp_wdi_event.o |
| 988 | endif |
| 989 | |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 990 | ############ CFG ############ |
Ravi Joshi | d55b18a | 2017-02-17 10:48:14 -0800 | [diff] [blame] | 991 | WCFG_DIR := wlan_cfg |
| 992 | WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR) |
| 993 | WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR) |
| 994 | WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 995 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 996 | ############ OL ############ |
| 997 | OL_DIR := core/dp/ol |
| 998 | OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc |
| 999 | |
Dhanashri Atre | 12a0839 | 2016-02-17 13:10:34 -0800 | [diff] [blame] | 1000 | ############ CDP ############ |
| 1001 | CDP_ROOT_DIR := dp |
| 1002 | CDP_INC_DIR := $(CDP_ROOT_DIR)/inc |
| 1003 | CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR) |
| 1004 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1005 | ############ PKTLOG ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 1006 | PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1007 | PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include |
| 1008 | |
| 1009 | PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \ |
| 1010 | $(PKTLOG_DIR)/pktlog_internal.o \ |
| 1011 | $(PKTLOG_DIR)/linux_ac.o |
| 1012 | |
| 1013 | ############ HTT ############ |
| 1014 | HTT_DIR := core/dp/htt |
| 1015 | HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR) |
| 1016 | |
| 1017 | HTT_OBJS := $(HTT_DIR)/htt_tx.o \ |
| 1018 | $(HTT_DIR)/htt.o \ |
| 1019 | $(HTT_DIR)/htt_t2h.o \ |
| 1020 | $(HTT_DIR)/htt_h2t.o \ |
| 1021 | $(HTT_DIR)/htt_fw_stats.o \ |
| 1022 | $(HTT_DIR)/htt_rx.o |
| 1023 | |
Nirav Shah | 73713f7 | 2018-05-17 14:50:41 +0530 | [diff] [blame] | 1024 | ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y) |
| 1025 | HTT_OBJS += $(HTT_DIR)/htt_monitor_rx.o |
| 1026 | endif |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1027 | |
| 1028 | ############## INIT-DEINIT ########### |
| 1029 | INIT_DEINIT_DIR := init_deinit/dispatcher |
| 1030 | INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc |
| 1031 | INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src |
| 1032 | INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR) |
| 1033 | INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR) |
| 1034 | INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o |
| 1035 | |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 1036 | ############## REGULATORY ########### |
| 1037 | REGULATORY_DIR := umac/regulatory |
| 1038 | REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc |
| 1039 | REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src |
| 1040 | REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc |
| 1041 | REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src |
| 1042 | REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR) |
| 1043 | REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR) |
| 1044 | REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR) |
| 1045 | REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR) |
| 1046 | REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \ |
| 1047 | $(REG_CORE_OBJ_DIR)/reg_services.o \ |
Amar Singhal | eac6413 | 2017-05-05 13:02:37 -0700 | [diff] [blame] | 1048 | $(REG_CORE_OBJ_DIR)/reg_db_parser.o \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 1049 | $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \ |
| 1050 | $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \ |
| 1051 | $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o |
| 1052 | |
Rajeev Kumar | 1705fc2 | 2016-11-30 16:12:16 -0800 | [diff] [blame] | 1053 | ############## Control path common scheduler ########## |
Rajeev Kumar | ebb0a73 | 2016-12-24 19:05:44 -0800 | [diff] [blame] | 1054 | SCHEDULER_DIR := scheduler |
| 1055 | SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc |
| 1056 | SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src |
| 1057 | SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR) |
| 1058 | SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR) |
| 1059 | SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \ |
| 1060 | $(SCHEDULER_OBJ_DIR)/scheduler_core.o |
Rajeev Kumar | 1705fc2 | 2016-11-30 16:12:16 -0800 | [diff] [blame] | 1061 | |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1062 | ###### UMAC SERIALIZATION ######## |
| 1063 | UMAC_SER_DIR := umac/cmn_services/serialization |
| 1064 | UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc |
| 1065 | UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src |
| 1066 | UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR) |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1067 | |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1068 | UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR) |
| 1069 | UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_dequeue.o \ |
| 1070 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_enqueue.o \ |
| 1071 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \ |
| 1072 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \ |
| 1073 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \ |
Varun Reddy Yeturu | 35c07f9 | 2017-02-28 10:35:00 -0800 | [diff] [blame] | 1074 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \ |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1075 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1076 | |
| 1077 | ###### WIFI POS ######## |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1078 | WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src |
| 1079 | WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc |
| 1080 | WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src |
| 1081 | WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc |
| 1082 | WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src |
| 1083 | WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc |
| 1084 | |
| 1085 | |
| 1086 | ifeq ($(CONFIG_WIFI_POS_CONVERGED), y) |
| 1087 | WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \ |
| 1088 | $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \ |
| 1089 | $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \ |
| 1090 | $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \ |
| 1091 | $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \ |
| 1092 | $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o |
| 1093 | endif |
| 1094 | |
Naveen Rawat | 73e1ca9 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1095 | ###### CP STATS ######## |
Naveen Rawat | 96a77d3 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1096 | CP_STATS_OS_IF_SRC := $(WLAN_COMMON_ROOT)/os_if/linux/cp_stats/src |
| 1097 | CP_STATS_TGT_SRC := $(WLAN_COMMON_ROOT)/target_if/cp_stats/src |
| 1098 | CP_STATS_CORE_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/core/src |
| 1099 | CP_STATS_DISPATCHER_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/dispatcher/src |
| 1100 | |
Naveen Rawat | 73e1ca9 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1101 | CP_STATS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/cp_stats/inc |
| 1102 | CP_STATS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/cp_stats/inc |
| 1103 | CP_STATS_DISPATCHER_INC := -I$(WLAN_COMMON_INC)/umac/cp_stats/dispatcher/inc |
| 1104 | |
Naveen Rawat | 96a77d3 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1105 | ifeq ($(CONFIG_CP_STATS), y) |
| 1106 | CP_STATS_OBJS := $(CP_STATS_TGT_SRC)/target_if_mc_cp_stats.o \ |
| 1107 | $(CP_STATS_CORE_SRC)/wlan_cp_stats_comp_handler.o \ |
| 1108 | $(CP_STATS_CORE_SRC)/wlan_cp_stats_obj_mgr_handler.o \ |
Naveen Rawat | 96a77d3 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1109 | $(CP_STATS_CORE_SRC)/wlan_cp_stats_ol_api.o \ |
| 1110 | $(CP_STATS_OS_IF_SRC)/wlan_cfg80211_mc_cp_stats.o \ |
| 1111 | $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_utils_api.o \ |
| 1112 | $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_tgt_api.o \ |
| 1113 | $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_ucfg_api.o |
| 1114 | endif |
| 1115 | |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 1116 | ######################### NAN ######################### |
| 1117 | NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src |
| 1118 | NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc |
| 1119 | NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src |
| 1120 | NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc |
| 1121 | NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src |
| 1122 | NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc |
| 1123 | NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src |
| 1124 | NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc |
| 1125 | |
| 1126 | ifeq ($(CONFIG_NAN_CONVERGENCE), y) |
| 1127 | WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \ |
| 1128 | $(NAN_CORE_DIR)/nan_api.o \ |
| 1129 | $(NAN_CORE_DIR)/nan_utils.o \ |
| 1130 | $(NAN_UCFG_DIR)/nan_ucfg_api.o \ |
| 1131 | $(NAN_TGT_DIR)/target_if_nan.o \ |
| 1132 | $(NAN_OS_IF_DIR)/os_if_nan.o |
| 1133 | endif |
| 1134 | ####################################################### |
| 1135 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1136 | ############## HTC ########## |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1137 | HTC_DIR := htc |
| 1138 | HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1139 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1140 | HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \ |
| 1141 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \ |
| 1142 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \ |
| 1143 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1144 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1145 | ifeq ($(CONFIG_FEATURE_HTC_CREDIT_HISTORY), y) |
Rachit Kankane | b103562 | 2018-01-24 18:41:35 +0530 | [diff] [blame] | 1146 | HTC_OBJS += $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_credit_history.o |
| 1147 | endif |
| 1148 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1149 | ########### HIF ########### |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1150 | HIF_DIR := hif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1151 | HIF_CE_DIR := $(HIF_DIR)/src/ce |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1152 | |
| 1153 | HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher |
| 1154 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1155 | HIF_PCIE_DIR := $(HIF_DIR)/src/pcie |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1156 | HIF_SNOC_DIR := $(HIF_DIR)/src/snoc |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1157 | HIF_USB_DIR := $(HIF_DIR)/src/usb |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1158 | HIF_SDIO_DIR := $(HIF_DIR)/src/sdio |
| 1159 | |
| 1160 | HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio |
| 1161 | HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include |
| 1162 | HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1163 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1164 | HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \ |
tfyu | 350d9f7 | 2017-08-10 15:13:06 +0800 | [diff] [blame] | 1165 | -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1166 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1167 | ifeq ($(CONFIG_HIF_PCI), y) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1168 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1169 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR) |
tfyu | 350d9f7 | 2017-08-10 15:13:06 +0800 | [diff] [blame] | 1170 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1171 | endif |
| 1172 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1173 | ifeq ($(CONFIG_HIF_SNOC), y) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1174 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1175 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR) |
tfyu | 350d9f7 | 2017-08-10 15:13:06 +0800 | [diff] [blame] | 1176 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1177 | endif |
| 1178 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1179 | ifeq ($(CONFIG_HIF_USB), y) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1180 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
| 1181 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR) |
| 1182 | endif |
| 1183 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1184 | ifeq ($(CONFIG_HIF_SDIO), y) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1185 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
| 1186 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR) |
| 1187 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR) |
| 1188 | endif |
| 1189 | |
| 1190 | HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \ |
| 1191 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \ |
Nirav Shah | eb017be | 2018-02-15 11:20:58 +0530 | [diff] [blame] | 1192 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o |
| 1193 | |
| 1194 | ifeq ($(CONFIG_WLAN_NAPI), y) |
| 1195 | HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o |
| 1196 | HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o |
| 1197 | endif |
| 1198 | |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 1199 | HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \ |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1200 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \ |
| 1201 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \ |
| 1202 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \ |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1203 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1204 | |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 1205 | ifeq ($(CONFIG_WLAN_FEATURE_BMI), y) |
| 1206 | HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o |
| 1207 | endif |
| 1208 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1209 | ifeq ($(CONFIG_LITHIUM), y) |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 1210 | ifeq ($(CONFIG_CNSS_QCA6290), y) |
| 1211 | HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o |
Houston Hoffman | a0f9349 | 2016-11-18 13:42:12 -0800 | [diff] [blame] | 1212 | endif |
| 1213 | |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 1214 | ifeq ($(CONFIG_CNSS_QCA6390), y) |
| 1215 | HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6390def.o |
| 1216 | endif |
| 1217 | |
| 1218 | HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o |
| 1219 | endif |
Houston Hoffman | b4d4567 | 2017-04-24 11:56:50 -0700 | [diff] [blame] | 1220 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1221 | HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \ |
| 1222 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \ |
| 1223 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \ |
| 1224 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o |
| 1225 | |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 1226 | HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \ |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1227 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \ |
| 1228 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \ |
Sriram Madhvapathi | 82ec8e3 | 2018-06-07 10:20:15 +0530 | [diff] [blame] | 1229 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o \ |
| 1230 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/transfer.o |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 1231 | |
| 1232 | ifeq ($(CONFIG_WLAN_FEATURE_BMI), y) |
| 1233 | HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o |
| 1234 | endif |
| 1235 | |
Sriram Madhvapathi | 82ec8e3 | 2018-06-07 10:20:15 +0530 | [diff] [blame] | 1236 | ifeq ($(CONFIG_SDIO_TRANSFER), adma) |
| 1237 | HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/adma.o |
| 1238 | else |
| 1239 | HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/mailbox.o |
| 1240 | endif |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1241 | |
| 1242 | HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \ |
Sriram Madhvapathi | 82ec8e3 | 2018-06-07 10:20:15 +0530 | [diff] [blame] | 1243 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o \ |
| 1244 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/dev_quirks.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1245 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1246 | ifeq ($(CONFIG_WLAN_NAPI), y) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1247 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1248 | endif |
| 1249 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1250 | ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), y) |
Dustin Brown | 0f8dc3d | 2017-06-01 14:37:26 -0700 | [diff] [blame] | 1251 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o |
| 1252 | endif |
| 1253 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1254 | HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1255 | HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1256 | HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1257 | |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1258 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o |
Houston Hoffman | b61b9b1 | 2016-03-03 20:04:16 -0800 | [diff] [blame] | 1259 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o |
Srinivas Girigowda | c7a1b0a | 2017-12-08 12:00:00 -0800 | [diff] [blame] | 1260 | HIF_OBJS += $(HIF_COMMON_OBJS) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1261 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1262 | ifeq ($(CONFIG_HIF_PCI), y) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1263 | HIF_OBJS += $(HIF_PCIE_OBJS) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1264 | HIF_OBJS += $(HIF_CE_OBJS) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1265 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o |
| 1266 | endif |
| 1267 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1268 | ifeq ($(CONFIG_HIF_SNOC), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1269 | HIF_OBJS += $(HIF_SNOC_OBJS) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1270 | HIF_OBJS += $(HIF_CE_OBJS) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1271 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1272 | endif |
| 1273 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1274 | ifeq ($(CONFIG_HIF_SDIO), y) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1275 | HIF_OBJS += $(HIF_SDIO_OBJS) |
| 1276 | HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1277 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o |
| 1278 | endif |
| 1279 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1280 | ifeq ($(CONFIG_HIF_USB), y) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1281 | HIF_OBJS += $(HIF_USB_OBJS) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1282 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o |
| 1283 | endif |
| 1284 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1285 | ifeq ($(CONFIG_LITHIUM), y) |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1286 | ############ HAL ############ |
| 1287 | HAL_DIR := hal |
| 1288 | HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \ |
| 1289 | -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0 |
| 1290 | |
| 1291 | HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \ |
| 1292 | $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \ |
Debashis Dutt | 237c614 | 2017-01-04 11:28:59 -0800 | [diff] [blame] | 1293 | $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \ |
| 1294 | $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o |
Venkata Sharath Chandra Manchala | 9220e32 | 2018-07-09 17:20:57 -0700 | [diff] [blame] | 1295 | |
| 1296 | ifeq ($(CONFIG_CNSS_QCA6290), y) |
| 1297 | HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6290 |
| 1298 | HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6290/hal_6290_srng.o |
| 1299 | else ifeq ($(CONFIG_CNSS_QCA6390), y) |
| 1300 | HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6390 |
| 1301 | HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6390/hal_6390_srng.o |
| 1302 | else |
| 1303 | #error "Not 11ax" |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1304 | endif |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1305 | |
Venkata Sharath Chandra Manchala | 9220e32 | 2018-07-09 17:20:57 -0700 | [diff] [blame] | 1306 | endif #####CONFIG_LITHIUM#### |
| 1307 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1308 | ############ WMA ############ |
| 1309 | WMA_DIR := core/wma |
| 1310 | |
| 1311 | WMA_INC_DIR := $(WMA_DIR)/inc |
| 1312 | WMA_SRC_DIR := $(WMA_DIR)/src |
| 1313 | |
| 1314 | WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \ |
| 1315 | -I$(WLAN_ROOT)/$(WMA_SRC_DIR) |
| 1316 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 1317 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 1318 | WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o |
| 1319 | endif |
| 1320 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1321 | WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \ |
| 1322 | $(WMA_SRC_DIR)/wma_scan_roam.o \ |
| 1323 | $(WMA_SRC_DIR)/wma_dev_if.o \ |
| 1324 | $(WMA_SRC_DIR)/wma_mgmt.o \ |
| 1325 | $(WMA_SRC_DIR)/wma_power.o \ |
| 1326 | $(WMA_SRC_DIR)/wma_data.o \ |
| 1327 | $(WMA_SRC_DIR)/wma_utils.o \ |
| 1328 | $(WMA_SRC_DIR)/wma_features.o \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 1329 | $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\ |
| 1330 | $(WMA_NDP_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1331 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1332 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
Jeff Johnson | b90ab57 | 2017-01-31 15:57:35 -0800 | [diff] [blame] | 1333 | WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1334 | endif |
Jeff Johnson | 6136fb9 | 2017-03-30 15:21:49 -0700 | [diff] [blame] | 1335 | ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y) |
| 1336 | WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o |
| 1337 | endif |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1338 | ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1339 | WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o |
| 1340 | endif |
Krishna Kumaar Natarajan | d0bbb3c | 2017-03-13 17:04:58 -0700 | [diff] [blame] | 1341 | ifeq ($(CONFIG_WLAN_FEATURE_11AX), y) |
| 1342 | WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o |
| 1343 | endif |
Varun Reddy Yeturu | d33033f | 2018-06-11 10:58:30 -0700 | [diff] [blame] | 1344 | ifeq ($(CONFIG_WLAN_FEATURE_TWT), y) |
| 1345 | WMA_OBJS += $(WMA_SRC_DIR)/wma_twt.o |
| 1346 | endif |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1347 | ############## PLD ########## |
| 1348 | PLD_DIR := core/pld |
| 1349 | PLD_INC_DIR := $(PLD_DIR)/inc |
| 1350 | PLD_SRC_DIR := $(PLD_DIR)/src |
| 1351 | |
| 1352 | PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \ |
| 1353 | -I$(WLAN_ROOT)/$(PLD_SRC_DIR) |
| 1354 | |
| 1355 | PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o |
| 1356 | |
Nirav Shah | 2f3281d | 2018-04-20 13:37:56 +0530 | [diff] [blame] | 1357 | ifeq ($(CONFIG_HIF_PCI), y) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1358 | PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o |
| 1359 | endif |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1360 | ifeq ($(CONFIG_ICNSS), y) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1361 | PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o |
| 1362 | endif |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1363 | ifeq ($(CONFIG_QCA_WIFI_SDIO), y) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1364 | PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o |
| 1365 | endif |
Ajit Pal Singh | 6c6e81c | 2018-06-13 15:26:37 +0530 | [diff] [blame] | 1366 | ifeq ($(CONFIG_HIF_USB), y) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1367 | PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o |
| 1368 | endif |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1369 | |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 1370 | ifeq ($(CONFIG_QCA6290_11AX), y) |
psimha | 699e12b | 2018-02-12 16:27:18 -0800 | [diff] [blame] | 1371 | TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/11ax/v2 \ |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 1372 | -I$(WLAN_ROOT)/../fw-api/fw |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 1373 | else ifeq ($(CONFIG_QCA6390_11AX), y) |
| 1374 | TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6390/v1 \ |
| 1375 | -I$(WLAN_ROOT)/../fw-api/fw |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 1376 | else |
Dhanashri Atre | f067b58 | 2017-04-14 16:56:24 -0700 | [diff] [blame] | 1377 | TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2 \ |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1378 | -I$(WLAN_ROOT)/../fw-api/fw |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 1379 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1380 | |
Dustin Brown | 0bec9a9 | 2017-08-17 15:44:34 -0700 | [diff] [blame] | 1381 | LINUX_INC := -Iinclude |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1382 | |
| 1383 | INCS := $(HDD_INC) \ |
| 1384 | $(EPPING_INC) \ |
| 1385 | $(LINUX_INC) \ |
| 1386 | $(MAC_INC) \ |
| 1387 | $(SAP_INC) \ |
| 1388 | $(SME_INC) \ |
| 1389 | $(SYS_INC) \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1390 | $(QDF_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1391 | $(CDS_INC) \ |
Dustin Brown | 84f46ea | 2018-02-15 11:57:36 -0800 | [diff] [blame] | 1392 | $(CFG_INC) \ |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 1393 | $(DFS_INC) \ |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 1394 | $(TARGET_IF_INC) \ |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 1395 | $(CLD_TARGET_IF_INC) \ |
Sandeep Puligilla | fdd201e | 2017-02-02 18:43:46 -0800 | [diff] [blame] | 1396 | $(OS_IF_INC) \ |
Ryan Hsu | c8b27a4 | 2018-01-02 13:57:56 -0800 | [diff] [blame] | 1397 | $(GLOBAL_LMAC_IF_INC) \ |
| 1398 | $(FTM_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1399 | |
| 1400 | INCS += $(WMA_INC) \ |
| 1401 | $(UAPI_INC) \ |
| 1402 | $(COMMON_INC) \ |
| 1403 | $(WMI_INC) \ |
| 1404 | $(FWLOG_INC) \ |
| 1405 | $(TXRX_INC) \ |
| 1406 | $(OL_INC) \ |
Dhanashri Atre | 12a0839 | 2016-02-17 13:10:34 -0800 | [diff] [blame] | 1407 | $(CDP_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1408 | $(PKTLOG_INC) \ |
| 1409 | $(HTT_INC) \ |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1410 | $(INIT_DEINIT_INC) \ |
Rajeev Kumar | ebb0a73 | 2016-12-24 19:05:44 -0800 | [diff] [blame] | 1411 | $(SCHEDULER_INC) \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 1412 | $(REGULATORY_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1413 | $(HTC_INC) \ |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1414 | $(DFS_INC) \ |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1415 | $(WCFG_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1416 | |
| 1417 | INCS += $(HIF_INC) \ |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1418 | $(BMI_INC) |
| 1419 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1420 | ifeq ($(CONFIG_LITHIUM), y) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1421 | INCS += $(HAL_INC) \ |
| 1422 | $(DP_INC) |
| 1423 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1424 | |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1425 | ################ WIFI POS ################ |
| 1426 | INCS += $(WIFI_POS_API_INC) |
| 1427 | INCS += $(WIFI_POS_TGT_INC) |
| 1428 | INCS += $(WIFI_POS_OS_IF_INC) |
Naveen Rawat | 73e1ca9 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1429 | ################ CP STATS ################ |
| 1430 | INCS += $(CP_STATS_OS_IF_INC) |
| 1431 | INCS += $(CP_STATS_TGT_INC) |
| 1432 | INCS += $(CP_STATS_DISPATCHER_INC) |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 1433 | ################ NAN POS ################ |
| 1434 | INCS += $(NAN_CORE_INC) |
| 1435 | INCS += $(NAN_UCFG_INC) |
| 1436 | INCS += $(NAN_TGT_INC) |
| 1437 | INCS += $(NAN_OS_IF_INC) |
| 1438 | ########################################## |
Selvaraj, Sridhar | 0672a12 | 2016-12-29 16:11:48 +0530 | [diff] [blame] | 1439 | INCS += $(UMAC_OBJMGR_INC) |
Himanshu Agarwal | 2fdf77a | 2016-12-29 11:41:00 +0530 | [diff] [blame] | 1440 | INCS += $(UMAC_MGMT_TXRX_INC) |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 1441 | INCS += $(PMO_INC) |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 1442 | INCS += $(UMAC_P2P_INC) |
Tushnim Bhattacharyya | 44939d4 | 2017-02-15 17:08:12 -0800 | [diff] [blame] | 1443 | INCS += $(UMAC_POLICY_MGR_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1444 | INCS += $(TARGET_INC) |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 1445 | INCS += $(UMAC_TDLS_INC) |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1446 | INCS += $(UMAC_SER_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1447 | INCS += $(NLINK_INC) \ |
| 1448 | $(PTT_INC) \ |
| 1449 | $(WLAN_LOGGING_INC) |
| 1450 | |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1451 | INCS += $(PLD_INC) |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 1452 | INCS += $(OCB_INC) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1453 | |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 1454 | INCS += $(IPA_INC) |
Sandeep Puligilla | c5609d5 | 2018-05-17 19:23:41 -0700 | [diff] [blame] | 1455 | INCS += $(MLME_INC) |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 1456 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1457 | ifeq ($(CONFIG_REMOVE_PKT_LOG), n) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1458 | INCS += $(PKTLOG_INC) |
| 1459 | endif |
| 1460 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1461 | ifeq ($(BUILD_DIAG_VERSION), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1462 | INCS += $(HOST_DIAG_LOG_INC) |
| 1463 | endif |
| 1464 | |
Nachiket Kukade | 98f562a | 2017-12-15 12:18:07 +0530 | [diff] [blame] | 1465 | INCS += $(DISA_INC) |
Nachiket Kukade | 98f562a | 2017-12-15 12:18:07 +0530 | [diff] [blame] | 1466 | |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 1467 | INCS += $(UMAC_DISP_INC) |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 1468 | INCS += $(UMAC_SCAN_INC) |
Abhishek Singh | 8dfbd69 | 2017-02-21 11:11:10 +0530 | [diff] [blame] | 1469 | INCS += $(UMAC_TARGET_SCAN_INC) |
Himanshu Agarwal | b229a14 | 2017-12-21 10:16:45 +0530 | [diff] [blame] | 1470 | INCS += $(UMAC_GREEN_AP_INC) |
| 1471 | INCS += $(UMAC_TARGET_GREEN_AP_INC) |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 1472 | INCS += $(UMAC_COMMON_INC) |
Sandeep Puligilla | 342d2a6 | 2017-12-12 15:40:00 -0800 | [diff] [blame] | 1473 | INCS += $(UMAC_SPECTRAL_INC) |
| 1474 | INCS += $(UMAC_TARGET_SPECTRAL_INC) |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 1475 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1476 | OBJS := $(HDD_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1477 | $(MAC_OBJS) \ |
| 1478 | $(SAP_OBJS) \ |
| 1479 | $(SME_OBJS) \ |
| 1480 | $(SYS_OBJS) \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1481 | $(QDF_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1482 | $(CDS_OBJS) \ |
Dustin Brown | 84f46ea | 2018-02-15 11:57:36 -0800 | [diff] [blame] | 1483 | $(CFG_OBJS) \ |
Ryan Hsu | c8b27a4 | 2018-01-02 13:57:56 -0800 | [diff] [blame] | 1484 | $(FTM_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1485 | |
| 1486 | OBJS += $(WMA_OBJS) \ |
| 1487 | $(TXRX_OBJS) \ |
| 1488 | $(WMI_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1489 | $(HTC_OBJS) \ |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1490 | $(INIT_DEINIT_OBJS) \ |
Rajeev Kumar | ebb0a73 | 2016-12-24 19:05:44 -0800 | [diff] [blame] | 1491 | $(SCHEDULER_OBJS) \ |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 1492 | $(REGULATORY_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1493 | |
| 1494 | OBJS += $(HIF_OBJS) \ |
| 1495 | $(BMI_OBJS) \ |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 1496 | $(HTT_OBJS) \ |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 1497 | $(OS_IF_OBJ) \ |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 1498 | $(TARGET_IF_OBJ) \ |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 1499 | $(CLD_TARGET_IF_OBJ) \ |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 1500 | $(GLOBAL_LMAC_IF_OBJ) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1501 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1502 | ifeq ($(CONFIG_LITHIUM), y) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1503 | OBJS += $(HAL_OBJS) |
| 1504 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1505 | |
Wen Gong | 9976890 | 2018-04-25 12:07:49 +0800 | [diff] [blame] | 1506 | ifeq ($(CONFIG_FEATURE_FW_LOG_PARSING), y) |
| 1507 | OBJS += $(FWLOG_OBJS) |
| 1508 | endif |
| 1509 | |
Nirav Shah | 459bebf | 2018-01-17 16:59:14 +0530 | [diff] [blame] | 1510 | ifeq ($(CONFIG_FEATURE_EPPING), y) |
| 1511 | OBJS += $(EPPING_OBJS) |
| 1512 | endif |
| 1513 | |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 1514 | ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y) |
| 1515 | OBJS += $(DFS_OBJS) |
| 1516 | endif |
Nirav Shah | 459bebf | 2018-01-17 16:59:14 +0530 | [diff] [blame] | 1517 | |
Selvaraj, Sridhar | 0672a12 | 2016-12-29 16:11:48 +0530 | [diff] [blame] | 1518 | OBJS += $(UMAC_OBJMGR_OBJS) |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1519 | OBJS += $(WIFI_POS_OBJS) |
Naveen Rawat | 96a77d3 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1520 | OBJS += $(CP_STATS_OBJS) |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 1521 | OBJS += $(WLAN_NAN_OBJS) |
Himanshu Agarwal | 2fdf77a | 2016-12-29 11:41:00 +0530 | [diff] [blame] | 1522 | OBJS += $(UMAC_MGMT_TXRX_OBJS) |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 1523 | OBJS += $(UMAC_TDLS_OBJS) |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 1524 | OBJS += $(PMO_OBJS) |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 1525 | OBJS += $(UMAC_P2P_OBJS) |
Tushnim Bhattacharyya | 44939d4 | 2017-02-15 17:08:12 -0800 | [diff] [blame] | 1526 | OBJS += $(UMAC_POLICY_MGR_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1527 | OBJS += $(WLAN_LOGGING_OBJS) |
| 1528 | OBJS += $(NLINK_OBJS) |
| 1529 | OBJS += $(PTT_OBJS) |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1530 | OBJS += $(UMAC_SER_OBJS) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1531 | OBJS += $(PLD_OBJS) |
Sandeep Puligilla | c5609d5 | 2018-05-17 19:23:41 -0700 | [diff] [blame] | 1532 | OBJS += $(MLME_OBJS) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1533 | |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 1534 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 1535 | OBJS += $(OCB_OBJS) |
| 1536 | endif |
| 1537 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1538 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 1539 | OBJS += $(IPA_OBJS) |
| 1540 | endif |
| 1541 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1542 | ifeq ($(CONFIG_REMOVE_PKT_LOG), n) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1543 | OBJS += $(PKTLOG_OBJS) |
| 1544 | endif |
| 1545 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1546 | ifeq ($(BUILD_DIAG_VERSION), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1547 | OBJS += $(HOST_DIAG_LOG_OBJS) |
| 1548 | endif |
| 1549 | |
Nachiket Kukade | 98f562a | 2017-12-15 12:18:07 +0530 | [diff] [blame] | 1550 | ifeq ($(CONFIG_WLAN_FEATURE_DISA), y) |
| 1551 | OBJS += $(DISA_OBJS) |
| 1552 | endif |
| 1553 | |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 1554 | OBJS += $(UMAC_DISP_OBJS) |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 1555 | OBJS += $(UMAC_SCAN_OBJS) |
Abhishek Singh | 8dfbd69 | 2017-02-21 11:11:10 +0530 | [diff] [blame] | 1556 | OBJS += $(UMAC_COMMON_OBJS) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1557 | OBJS += $(WCFG_OBJS) |
Sandeep Puligilla | 8e89d57 | 2018-04-02 18:07:45 -0700 | [diff] [blame] | 1558 | |
Sandeep Puligilla | 342d2a6 | 2017-12-12 15:40:00 -0800 | [diff] [blame] | 1559 | OBJS += $(UMAC_SPECTRAL_OBJS) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1560 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1561 | ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y) |
Himanshu Agarwal | b229a14 | 2017-12-21 10:16:45 +0530 | [diff] [blame] | 1562 | OBJS += $(UMAC_GREEN_AP_OBJS) |
| 1563 | endif |
| 1564 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1565 | ifeq ($(CONFIG_LITHIUM), y) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1566 | OBJS += $(DP_OBJS) |
| 1567 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1568 | |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 1569 | ccflags-y += $(INCS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1570 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1571 | cppflags-y += -DANI_OS_TYPE_ANDROID=6 \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1572 | -Wall\ |
| 1573 | -Werror\ |
Jeff Johnson | a63a9b6 | 2018-04-12 15:30:45 -0700 | [diff] [blame] | 1574 | -D__linux__ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1575 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1576 | cppflags-$(CONFIG_PTT_SOCK_SVC_ENABLE) += -DPTT_SOCK_SVC_ENABLE |
| 1577 | cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DFEATURE_WLAN_WAPI |
| 1578 | cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DATH_SUPPORT_WAPI |
| 1579 | cppflags-$(CONFIG_AGEIE_ON_SCAN_RESULTS) += -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS |
| 1580 | cppflags-$(CONFIG_SOFTAP_CHANNEL_RANGE) += -DSOFTAP_CHANNEL_RANGE |
| 1581 | cppflags-$(CONFIG_FEATURE_WLAN_SCAN_PNO) += -DFEATURE_WLAN_SCAN_PNO |
| 1582 | cppflags-$(CONFIG_WLAN_FEATURE_PACKET_FILTERING) += -DWLAN_FEATURE_PACKET_FILTERING |
| 1583 | cppflags-$(CONFIG_WLAN_NS_OFFLOAD) += -DWLAN_NS_OFFLOAD |
| 1584 | cppflags-$(CONFIG_FEATURE_WLAN_RA_FILTERING) += -DFEATURE_WLAN_RA_FILTERING |
| 1585 | cppflags-$(CONFIG_FEATURE_WLAN_LPHB) += -DFEATURE_WLAN_LPHB |
| 1586 | cppflags-$(CONFIG_QCA_SUPPORT_TX_THROTTLE) += -DQCA_SUPPORT_TX_THROTTLE |
| 1587 | cppflags-$(CONFIG_WMI_INTERFACE_EVENT_LOGGING) += -DWMI_INTERFACE_EVENT_LOGGING |
| 1588 | cppflags-$(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS) += -DWLAN_FEATURE_LINK_LAYER_STATS |
| 1589 | cppflags-$(CONFIG_FEATURE_WLAN_EXTSCAN) += -DFEATURE_WLAN_EXTSCAN |
| 1590 | cppflags-$(CONFIG_160MHZ_SUPPORT) += -DCONFIG_160MHZ_SUPPORT |
| 1591 | cppflags-$(CONFIG_MCL) += -DCONFIG_MCL |
| 1592 | cppflags-$(CONFIG_MCL_REGDB) += -DCONFIG_MCL_REGDB |
| 1593 | cppflags-$(CONFIG_LEGACY_CHAN_ENUM) += -DCONFIG_LEGACY_CHAN_ENUM |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1594 | cppflags-$(CONFIG_WLAN_PMO_ENABLE) += -DWLAN_PMO_ENABLE |
| 1595 | cppflags-$(CONFIG_CONVERGED_P2P_ENABLE) += -DCONVERGED_P2P_ENABLE |
| 1596 | cppflags-$(CONFIG_WLAN_POLICY_MGR_ENABLE) += -DWLAN_POLICY_MGR_ENABLE |
| 1597 | cppflags-$(CONFIG_SUPPORT_11AX) += -DSUPPORT_11AX |
| 1598 | cppflags-$(CONFIG_HDD_INIT_WITH_RTNL_LOCK) += -DCONFIG_HDD_INIT_WITH_RTNL_LOCK |
| 1599 | cppflags-$(CONFIG_CONVERGED_TDLS_ENABLE) += -DCONVERGED_TDLS_ENABLE |
| 1600 | cppflags-$(CONFIG_WLAN_CONV_SPECTRAL_ENABLE) += -DWLAN_CONV_SPECTRAL_ENABLE |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1601 | cppflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS |
Nirav Shah | 73713f7 | 2018-05-17 14:50:41 +0530 | [diff] [blame] | 1602 | cppflags-$(CONFIG_FEATURE_MONITOR_MODE_SUPPORT) += -DFEATURE_MONITOR_MODE_SUPPORT |
Varun Reddy Yeturu | d33033f | 2018-06-11 10:58:30 -0700 | [diff] [blame] | 1603 | cppflags-$(CONFIG_WLAN_FEATURE_TWT) += -DWLAN_SUPPORT_TWT |
Jeff Johnson | 8daf768 | 2018-04-11 07:42:56 -0700 | [diff] [blame] | 1604 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1605 | cppflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL |
| 1606 | cppflags-$(CONFIG_WIFI_POS_CONVERGED) += -DWIFI_POS_CONVERGED |
| 1607 | cppflags-$(CONFIG_WIFI_POS_LEGACY) += -DFEATURE_OEM_DATA_SUPPORT |
| 1608 | cppflags-$(CONFIG_FEATURE_HTC_CREDIT_HISTORY) += -DFEATURE_HTC_CREDIT_HISTORY |
| 1609 | cppflags-$(CONFIG_WLAN_FEATURE_P2P_DEBUG) += -DWLAN_FEATURE_P2P_DEBUG |
Rachit Kankane | 0dc3e85 | 2018-05-07 17:33:42 +0530 | [diff] [blame] | 1610 | cppflags-$(CONFIG_WLAN_WEXT_SUPPORT_ENABLE) += -DWLAN_WEXT_SUPPORT_ENABLE |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1611 | cppflags-$(CONFIG_WLAN_LOGGING_SOCK_SVC) += -DWLAN_LOGGING_SOCK_SVC_ENABLE |
Rachit Kankane | 0868f8f | 2018-06-22 18:52:03 +0530 | [diff] [blame] | 1612 | cppflags-$(CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY) += -DWLAN_LOGGING_BUFFERS_DYNAMICALLY |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1613 | cppflags-$(CONFIG_WLAN_FEATURE_FILS) += -DWLAN_FEATURE_FILS_SK |
Naveen Rawat | 96a77d3 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1614 | cppflags-$(CONFIG_CP_STATS) += -DQCA_SUPPORT_CP_STATS |
Wen Gong | 3f00338 | 2018-05-14 14:26:37 +0800 | [diff] [blame] | 1615 | cppflags-$(CONFIG_FEATURE_MEMDUMP_ENABLE) += -DWLAN_FEATURE_MEMDUMP_ENABLE |
Wen Gong | 9976890 | 2018-04-25 12:07:49 +0800 | [diff] [blame] | 1616 | cppflags-$(CONFIG_FEATURE_FW_LOG_PARSING) += -DFEATURE_FW_LOG_PARSING |
Sridhar Selvaraj | 8c6f5e8 | 2017-08-21 14:53:46 +0530 | [diff] [blame] | 1617 | |
Nirav Shah | 1575dd7 | 2018-06-24 13:46:39 +0530 | [diff] [blame] | 1618 | cppflags-$(CONFIG_PLD_SDIO_CNSS_FLAG) += -DCONFIG_PLD_SDIO_CNSS |
| 1619 | cppflags-$(CONFIG_PLD_PCIE_CNSS_FLAG) += -DCONFIG_PLD_PCIE_CNSS |
| 1620 | cppflags-$(CONFIG_PLD_PCIE_INIT_FLAG) += -DCONFIG_PLD_PCIE_INIT |
Yue Ma | e6a7a32 | 2016-08-31 11:09:23 -0700 | [diff] [blame] | 1621 | |
Lin Bai | 59b7976 | 2017-09-01 16:18:55 +0800 | [diff] [blame] | 1622 | #Enable NL80211 test mode |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1623 | cppflags-$(CONFIG_NL80211_TESTMODE) += -DWLAN_NL80211_TESTMODE |
Lin Bai | 59b7976 | 2017-09-01 16:18:55 +0800 | [diff] [blame] | 1624 | |
Yue Ma | 2b09131 | 2017-02-15 15:56:47 -0800 | [diff] [blame] | 1625 | # Flag to enable bus auto suspend |
Jeff Johnson | fe6f0b0 | 2018-04-11 09:27:04 -0700 | [diff] [blame] | 1626 | ifeq ($(CONFIG_HIF_PCI), y) |
Yue Ma | 2b09131 | 2017-02-15 15:56:47 -0800 | [diff] [blame] | 1627 | ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1628 | cppflags-y += -DFEATURE_RUNTIME_PM |
Yue Ma | 2b09131 | 2017-02-15 15:56:47 -0800 | [diff] [blame] | 1629 | endif |
| 1630 | endif |
| 1631 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1632 | cppflags-$(CONFIG_ICNSS) += -DCONFIG_PLD_SNOC_ICNSS |
Yuanyuan Liu | 11f526a | 2016-05-18 10:22:07 -0700 | [diff] [blame] | 1633 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1634 | cppflags-$(CONFIG_ICNSS) += -DQCA_WIFI_3_0 |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1635 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1636 | cppflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0_ADRASTEA |
| 1637 | cppflags-$(CONFIG_ADRASTEA_SHADOW_REGISTERS) += -DADRASTEA_SHADOW_REGISTERS |
| 1638 | cppflags-$(CONFIG_ADRASTEA_RRI_ON_DDR) += -DADRASTEA_RRI_ON_DDR |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1639 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1640 | ifeq ($(CONFIG_QMI_SUPPORT), n) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1641 | cppflags-y += -DCONFIG_BYPASS_QMI |
Yuanyuan Liu | f45ab3d | 2017-12-14 11:00:09 -0800 | [diff] [blame] | 1642 | endif |
| 1643 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1644 | cppflags-$(CONFIG_WLAN_FASTPATH) += -DWLAN_FEATURE_FASTPATH |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1645 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1646 | cppflags-$(CONFIG_FEATURE_PKTLOG) += -DFEATURE_PKTLOG |
Poddar, Siddarth | eefe348 | 2016-09-21 18:12:59 +0530 | [diff] [blame] | 1647 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1648 | ifeq ($(CONFIG_WLAN_NAPI), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1649 | cppflags-y += -DFEATURE_NAPI |
| 1650 | cppflags-y += -DHIF_IRQ_AFFINITY |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1651 | ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1652 | cppflags-y += -DFEATURE_NAPI_DEBUG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1653 | endif |
| 1654 | endif |
| 1655 | |
Yue Ma | df224b8 | 2016-04-21 12:46:04 -0700 | [diff] [blame] | 1656 | ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM))) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1657 | cppflags-y += -DMSM_PLATFORM |
Yuanyuan Liu | 5af4436 | 2016-04-01 21:57:06 -0700 | [diff] [blame] | 1658 | endif |
| 1659 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1660 | cppflags-y += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1661 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1662 | cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_CONTROL_V2 |
| 1663 | cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL |
| 1664 | cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY) += -DQCA_LL_LEGACY_TX_FLOW_CONTROL |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1665 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1666 | ifeq ($(BUILD_DEBUG_VERSION), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1667 | cppflags-y += -DWLAN_DEBUG |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1668 | ifeq ($(CONFIG_TRACE_RECORD_FEATURE), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1669 | cppflags-y += -DTRACE_RECORD \ |
Rachit Kankane | 0baf6e7 | 2018-01-19 15:01:50 +0530 | [diff] [blame] | 1670 | -DLIM_TRACE_RECORD \ |
| 1671 | -DSME_TRACE_RECORD \ |
| 1672 | -DHDD_TRACE_RECORD |
| 1673 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1674 | endif |
Dustin Brown | 0ea8d3b | 2018-07-06 13:58:49 -0700 | [diff] [blame] | 1675 | cppflags-$(CONFIG_UNIT_TEST) += -DWLAN_UNIT_TEST |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1676 | cppflags-$(CONFIG_WLAN_DEBUG_CRASH_INJECT) += -DCONFIG_WLAN_DEBUG_CRASH_INJECT |
| 1677 | cppflags-$(CONFIG_FEATURE_UNIT_TEST_SUSPEND) += -DWLAN_SUSPEND_RESUME_TEST |
Dustin Brown | 0f8dc3d | 2017-06-01 14:37:26 -0700 | [diff] [blame] | 1678 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1679 | ifeq ($(CONFIG_LEAK_DETECTION), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1680 | cppflags-y += \ |
Dustin Brown | 63ef318 | 2018-04-02 10:57:18 -0700 | [diff] [blame] | 1681 | -DCONFIG_HALT_KMEMLEAK \ |
| 1682 | -DCONFIG_LEAK_DETECTION \ |
| 1683 | -DMEMORY_DEBUG \ |
| 1684 | -DNBUF_MEMORY_DEBUG \ |
Dustin Brown | f39413a | 2018-07-05 14:01:23 -0700 | [diff] [blame] | 1685 | -DNBUF_MAP_UNMAP_DEBUG \ |
Dustin Brown | 63ef318 | 2018-04-02 10:57:18 -0700 | [diff] [blame] | 1686 | -DTIMER_MANAGER |
Dustin Brown | 21a761d | 2017-11-15 16:37:00 -0800 | [diff] [blame] | 1687 | endif |
| 1688 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1689 | cppflags-y += -DWLAN_FEATURE_P2P |
| 1690 | cppflags-y += -DWLAN_FEATURE_WFD |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1691 | ifeq ($(CONFIG_QCOM_VOWIFI_11R), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1692 | cppflags-y += -DKERNEL_SUPPORT_11R_CFG80211 |
| 1693 | cppflags-y += -DUSE_80211_WMMTSPEC_FOR_RIC |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1694 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1695 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1696 | ifeq ($(CONFIG_QCOM_ESE), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1697 | cppflags-y += -DFEATURE_WLAN_ESE |
| 1698 | cppflags-y += -DQCA_COMPUTE_TX_DELAY |
| 1699 | cppflags-y += -DQCA_COMPUTE_TX_DELAY_PER_TID |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1700 | endif |
| 1701 | |
| 1702 | #normally, TDLS negative behavior is not needed |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1703 | cppflags-$(CONFIG_QCOM_TDLS) += -DFEATURE_WLAN_TDLS |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1704 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1705 | cppflags-$(CONFIG_QCACLD_WLAN_LFR3) += -DWLAN_FEATURE_ROAM_OFFLOAD |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1706 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1707 | cppflags-$(CONFIG_CNSS_GENL) += -DCNSS_GENL |
Selvaraj, Sridhar | 046d77d | 2017-03-07 14:53:13 +0530 | [diff] [blame] | 1708 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1709 | cppflags-$(CONFIG_QCACLD_WLAN_LFR2) += -DWLAN_FEATURE_HOST_ROAM |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 1710 | |
Qiwei Cai | d96c021 | 2018-06-15 11:12:49 +0800 | [diff] [blame] | 1711 | cppflags-$(CONFIG_FEATURE_ROAM_DEBUG) += -DFEATURE_ROAM_DEBUG |
| 1712 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1713 | cppflags-$(CONFIG_WLAN_POWER_DEBUGFS) += -DWLAN_POWER_DEBUGFS |
Sridhar Selvaraj | dc400d2 | 2016-10-18 17:18:03 +0530 | [diff] [blame] | 1714 | |
Rajeev Kumar | 69d7d49 | 2017-02-13 21:48:16 -0800 | [diff] [blame] | 1715 | # Enable object manager reference count debug infrastructure |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1716 | cppflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_DEBUG |
Rajeev Kumar | 69d7d49 | 2017-02-13 21:48:16 -0800 | [diff] [blame] | 1717 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1718 | cppflags-$(CONFIG_WLAN_FEATURE_SAE) += -DWLAN_FEATURE_SAE |
Padma, Santhosh Kumar | 07eb80b | 2017-07-05 16:10:06 +0530 | [diff] [blame] | 1719 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1720 | ifeq ($(BUILD_DIAG_VERSION), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1721 | cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT |
| 1722 | cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_CSR |
| 1723 | cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_LIM |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1724 | ifeq ($(CONFIG_HIF_PCI), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1725 | cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1726 | endif |
| 1727 | endif |
| 1728 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1729 | ifeq ($(CONFIG_HIF_USB), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1730 | cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
| 1731 | cppflags-y += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT |
| 1732 | cppflags-y += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1733 | endif |
| 1734 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1735 | cppflags-$(CONFIG_WLAN_FEATURE_11W) += -DWLAN_FEATURE_11W |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1736 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1737 | cppflags-$(CONFIG_QCA_TXDESC_SANITY_CHECKS) += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS |
gbian | e55c956 | 2016-11-01 14:47:47 +0800 | [diff] [blame] | 1738 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1739 | cppflags-$(CONFIG_QCOM_LTE_COEX) += -DFEATURE_WLAN_CH_AVOID |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1740 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1741 | cppflags-$(CONFIG_WLAN_FEATURE_LPSS) += -DWLAN_FEATURE_LPSS |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1742 | |
Nirav Shah | a72db1d | 2018-06-06 17:11:07 +0530 | [diff] [blame] | 1743 | cppflags-$(CONFIG_DESC_DUP_DETECT_DEBUG) += -DDESC_DUP_DETECT_DEBUG |
| 1744 | cppflags-$(CONFIG_DEBUG_RX_RING_BUFFER) += -DDEBUG_RX_RING_BUFFER |
Nirav Shah | 7629196 | 2016-04-25 10:50:37 +0530 | [diff] [blame] | 1745 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1746 | cppflags-$(PANIC_ON_BUG) += -DPANIC_ON_BUG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1747 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1748 | cppflags-$(WLAN_WARN_ON_ASSERT) += -DWLAN_WARN_ON_ASSERT |
Dustin Brown | 0634ba3 | 2018-03-22 13:00:44 -0700 | [diff] [blame] | 1749 | |
Rajeev Kumar | 6bdee8e | 2018-04-18 17:36:05 -0700 | [diff] [blame] | 1750 | ccflags-$(CONFIG_POWER_MANAGEMENT_OFFLOAD) += -DWLAN_POWER_MANAGEMENT_OFFLOAD |
| 1751 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1752 | cppflags-$(CONFIG_WLAN_LOG_FATAL) += -DWLAN_LOG_FATAL |
| 1753 | cppflags-$(CONFIG_WLAN_LOG_ERROR) += -DWLAN_LOG_ERROR |
| 1754 | cppflags-$(CONFIG_WLAN_LOG_WARN) += -DWLAN_LOG_WARN |
| 1755 | cppflags-$(CONFIG_WLAN_LOG_INFO) += -DWLAN_LOG_INFO |
| 1756 | cppflags-$(CONFIG_WLAN_LOG_DEBUG) += -DWLAN_LOG_DEBUG |
Dustin Brown | 92def29 | 2018-03-14 15:02:14 -0700 | [diff] [blame] | 1757 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1758 | cppflags-$(WLAN_OPEN_SOURCE) += -DWLAN_OPEN_SOURCE |
Dustin Brown | 92def29 | 2018-03-14 15:02:14 -0700 | [diff] [blame] | 1759 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1760 | cppflags-$(CONFIG_FEATURE_STATS_EXT) += -DWLAN_FEATURE_STATS_EXT |
Dustin Brown | 92def29 | 2018-03-14 15:02:14 -0700 | [diff] [blame] | 1761 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1762 | cppflags-$(CONFIG_QCACLD_FEATURE_NAN) += -DWLAN_FEATURE_NAN |
Dustin Brown | 92def29 | 2018-03-14 15:02:14 -0700 | [diff] [blame] | 1763 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1764 | cppflags-$(CONFIG_QCA_IBSS_SUPPORT) += -DQCA_IBSS_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1765 | |
| 1766 | #Enable OL debug and wmi unified functions |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1767 | cppflags-$(CONFIG_ATH_PERF_PWR_OFFLOAD) += -DATH_PERF_PWR_OFFLOAD |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1768 | |
| 1769 | #Disable packet log |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1770 | cppflags-$(CONFIG_REMOVE_PKT_LOG) += -DREMOVE_PKT_LOG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1771 | |
| 1772 | #Enable 11AC TX |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1773 | cppflags-$(CONFIG_ATH_11AC_TXCOMPACT) += -DATH_11AC_TXCOMPACT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1774 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1775 | #Enable PCI specific APIS (dma, etc) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1776 | cppflags-$(CONFIG_HIF_PCI) += -DHIF_PCI |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1777 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1778 | cppflags-$(CONFIG_HIF_SNOC) += -DHIF_SNOC |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1779 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1780 | #Enable High Latency related Flags |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1781 | ifeq ($(CONFIG_QCA_WIFI_SDIO), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1782 | cppflags-y += -DCONFIG_HL_SUPPORT \ |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1783 | -DCONFIG_AR6320_SUPPORT \ |
| 1784 | -DSDIO_3_0 \ |
| 1785 | -DHIF_SDIO \ |
| 1786 | -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \ |
| 1787 | -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \ |
| 1788 | -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \ |
| 1789 | -DHIF_MBOX_SLEEP_WAR \ |
| 1790 | -DDEBUG_HL_LOGGING \ |
| 1791 | -DQCA_BAD_PEER_TX_FLOW_CL \ |
| 1792 | -DCONFIG_TX_DESC_HI_PRIO_RESERVE \ |
| 1793 | -DCONFIG_PER_VDEV_TX_DESC_POOL \ |
| 1794 | -DCONFIG_SDIO \ |
| 1795 | -DFEATURE_WLAN_FORCE_SAP_SCC |
Sriram Madhvapathi | 82ec8e3 | 2018-06-07 10:20:15 +0530 | [diff] [blame] | 1796 | |
| 1797 | ifeq ($(CONFIG_SDIO_TRANSFER), adma) |
| 1798 | cppflags-y += -DCONFIG_SDIO_TRANSFER_ADMA |
| 1799 | else |
| 1800 | cppflags-y += -DCONFIG_SDIO_TRANSFER_MAILBOX |
| 1801 | endif |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1802 | endif |
| 1803 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1804 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1805 | cppflags-y += -DWLAN_FEATURE_DSRC |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 1806 | |
| 1807 | ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1808 | cppflags-y += -DWLAN_OCB_UT |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 1809 | endif |
| 1810 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1811 | endif |
| 1812 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1813 | cppflags-$(CONFIG_FEATURE_SKB_PRE_ALLOC) += -DFEATURE_SKB_PRE_ALLOC |
bings | 7762da1 | 2017-03-06 07:21:04 +0800 | [diff] [blame] | 1814 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1815 | #Enable USB specific APIS |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1816 | ifeq ($(CONFIG_HIF_USB), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1817 | cppflags-y += -DHIF_USB \ |
Nirav Shah | eb017be | 2018-02-15 11:20:58 +0530 | [diff] [blame] | 1818 | -DDEBUG_HL_LOGGING \ |
Mohit Khanna | e7a4357 | 2016-10-10 17:34:21 -0700 | [diff] [blame] | 1819 | -DCONFIG_HL_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1820 | endif |
| 1821 | |
Ajit Pal Singh | 0bd748a | 2018-06-19 11:48:02 +0530 | [diff] [blame] | 1822 | #Enable Genoa specific features. |
| 1823 | cppflags-$(CONFIG_QCA_HL_NETDEV_FLOW_CONTROL) += -DQCA_HL_NETDEV_FLOW_CONTROL |
| 1824 | cppflags-$(CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL) += -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL |
| 1825 | cppflags-$(CONFIG_FEATURE_HL_DBS_GROUP_CREDIT_SHARING) += -DFEATURE_HL_DBS_GROUP_CREDIT_SHARING |
| 1826 | cppflags-$(CONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE) += -DCONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE |
| 1827 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1828 | #Enable FW logs through ini |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1829 | cppflags-y += -DCONFIG_FW_LOGS_BASED_ON_INI |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1830 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1831 | #Enable power management suspend/resume functionality |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1832 | cppflags-$(CONFIG_ATH_BUS_PM) += -DATH_BUS_PM |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1833 | |
| 1834 | #Enable FLOWMAC module support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1835 | cppflags-$(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE) += -DATH_SUPPORT_FLOWMAC_MODULE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1836 | |
| 1837 | #Enable spectral support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1838 | cppflags-$(CONFIG_ATH_SUPPORT_SPECTRAL) += -DATH_SUPPORT_SPECTRAL |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1839 | |
| 1840 | #Enable WDI Event support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1841 | cppflags-$(CONFIG_WDI_EVENT_ENABLE) += -DWDI_EVENT_ENABLE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1842 | |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 1843 | #Endianness selection |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1844 | ifeq ($(CONFIG_LITTLE_ENDIAN), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1845 | cppflags-y += -DANI_LITTLE_BYTE_ENDIAN |
| 1846 | cppflags-y += -DANI_LITTLE_BIT_ENDIAN |
| 1847 | cppflags-y += -DDOT11F_LITTLE_ENDIAN_HOST |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1848 | else |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1849 | cppflags-y += -DANI_BIG_BYTE_ENDIAN |
| 1850 | cppflags-y += -DBIG_ENDIAN_HOST |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1851 | endif |
| 1852 | |
| 1853 | #Enable TX reclaim support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1854 | cppflags-$(CONFIG_TX_CREDIT_RECLAIM_SUPPORT) += -DTX_CREDIT_RECLAIM_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1855 | |
| 1856 | #Enable FTM support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1857 | cppflags-$(CONFIG_QCA_WIFI_FTM) += -DQCA_WIFI_FTM |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1858 | |
| 1859 | #Enable Checksum Offload support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1860 | cppflags-$(CONFIG_CHECKSUM_OFFLOAD) += -DCHECKSUM_OFFLOAD |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1861 | |
| 1862 | #Enable Checksum Offload support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1863 | cppflags-$(CONFIG_IPA_OFFLOAD) += -DIPA_OFFLOAD |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1864 | |
anisha agarwal | 188d254 | 2017-03-21 13:15:58 -0700 | [diff] [blame] | 1865 | ifeq ($(CONFIG_ARCH_SDX20), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1866 | cppflags-y += -DSYNC_IPA_READY |
bings | 7762da1 | 2017-03-06 07:21:04 +0800 | [diff] [blame] | 1867 | endif |
| 1868 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1869 | #Enable GTK Offload |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1870 | cppflags-$(CONFIG_GTK_OFFLOAD) += -DWLAN_FEATURE_GTK_OFFLOAD |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1871 | |
Jeff Johnson | b8b3976 | 2018-04-06 20:08:10 -0700 | [diff] [blame] | 1872 | #Enable External WoW |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1873 | cppflags-$(CONFIG_EXT_WOW) += -DWLAN_FEATURE_EXTWOW_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1874 | |
| 1875 | #Mark it as SMP Kernel |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1876 | cppflags-$(CONFIG_SMP) += -DQCA_CONFIG_SMP |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1877 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1878 | cppflags-$(CONFIG_CHNL_MATRIX_RESTRICTION) += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1879 | |
Zhu Jianmin | 04392c4 | 2017-05-12 16:34:53 +0800 | [diff] [blame] | 1880 | #Enable ICMP packet disable powersave feature |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1881 | cppflags-$(CONFIG_ICMP_DISABLE_PS) += -DWLAN_ICMP_DISABLE_PS |
Zhu Jianmin | 04392c4 | 2017-05-12 16:34:53 +0800 | [diff] [blame] | 1882 | |
Sandeep Puligilla | 0e64b61 | 2016-08-26 13:20:58 -0700 | [diff] [blame] | 1883 | #Enable OBSS feature |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1884 | cppflags-y += -DQCA_HT_2040_COEX |
Sandeep Puligilla | 0e64b61 | 2016-08-26 13:20:58 -0700 | [diff] [blame] | 1885 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1886 | #enable MCC TO SCC switch |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1887 | cppflags-$(CONFIG_FEATURE_WLAN_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1888 | |
| 1889 | #enable wlan auto shutdown feature |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1890 | cppflags-$(CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN) += -DFEATURE_WLAN_AUTO_SHUTDOWN |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1891 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1892 | #enable AP-AP ACS Optimization |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1893 | cppflags-$(CONFIG_FEATURE_WLAN_AP_AP_ACS_OPTIMIZE) += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1894 | |
| 1895 | #Enable 4address scheme |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1896 | cppflags-$(CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME) += -DFEATURE_WLAN_STA_4ADDR_SCHEME |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1897 | |
Zhu Jianmin | 35fcd0d | 2017-08-30 10:47:31 +0800 | [diff] [blame] | 1898 | #enable MDM/SDX special config |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1899 | cppflags-$(CONFIG_MDM_PLATFORM) += -DMDM_PLATFORM |
Zhu Jianmin | 35fcd0d | 2017-08-30 10:47:31 +0800 | [diff] [blame] | 1900 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1901 | #Disable STA-AP Mode DFS support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1902 | cppflags-$(CONFIG_FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE) += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1903 | |
| 1904 | #Open P2P device interface only for non-Mobile router use cases |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1905 | cppflags-$(CONFIG_WLAN_OPEN_P2P_INTERFACE) += -DWLAN_OPEN_P2P_INTERFACE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1906 | |
| 1907 | #Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1908 | cppflags-$(CONFIG_WLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY) += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1909 | |
| 1910 | #Green AP feature |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1911 | cppflags-$(CONFIG_QCACLD_FEATURE_GREEN_AP) += -DWLAN_SUPPORT_GREEN_AP |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1912 | |
Nachiket Kukade | d0dd62e | 2018-05-21 18:39:22 +0530 | [diff] [blame] | 1913 | ifeq ($(CONFIG_QCACLD_FEATURE_APF), y) |
| 1914 | cppflags-$(CONFIG_QCACLD_FEATURE_APF) += -DFEATURE_WLAN_APF |
| 1915 | endif |
| 1916 | |
Yun Park | 637d648 | 2016-10-05 10:51:33 -0700 | [diff] [blame] | 1917 | #Stats & Quota Metering feature |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1918 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
| 1919 | ifeq ($(CONFIG_QCACLD_FEATURE_METERING), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1920 | cppflags-y += -DFEATURE_METERING |
Yun Park | 637d648 | 2016-10-05 10:51:33 -0700 | [diff] [blame] | 1921 | endif |
Yun Park | b4f591d | 2017-03-29 15:51:01 -0700 | [diff] [blame] | 1922 | endif |
Yun Park | 637d648 | 2016-10-05 10:51:33 -0700 | [diff] [blame] | 1923 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1924 | cppflags-$(CONFIG_TUFELLO_DUAL_FW_SUPPORT) += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT |
| 1925 | cppflags-$(CONFIG_CHANNEL_HOPPING_ALL_BANDS) += -DCHANNEL_HOPPING_ALL_BANDS |
gaolez | 76d2a16 | 2017-03-21 19:23:58 +0800 | [diff] [blame] | 1926 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1927 | #Enable Signed firmware support for split binary format |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1928 | cppflags-$(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT) += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1929 | |
| 1930 | #Enable single firmware binary format |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1931 | cppflags-$(CONFIG_QCA_SINGLE_BINARY_SUPPORT) += -DQCA_SINGLE_BINARY_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1932 | |
| 1933 | #Enable collecting target RAM dump after kernel panic |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1934 | cppflags-$(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC) += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1935 | |
| 1936 | #Enable/disable secure firmware feature |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1937 | cppflags-$(CONFIG_FEATURE_SECURE_FIRMWARE) += -DFEATURE_SECURE_FIRMWARE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1938 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1939 | cppflags-$(CONFIG_ATH_PCIE_ACCESS_DEBUG) += -DCONFIG_ATH_PCIE_ACCESS_DEBUG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1940 | |
Jeff Johnson | 69ba6d0 | 2018-04-12 16:05:32 -0700 | [diff] [blame] | 1941 | # Enable feature support for Linux version QCMBR |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1942 | cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1943 | |
Manikandan Mohan | dcc21ba | 2016-03-15 14:31:56 -0700 | [diff] [blame] | 1944 | # Enable featue sync tsf between multi devices |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1945 | cppflags-$(CONFIG_WLAN_SYNC_TSF) += -DWLAN_FEATURE_TSF |
| 1946 | cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS) += -DWLAN_FEATURE_TSF_PLUS |
Yu Wang | 000dc2f | 2017-05-26 17:38:48 +0800 | [diff] [blame] | 1947 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1948 | cppflags-$(CONFIG_ATH_PROCFS_DIAG_SUPPORT) += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
Nirav Shah | e8ac340 | 2017-12-31 15:36:32 +0530 | [diff] [blame] | 1949 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1950 | cppflags-$(CONFIG_HELIUMPLUS) += -DHELIUMPLUS |
Manjunathappa Prakash | 7b0ad46 | 2018-04-15 00:37:16 -0700 | [diff] [blame] | 1951 | cppflags-$(CONFIG_RX_OL) += -DRECEIVE_OFFLOAD |
chenguo | 0f3636b | 2018-05-10 14:24:49 +0800 | [diff] [blame] | 1952 | cppflags-$(CONFIG_TX_TID_OVERRIDE) += -DATH_TX_PRI_OVERRIDE |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1953 | cppflags-$(CONFIG_AR900B) += -DAR900B |
| 1954 | cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64 |
| 1955 | cppflags-$(CONFIG_OL_RX_INDICATION_RECORD) += -DOL_RX_INDICATION_RECORD |
| 1956 | cppflags-$(CONFIG_TSOSEG_DEBUG) += -DTSOSEG_DEBUG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1957 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1958 | cppflags-$(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING) += -DENABLE_DEBUG_ADDRESS_MARKING |
| 1959 | cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO |
| 1960 | cppflags-$(CONFIG_FEATURE_TSO_DEBUG) += -DFEATURE_TSO_DEBUG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1961 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1962 | cppflags-$(CONFIG_WLAN_LRO) += -DFEATURE_LRO |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1963 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1964 | cppflags-$(CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE) += -DFEATURE_AP_MCC_CH_AVOIDANCE |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1965 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1966 | cppflags-$(CONFIG_MPC_UT_FRAMEWORK) += -DMPC_UT_FRAMEWORK |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1967 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1968 | cppflags-$(CONFIG_FEATURE_EPPING) += -DWLAN_FEATURE_EPPING |
Nirav Shah | 459bebf | 2018-01-17 16:59:14 +0530 | [diff] [blame] | 1969 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1970 | cppflags-$(CONFIG_WLAN_OFFLOAD_PACKETS) += -DWLAN_FEATURE_OFFLOAD_PACKETS |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1971 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1972 | cppflags-$(CONFIG_WLAN_FEATURE_DISA) += -DWLAN_FEATURE_DISA |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 1973 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1974 | cppflags-$(CONFIG_WLAN_FEATURE_FIPS) += -DWLAN_FEATURE_FIPS |
Jeff Johnson | 7869aad | 2017-05-15 15:46:36 -0700 | [diff] [blame] | 1975 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1976 | cppflags-$(CONFIG_LFR_SUBNET_DETECTION) += -DFEATURE_LFR_SUBNET_DETECTION |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 1977 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1978 | cppflags-$(CONFIG_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH |
Chandrasekaran Manishekar | 068e25e | 2016-03-07 11:51:07 +0530 | [diff] [blame] | 1979 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1980 | cppflags-$(CONFIG_WLAN_FEATURE_NAN_DATAPATH) += -DWLAN_FEATURE_NAN_DATAPATH |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 1981 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1982 | cppflags-$(CONFIG_NAN_CONVERGENCE) += -DWLAN_FEATURE_NAN_CONVERGENCE |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 1983 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1984 | cppflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW |
Will Huang | 3cd2b7c | 2017-11-17 13:16:56 +0800 | [diff] [blame] | 1985 | |
Yue Ma | 91e1c00 | 2018-05-24 11:18:36 -0700 | [diff] [blame] | 1986 | cppflags-$(CONFIG_QCA_WIFI_NAPIER_EMULATION) += -DQCA_WIFI_NAPIER_EMULATION |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1987 | cppflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2 |
| 1988 | cppflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF |
| 1989 | cppflags-$(CONFIG_QCA_WIFI_QCA6290) += -DQCA_WIFI_QCA6290 |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 1990 | cppflags-$(CONFIG_QCA6390_HEADERS_DEF) += -DQCA6390_HEADERS_DEF |
| 1991 | cppflags-$(CONFIG_QCA_WIFI_QCA6390) += -DQCA_WIFI_QCA6390 |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1992 | cppflags-$(CONFIG_QCA_WIFI_QCA8074) += -DQCA_WIFI_QCA8074 |
| 1993 | cppflags-$(CONFIG_QCA_WIFI_QCA8074_VP) += -DQCA_WIFI_QCA8074_VP |
| 1994 | cppflags-$(CONFIG_DP_INTR_POLL_BASED) += -DDP_INTR_POLL_BASED |
| 1995 | cppflags-$(CONFIG_TX_PER_PDEV_DESC_POOL) += -DTX_PER_PDEV_DESC_POOL |
| 1996 | cppflags-$(CONFIG_DP_TRACE) += -DCONFIG_DP_TRACE |
| 1997 | cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO |
| 1998 | cppflags-$(CONFIG_TSO_DEBUG_LOG_ENABLE) += -DTSO_DEBUG_LOG_ENABLE |
| 1999 | cppflags-$(CONFIG_DP_LFR) += -DDP_LFR |
| 2000 | cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64 |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 2001 | cppflags-$(CONFIG_WLAN_FEATURE_BMI) += -DWLAN_FEATURE_BMI |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2002 | |
Nirav Shah | c8047a8 | 2018-06-22 16:39:01 +0530 | [diff] [blame] | 2003 | ccflags-$(CONFIG_QCA_LL_TX_FLOW_CONTROL_RESIZE) += -DQCA_LL_TX_FLOW_CONTROL_RESIZE |
| 2004 | |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 2005 | ifeq ($(CONFIG_QCA6290_11AX), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2006 | cppflags-y += -DQCA_WIFI_QCA6290_11AX |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 2007 | endif |
| 2008 | |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 2009 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2010 | cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX |
| 2011 | cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX_BSS_COLOR |
Krishna Kumaar Natarajan | 639c6ff | 2017-02-13 14:01:04 -0800 | [diff] [blame] | 2012 | |
Sravan Kumar Kairam | 7bca07e | 2018-07-05 18:32:22 +0530 | [diff] [blame] | 2013 | cppflags-$(CONFIG_LITHIUM) += -DFEATURE_AST |
| 2014 | |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2015 | # Dummy flag for WIN/MCL converged data path compilation |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2016 | cppflags-y += -DDP_PRINT_ENABLE=0 |
| 2017 | cppflags-y += -DATH_SUPPORT_WRAP=0 |
| 2018 | cppflags-y += -DQCA_HOST2FW_RXBUF_RING |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2019 | #endof dummy flags |
| 2020 | |
Jianmin Zhu | 91e834d | 2018-07-12 11:07:42 +0800 | [diff] [blame] | 2021 | # Enable lock of serialization component to avoid race condition issues |
| 2022 | cppflags-y += -DWLAN_CMD_SERIALIZATION_LOCKING |
| 2023 | |
Nirav Shah | 8ba94a5 | 2018-06-07 09:06:25 +0530 | [diff] [blame] | 2024 | ccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os |
| 2025 | |
Arif Hussain | 757b45f | 2017-02-11 16:47:06 -0800 | [diff] [blame] | 2026 | # DFS component |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 2027 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_MCL_DFS_SUPPORT |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 2028 | ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y) |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 2029 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_FULL_OFFLOAD |
Arif Hussain | 02c2b63 | 2018-03-08 23:09:21 -0800 | [diff] [blame] | 2030 | else |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 2031 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_PARTIAL_OFFLOAD |
Arif Hussain | 02c2b63 | 2018-03-08 23:09:21 -0800 | [diff] [blame] | 2032 | endif |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 2033 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DDFS_COMPONENT_ENABLE |
| 2034 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_USE_POLICY_MANAGER |
| 2035 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT |
Arif Hussain | 757b45f | 2017-02-11 16:47:06 -0800 | [diff] [blame] | 2036 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2037 | cppflags-$(CONFIG_WLAN_DEBUGFS) += -DWLAN_DEBUGFS |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 2038 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2039 | cppflags-$(CONFIG_DYNAMIC_DEBUG) += -DFEATURE_MULTICAST_HOST_FW_MSGS |
Zhu Jianmin | 35fcd0d | 2017-08-30 10:47:31 +0800 | [diff] [blame] | 2040 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2041 | cppflags-$(CONFIG_ENABLE_SMMU_S1_TRANSLATION) += -DENABLE_SMMU_S1_TRANSLATION |
Himanshu Agarwal | edf30dc | 2017-06-05 15:54:27 +0530 | [diff] [blame] | 2042 | |
Alok Kumar | b64650c | 2018-03-23 17:05:11 +0530 | [diff] [blame] | 2043 | #Flag to enable NUD tracking |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2044 | cppflags-$(CONFIG_WLAN_NUD_TRACKING) += -DWLAN_NUD_TRACKING |
| 2045 | |
Nirav Shah | 997e083 | 2018-06-06 17:49:12 +0530 | [diff] [blame] | 2046 | # configure log buffer size |
| 2047 | ifdef CONFIG_CFG_NUM_DP_TRACE_RECORD |
| 2048 | ccflags-y += -DMAX_QDF_DP_TRACE_RECORDS=$(CONFIG_CFG_NUM_DP_TRACE_RECORD) |
| 2049 | endif |
| 2050 | |
| 2051 | ifdef CONFIG_CFG_NUM_HTC_CREDIT_HISTORY |
| 2052 | ccflags-y += -DHTC_CREDIT_HISTORY_MAX=$(CONFIG_CFG_NUM_HTC_CREDIT_HISTORY) |
| 2053 | endif |
| 2054 | |
| 2055 | ifdef CONFIG_CFG_NUM_WMI_EVENT_HISTORY |
| 2056 | ccflags-y += -DWMI_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_EVENT_HISTORY) |
| 2057 | endif |
| 2058 | |
| 2059 | ifdef CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY |
| 2060 | ccflags-y += -DWMI_MGMT_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY) |
| 2061 | endif |
| 2062 | |
| 2063 | ifdef CONFIG_CFG_NUM_TX_RX_HISTOGRAM |
| 2064 | ccflags-y += -DNUM_TX_RX_HISTOGRAM=$(CONFIG_CFG_NUM_TX_RX_HISTOGRAM) |
| 2065 | endif |
| 2066 | |
| 2067 | ifdef CONFIG_CFG_NUM_RX_IND_RECORD |
| 2068 | ccflags-y += -DOL_RX_INDICATION_MAX_RECORDS=$(CONFIG_CFG_NUM_RX_IND_RECORD) |
| 2069 | endif |
| 2070 | |
Qiwei Cai | ad9b01c | 2018-07-09 17:21:31 +0800 | [diff] [blame] | 2071 | ifdef CONFIG_CFG_NUM_ROAM_DEBUG_RECORD |
| 2072 | ccflags-y += -DWLAN_ROAM_DEBUG_MAX_REC=$(CONFIG_CFG_NUM_ROAM_DEBUG_RECORD) |
| 2073 | endif |
| 2074 | |
Rachit Kankane | 8863cba | 2018-06-05 17:31:48 +0530 | [diff] [blame] | 2075 | ifdef CONFIG_CFG_PMO_WOW_FILTERS_MAX |
| 2076 | ccflags-y += -DPMO_WOW_FILTERS_MAX=$(CONFIG_CFG_PMO_WOW_FILTERS_MAX) |
| 2077 | endif |
Nirav Shah | 997e083 | 2018-06-06 17:49:12 +0530 | [diff] [blame] | 2078 | |
jsreekum | ac44b92 | 2018-06-12 20:18:39 +0530 | [diff] [blame] | 2079 | ifdef CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV |
| 2080 | ccflags-y += -DCFG_TGT_DEFAULT_GTK_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV) |
| 2081 | endif |
| 2082 | |
| 2083 | ifdef CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV |
| 2084 | ccflags-y += -DCFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV) |
| 2085 | endif |
| 2086 | |
| 2087 | ifdef CONFIG_CFG_MAX_PERIODIC_TX_PTRNS |
| 2088 | ccflags-y += -DWMA_MAXNUM_PERIODIC_TX_PTRNS=$(CONFIG_CFG_MAX_PERIODIC_TX_PTRNS) |
| 2089 | endif |
| 2090 | |
| 2091 | ifdef CONFIG_CFG_MAX_STA_VDEVS |
| 2092 | ccflags-y += -DCFG_TGT_DEFAULT_MAX_STA_VDEVS=$(CONFIG_CFG_MAX_STA_VDEVS) |
| 2093 | endif |
| 2094 | |
Rachit Kankane | 0106e38 | 2018-05-16 18:59:28 +0530 | [diff] [blame] | 2095 | ifdef CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS |
| 2096 | ccflags-y += -DNUM_OF_ADDITIONAL_FW_PEERS=$(CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS) |
| 2097 | endif |
| 2098 | |
jsreekum | ac44b92 | 2018-06-12 20:18:39 +0530 | [diff] [blame] | 2099 | ifdef CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES |
| 2100 | ccflags-y += -DCFG_TGT_NUM_TDLS_CONN_TABLE_ENTRIES=$(CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES) |
| 2101 | endif |
| 2102 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2103 | KBUILD_CPPFLAGS += $(cppflags-y) |
Alok Kumar | b64650c | 2018-03-23 17:05:11 +0530 | [diff] [blame] | 2104 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2105 | # Currently, for versions of gcc which support it, the kernel Makefile |
| 2106 | # is disabling the maybe-uninitialized warning. Re-enable it for the |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 2107 | # WLAN driver. Note that we must use ccflags-y here so that it |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2108 | # will override the kernel settings. |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 2109 | ifeq ($(call cc-option-yn, -Wmaybe-uninitialized), y) |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 2110 | ccflags-y += -Wmaybe-uninitialized |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2111 | ifneq (y,$(CONFIG_ARCH_MSM)) |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 2112 | ccflags-y += -Wframe-larger-than=4096 |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2113 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2114 | endif |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 2115 | ccflags-y += -Wmissing-prototypes |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2116 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 2117 | ifeq ($(call cc-option-yn, -Wheader-guard), y) |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 2118 | ccflags-y += -Wheader-guard |
Srinivas Girigowda | 0a85ccd | 2016-12-01 14:58:08 -0800 | [diff] [blame] | 2119 | endif |
Samuel Ahn | c9c48ca | 2016-09-19 15:46:36 +0530 | [diff] [blame] | 2120 | # If the module name is not "wlan", then the define MULTI_IF_NAME to be the |
Yu Wang | 66e4ff2 | 2017-02-15 19:09:24 +0800 | [diff] [blame] | 2121 | # same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to |
Samuel Ahn | c9c48ca | 2016-09-19 15:46:36 +0530 | [diff] [blame] | 2122 | # any string that must be unique for all instances of the driver on the system. |
| 2123 | # This allows multiple instances of the driver with different module names. |
| 2124 | # If the module name is wlan, leave MULTI_IF_NAME undefined and the code will |
| 2125 | # treat the driver as the primary driver. |
| 2126 | ifneq ($(MODNAME), wlan) |
Yu Wang | 66e4ff2 | 2017-02-15 19:09:24 +0800 | [diff] [blame] | 2127 | CHIP_NAME ?= $(MODNAME) |
Jeff Johnson | b4e2d82 | 2018-04-12 15:53:24 -0700 | [diff] [blame] | 2128 | ccflags-y += -DMULTI_IF_NAME=\"$(CHIP_NAME)\" |
Samuel Ahn | c9c48ca | 2016-09-19 15:46:36 +0530 | [diff] [blame] | 2129 | endif |
| 2130 | |
| 2131 | # WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the |
| 2132 | # system. If it is not defined, then the host driver will use the first 4 |
| 2133 | # characters (including NULL) of MULTI_IF_NAME to construct |
| 2134 | # WLAN_HDD_ADAPTER_MAGIC. |
| 2135 | ifdef WLAN_HDD_ADAPTER_MAGIC |
Jeff Johnson | b4e2d82 | 2018-04-12 15:53:24 -0700 | [diff] [blame] | 2136 | ccflags-y += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC) |
Samuel Ahn | c9c48ca | 2016-09-19 15:46:36 +0530 | [diff] [blame] | 2137 | endif |
Srinivas Girigowda | 0a85ccd | 2016-12-01 14:58:08 -0800 | [diff] [blame] | 2138 | |
Dustin Brown | 9b217c0 | 2018-03-29 11:17:53 -0700 | [diff] [blame] | 2139 | # Determine if we are building against an arm architecture host |
| 2140 | ifeq ($(findstring arm, $(ARCH)),) |
Jeff Johnson | b4e2d82 | 2018-04-12 15:53:24 -0700 | [diff] [blame] | 2141 | ccflags-y += -DWLAN_HOST_ARCH_ARM=0 |
Dustin Brown | 9b217c0 | 2018-03-29 11:17:53 -0700 | [diff] [blame] | 2142 | else |
Jeff Johnson | b4e2d82 | 2018-04-12 15:53:24 -0700 | [diff] [blame] | 2143 | ccflags-y += -DWLAN_HOST_ARCH_ARM=1 |
Dustin Brown | 9b217c0 | 2018-03-29 11:17:53 -0700 | [diff] [blame] | 2144 | endif |
| 2145 | |
Naveen Rawat | 9383625 | 2017-06-20 16:30:59 -0700 | [diff] [blame] | 2146 | # inject some build related information |
Dustin Brown | 96cd963 | 2017-11-13 12:45:04 -0800 | [diff] [blame] | 2147 | ifeq ($(CONFIG_BUILD_TAG), y) |
Dustin Brown | 0e769d0 | 2017-11-14 12:52:32 -0800 | [diff] [blame] | 2148 | CLD_CHECKOUT = $(shell cd "$(WLAN_ROOT)" && \ |
| 2149 | git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+) |
| 2150 | CLD_IDS = $(shell cd "$(WLAN_ROOT)" && \ |
| 2151 | git log $(CLD_CHECKOUT)~..HEAD | \ |
| 2152 | sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \ |
| 2153 | paste -sd "," -) |
| 2154 | |
| 2155 | CMN_CHECKOUT = $(shell cd "$(WLAN_COMMON_INC)" && \ |
| 2156 | git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+) |
| 2157 | CMN_IDS = $(shell cd "$(WLAN_COMMON_INC)" && \ |
| 2158 | git log $(CMN_CHECKOUT)~..HEAD | \ |
| 2159 | sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \ |
| 2160 | paste -sd "," -) |
| 2161 | |
Dustin Brown | 96cd963 | 2017-11-13 12:45:04 -0800 | [diff] [blame] | 2162 | TIMESTAMP = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ') |
Dustin Brown | 0e769d0 | 2017-11-14 12:52:32 -0800 | [diff] [blame] | 2163 | BUILD_TAG = "$(TIMESTAMP); cld:$(CLD_IDS); cmn:$(CMN_IDS);" |
Mahesh Kumar Kalikot Veetil | 48af32b | 2018-02-23 11:50:19 -0800 | [diff] [blame] | 2164 | # It's assumed that BUILD_TAG is used only in wlan_hdd_main.c |
| 2165 | CFLAGS_wlan_hdd_main.o += -DBUILD_TAG=\"$(BUILD_TAG)\" |
Naveen Rawat | 9383625 | 2017-06-20 16:30:59 -0700 | [diff] [blame] | 2166 | endif |
| 2167 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2168 | # Module information used by KBuild framework |
| 2169 | obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o |
| 2170 | $(MODNAME)-y := $(OBJS) |
Srinivas Girigowda | c7a1b0a | 2017-12-08 12:00:00 -0800 | [diff] [blame] | 2171 | OBJS_DIRS := $(dir $(OBJS)) \ |
| 2172 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ \ |
| 2173 | $(QDF_OBJ_DIR)/ \ |
| 2174 | $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/ \ |
| 2175 | $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/ \ |
| 2176 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/ |
| 2177 | CLEAN_DIRS := $(addsuffix *.o,$(sort $(OBJS_DIRS))) \ |
| 2178 | $(addsuffix .*.o.cmd,$(sort $(OBJS_DIRS))) |
| 2179 | clean-files := $(CLEAN_DIRS) |