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 | |
Rajeev Kumar Sirasanagandla | 4725ae4 | 2018-05-24 22:33:34 +0530 | [diff] [blame] | 737 | ########## ACTION OUI ########## |
| 738 | |
| 739 | ACTION_OUI_DIR := components/action_oui |
| 740 | ACTION_OUI_INC := -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/core/inc \ |
| 741 | -I$(WLAN_ROOT)/$(ACTION_OUI_DIR)/dispatcher/inc |
| 742 | |
| 743 | ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y) |
| 744 | ACTION_OUI_OBJS := $(ACTION_OUI_DIR)/core/src/wlan_action_oui_main.o \ |
| 745 | $(ACTION_OUI_DIR)/core/src/wlan_action_oui_parse.o \ |
| 746 | $(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_tgt_api.o \ |
| 747 | $(ACTION_OUI_DIR)/dispatcher/src/wlan_action_oui_ucfg_api.o |
| 748 | endif |
| 749 | |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 750 | ########## CLD TARGET_IF ####### |
Rajeev Kumar | f46083e | 2017-07-17 17:48:16 -0700 | [diff] [blame] | 751 | CLD_TARGET_IF_DIR := components/target_if |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 752 | |
| 753 | 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] | 754 | -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 755 | |
Wu Gao | a9d336b | 2018-05-30 14:48:04 +0800 | [diff] [blame] | 756 | ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y) |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 757 | CLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \ |
| 758 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \ |
| 759 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \ |
| 760 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \ |
| 761 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \ |
| 762 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \ |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 763 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o \ |
| 764 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \ |
| 765 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \ |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 766 | $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o |
Qiwei Cai | 1083f5b | 2018-07-02 19:10:11 +0800 | [diff] [blame] | 767 | ifeq ($(CONFIG_WLAN_NS_OFFLOAD), y) |
| 768 | CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o |
| 769 | endif |
Wu Gao | a9d336b | 2018-05-30 14:48:04 +0800 | [diff] [blame] | 770 | endif |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 771 | |
| 772 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 773 | CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ocb/inc |
| 774 | CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ocb/src/target_if_ocb.o |
| 775 | endif |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 776 | |
Nachiket Kukade | 98f562a | 2017-12-15 12:18:07 +0530 | [diff] [blame] | 777 | ifeq ($(CONFIG_WLAN_FEATURE_DISA), y) |
| 778 | CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/disa/inc |
| 779 | CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/disa/src/target_if_disa.o |
| 780 | endif |
| 781 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 782 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 783 | CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/ipa/inc |
| 784 | CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/ipa/src/target_if_ipa.o |
| 785 | endif |
| 786 | |
Rajeev Kumar Sirasanagandla | 4725ae4 | 2018-05-24 22:33:34 +0530 | [diff] [blame] | 787 | ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y) |
| 788 | CLD_TARGET_IF_INC += -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/action_oui/inc |
| 789 | CLD_TARGET_IF_OBJ += $(CLD_TARGET_IF_DIR)/action_oui/src/target_if_action_oui.o |
| 790 | endif |
| 791 | |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 792 | ############## UMAC P2P ########### |
| 793 | P2P_DIR := umac/p2p |
| 794 | P2P_CORE_DIR := $(P2P_DIR)/core |
| 795 | P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src |
| 796 | P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR) |
| 797 | P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher |
| 798 | P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc |
| 799 | P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src |
| 800 | P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR) |
| 801 | UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \ |
| 802 | -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc |
| 803 | UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \ |
| 804 | $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \ |
Wu Gao | e568979 | 2018-07-05 19:20:13 +0800 | [diff] [blame] | 805 | $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_cfg.o \ |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 806 | $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \ |
| 807 | $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \ |
| 808 | $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o |
| 809 | |
Tushnim Bhattacharyya | 44939d4 | 2017-02-15 17:08:12 -0800 | [diff] [blame] | 810 | ###### UMAC POLICY MGR ######## |
| 811 | UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr |
| 812 | |
| 813 | UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \ |
| 814 | -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src |
| 815 | |
| 816 | UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \ |
| 817 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \ |
| 818 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \ |
| 819 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \ |
| 820 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \ |
| 821 | |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 822 | ###### UMAC TDLS ######## |
| 823 | UMAC_TDLS_DIR := $(WLAN_COMMON_ROOT)/umac/tdls |
| 824 | |
| 825 | UMAC_TDLS_INC := -I$(WLAN_COMMON_INC)/umac/tdls/dispatcher/inc |
| 826 | |
| 827 | UMAC_TDLS_OBJS := $(UMAC_TDLS_DIR)/core/src/wlan_tdls_main.o \ |
| 828 | $(UMAC_TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \ |
| 829 | $(UMAC_TDLS_DIR)/core/src/wlan_tdls_peer.o \ |
| 830 | $(UMAC_TDLS_DIR)/core/src/wlan_tdls_mgmt.o \ |
| 831 | $(UMAC_TDLS_DIR)/core/src/wlan_tdls_ct.o \ |
| 832 | $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \ |
| 833 | $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \ |
| 834 | $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \ |
Wu Gao | bdb7f27 | 2018-07-05 19:33:26 +0800 | [diff] [blame] | 835 | $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_cfg.o \ |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 836 | $(WLAN_COMMON_ROOT)/os_if/linux/tdls/src/wlan_cfg80211_tdls.o |
| 837 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 838 | ########### BMI ########### |
| 839 | BMI_DIR := core/bmi |
| 840 | |
| 841 | BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc |
| 842 | |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 843 | ifeq ($(CONFIG_WLAN_FEATURE_BMI), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 844 | BMI_OBJS := $(BMI_DIR)/src/bmi.o \ |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 845 | $(BMI_DIR)/src/bmi_1.o \ |
Poddar, Siddarth | ef1f302 | 2016-05-10 20:10:43 +0530 | [diff] [blame] | 846 | $(BMI_DIR)/src/ol_fw.o \ |
| 847 | $(BMI_DIR)/src/ol_fw_common.o |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 848 | endif |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 849 | |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 850 | ########## TARGET_IF ####### |
| 851 | TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if |
| 852 | |
| 853 | TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \ |
Rajeev Kumar | da2444c | 2017-01-10 22:42:07 -0800 | [diff] [blame] | 854 | -I$(WLAN_COMMON_INC)/target_if/core/src \ |
Mukul Sharma | 0cdf8b3 | 2017-02-04 14:27:56 +0530 | [diff] [blame] | 855 | -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 856 | -I$(WLAN_COMMON_INC)/target_if/p2p/inc \ |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 857 | -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \ |
| 858 | -I$(WLAN_COMMON_INC)/target_if/tdls/inc |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 859 | |
Rajeev Kumar | da2444c | 2017-01-10 22:42:07 -0800 | [diff] [blame] | 860 | 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] | 861 | $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \ |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 862 | $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \ |
Arunk Khandavalli | a6305a3 | 2018-01-25 11:19:18 +0530 | [diff] [blame] | 863 | $(TARGET_IF_DIR)/tdls/src/target_if_tdls.o \ |
| 864 | $(TARGET_IF_DIR)/init_deinit/src/init_cmd_api.o \ |
Sourav Mohapatra | cf63257 | 2018-04-02 11:01:35 +0530 | [diff] [blame] | 865 | $(TARGET_IF_DIR)/init_deinit/src/init_deinit_lmac.o \ |
Arunk Khandavalli | a6305a3 | 2018-01-25 11:19:18 +0530 | [diff] [blame] | 866 | $(TARGET_IF_DIR)/init_deinit/src/init_event_handler.o \ |
| 867 | $(TARGET_IF_DIR)/init_deinit/src/service_ready_util.o \ |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 868 | |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 869 | ########### GLOBAL_LMAC_IF ########## |
| 870 | GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if |
| 871 | |
| 872 | GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \ |
| 873 | -I$(WLAN_COMMON_INC)/global_lmac_if/src |
| 874 | |
| 875 | GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o |
| 876 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 877 | ########### WMI ########### |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 878 | WMI_ROOT_DIR := wmi |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 879 | |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 880 | WMI_SRC_DIR := $(WMI_ROOT_DIR)/src |
| 881 | WMI_INC_DIR := $(WMI_ROOT_DIR)/inc |
| 882 | WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 883 | |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 884 | WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR) |
| 885 | |
| 886 | WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \ |
| 887 | $(WMI_OBJ_DIR)/wmi_tlv_helper.o \ |
| 888 | $(WMI_OBJ_DIR)/wmi_unified_tlv.o \ |
| 889 | $(WMI_OBJ_DIR)/wmi_unified_api.o \ |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 890 | $(WMI_OBJ_DIR)/wmi_unified_reg_api.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 891 | |
Wu Gao | a9d336b | 2018-05-30 14:48:04 +0800 | [diff] [blame] | 892 | ifeq ($(CONFIG_POWER_MANAGEMENT_OFFLOAD), y) |
| 893 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o |
| 894 | endif |
| 895 | |
Nachiket Kukade | d0dd62e | 2018-05-21 18:39:22 +0530 | [diff] [blame] | 896 | ifeq ($(CONFIG_QCACLD_FEATURE_APF), y) |
| 897 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_apf_tlv.o |
| 898 | endif |
| 899 | |
Rajeev Kumar Sirasanagandla | 4725ae4 | 2018-05-24 22:33:34 +0530 | [diff] [blame] | 900 | ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y) |
| 901 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_action_oui_tlv.o |
| 902 | endif |
| 903 | |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 904 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 905 | ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y) |
| 906 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_ocb_ut.o |
| 907 | endif |
| 908 | endif |
| 909 | |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 910 | ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y) |
| 911 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o |
| 912 | endif |
| 913 | |
Varun Reddy Yeturu | d33033f | 2018-06-11 10:58:30 -0700 | [diff] [blame] | 914 | ifeq ($(CONFIG_WLAN_FEATURE_TWT), y) |
| 915 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_api.o |
| 916 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_twt_tlv.o |
| 917 | endif |
| 918 | |
Wen Gong | bd949fc | 2018-05-21 18:35:13 +0800 | [diff] [blame] | 919 | ifeq ($(CONFIG_FEATURE_WLAN_EXTSCAN), y) |
| 920 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_api.o |
| 921 | WMI_OBJS += $(WMI_OBJ_DIR)/wmi_unified_extscan_tlv.o |
| 922 | endif |
| 923 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 924 | ########### FWLOG ########### |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 925 | FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 926 | |
| 927 | FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR) |
| 928 | |
| 929 | FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o |
| 930 | |
| 931 | ############ TXRX ############ |
| 932 | TXRX_DIR := core/dp/txrx |
| 933 | TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR) |
| 934 | |
| 935 | TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \ |
| 936 | $(TXRX_DIR)/ol_cfg.o \ |
| 937 | $(TXRX_DIR)/ol_rx.o \ |
| 938 | $(TXRX_DIR)/ol_rx_fwd.o \ |
| 939 | $(TXRX_DIR)/ol_txrx.o \ |
| 940 | $(TXRX_DIR)/ol_rx_defrag.o \ |
| 941 | $(TXRX_DIR)/ol_tx_desc.o \ |
| 942 | $(TXRX_DIR)/ol_tx.o \ |
| 943 | $(TXRX_DIR)/ol_rx_reorder_timeout.o \ |
| 944 | $(TXRX_DIR)/ol_rx_reorder.o \ |
| 945 | $(TXRX_DIR)/ol_rx_pn.o \ |
| 946 | $(TXRX_DIR)/ol_tx_queue.o \ |
| 947 | $(TXRX_DIR)/ol_txrx_peer_find.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 948 | $(TXRX_DIR)/ol_txrx_encap.o \ |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 949 | $(TXRX_DIR)/ol_tx_send.o \ |
| 950 | $(TXRX_DIR)/ol_tx_sched.o \ |
| 951 | $(TXRX_DIR)/ol_tx_classify.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 952 | |
Nirav Shah | bb8e47c | 2018-05-17 16:56:41 +0530 | [diff] [blame] | 953 | ifeq ($(CONFIG_WDI_EVENT_ENABLE), y) |
| 954 | TXRX_OBJS += $(TXRX_DIR)/ol_txrx_event.o |
| 955 | endif |
| 956 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 957 | ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y) |
| 958 | TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o |
| 959 | endif |
| 960 | |
Nirav Shah | c4aa1ab | 2018-04-21 12:38:44 +0530 | [diff] [blame] | 961 | ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY), y) |
| 962 | TXRX_OBJS += $(TXRX_DIR)/ol_txrx_legacy_flow_control.o |
| 963 | endif |
| 964 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 965 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Yun Park | b4f591d | 2017-03-29 15:51:01 -0700 | [diff] [blame] | 966 | TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o |
| 967 | endif |
| 968 | |
Nirav Shah | 5ff1fd0 | 2018-03-11 14:55:53 +0530 | [diff] [blame] | 969 | ifeq ($(CONFIG_WLAN_FASTPATH), y) |
| 970 | TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_fastpath.o |
| 971 | else |
| 972 | TXRX_OBJS += $(TXRX_DIR)/ol_tx_ll_legacy.o |
| 973 | endif |
| 974 | |
Nirav Shah | 46fc630 | 2018-04-21 12:49:28 +0530 | [diff] [blame] | 975 | ifeq ($(CONFIG_QCA_SUPPORT_TX_THROTTLE), y) |
| 976 | TXRX_OBJS += $(TXRX_DIR)/ol_tx_throttle.o |
| 977 | endif |
| 978 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 979 | ifeq ($(CONFIG_LITHIUM), y) |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 980 | ############ DP 3.0 ############ |
Venkata Sharath Chandra Manchala | 9220e32 | 2018-07-09 17:20:57 -0700 | [diff] [blame] | 981 | DP_INC := -I$(WLAN_COMMON_INC)/dp/inc \ |
| 982 | -I$(WLAN_COMMON_INC)/dp/wifi3.0 \ |
| 983 | -I$(WLAN_COMMON_INC)/target_if/dp/inc |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 984 | |
| 985 | DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0 |
| 986 | DP_OBJS := $(DP_SRC)/dp_main.o \ |
| 987 | $(DP_SRC)/dp_tx.o \ |
| 988 | $(DP_SRC)/dp_tx_desc.o \ |
| 989 | $(DP_SRC)/dp_rx.o \ |
| 990 | $(DP_SRC)/dp_rx_err.o \ |
| 991 | $(DP_SRC)/dp_htt.o \ |
| 992 | $(DP_SRC)/dp_peer.o \ |
Debashis Dutt | 237c614 | 2017-01-04 11:28:59 -0800 | [diff] [blame] | 993 | $(DP_SRC)/dp_rx_desc.o \ |
Ravi Joshi | 12665a0 | 2017-03-08 16:35:04 -0800 | [diff] [blame] | 994 | $(DP_SRC)/dp_reo.o \ |
| 995 | $(DP_SRC)/dp_rx_mon_dest.o \ |
Ravi Joshi | c4a4108 | 2017-01-09 22:27:58 -0800 | [diff] [blame] | 996 | $(DP_SRC)/dp_rx_mon_status.o \ |
Venkata Sharath Chandra Manchala | bcdfdb1 | 2017-03-29 19:25:45 -0700 | [diff] [blame] | 997 | $(DP_SRC)/dp_rx_defrag.o \ |
Sravan Kumar Kairam | b8bdf52 | 2018-05-30 22:14:50 +0530 | [diff] [blame] | 998 | $(DP_SRC)/dp_stats.o \ |
| 999 | $(WLAN_COMMON_ROOT)/target_if/dp/src/target_if_dp.o |
Manjunathappa Prakash | 6c54736 | 2017-03-30 20:11:47 -0700 | [diff] [blame] | 1000 | ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y) |
| 1001 | DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o |
| 1002 | endif |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1003 | endif |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1004 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1005 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Yun Park | b4f591d | 2017-03-29 15:51:01 -0700 | [diff] [blame] | 1006 | DP_OBJS += $(DP_SRC)/dp_ipa.o |
| 1007 | endif |
| 1008 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1009 | ifeq ($(CONFIG_WDI_EVENT_ENABLE), y) |
Venkata Sharath Chandra Manchala | 1240fc7 | 2017-10-26 17:32:29 -0700 | [diff] [blame] | 1010 | DP_OBJS += $(DP_SRC)/dp_wdi_event.o |
| 1011 | endif |
| 1012 | |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1013 | ############ CFG ############ |
Ravi Joshi | d55b18a | 2017-02-17 10:48:14 -0800 | [diff] [blame] | 1014 | WCFG_DIR := wlan_cfg |
| 1015 | WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR) |
| 1016 | WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR) |
Nirav Shah | 9272dbb | 2018-07-18 12:01:39 +0530 | [diff] [blame] | 1017 | |
| 1018 | ifeq ($(CONFIG_LITHIUM), y) |
Ravi Joshi | d55b18a | 2017-02-17 10:48:14 -0800 | [diff] [blame] | 1019 | WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o |
Nirav Shah | 9272dbb | 2018-07-18 12:01:39 +0530 | [diff] [blame] | 1020 | endif |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1021 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1022 | ############ OL ############ |
| 1023 | OL_DIR := core/dp/ol |
| 1024 | OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc |
| 1025 | |
Dhanashri Atre | 12a0839 | 2016-02-17 13:10:34 -0800 | [diff] [blame] | 1026 | ############ CDP ############ |
| 1027 | CDP_ROOT_DIR := dp |
| 1028 | CDP_INC_DIR := $(CDP_ROOT_DIR)/inc |
| 1029 | CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR) |
| 1030 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1031 | ############ PKTLOG ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 1032 | PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1033 | PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include |
| 1034 | |
| 1035 | PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \ |
| 1036 | $(PKTLOG_DIR)/pktlog_internal.o \ |
| 1037 | $(PKTLOG_DIR)/linux_ac.o |
| 1038 | |
| 1039 | ############ HTT ############ |
| 1040 | HTT_DIR := core/dp/htt |
| 1041 | HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR) |
| 1042 | |
| 1043 | HTT_OBJS := $(HTT_DIR)/htt_tx.o \ |
| 1044 | $(HTT_DIR)/htt.o \ |
| 1045 | $(HTT_DIR)/htt_t2h.o \ |
| 1046 | $(HTT_DIR)/htt_h2t.o \ |
| 1047 | $(HTT_DIR)/htt_fw_stats.o \ |
| 1048 | $(HTT_DIR)/htt_rx.o |
| 1049 | |
Nirav Shah | 73713f7 | 2018-05-17 14:50:41 +0530 | [diff] [blame] | 1050 | ifeq ($(CONFIG_FEATURE_MONITOR_MODE_SUPPORT), y) |
| 1051 | HTT_OBJS += $(HTT_DIR)/htt_monitor_rx.o |
| 1052 | endif |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1053 | |
| 1054 | ############## INIT-DEINIT ########### |
| 1055 | INIT_DEINIT_DIR := init_deinit/dispatcher |
| 1056 | INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc |
| 1057 | INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src |
| 1058 | INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR) |
| 1059 | INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR) |
| 1060 | INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o |
| 1061 | |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 1062 | ############## REGULATORY ########### |
| 1063 | REGULATORY_DIR := umac/regulatory |
| 1064 | REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc |
| 1065 | REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src |
| 1066 | REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc |
| 1067 | REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src |
| 1068 | REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR) |
| 1069 | REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR) |
| 1070 | REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR) |
| 1071 | REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR) |
| 1072 | REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \ |
| 1073 | $(REG_CORE_OBJ_DIR)/reg_services.o \ |
Amar Singhal | eac6413 | 2017-05-05 13:02:37 -0700 | [diff] [blame] | 1074 | $(REG_CORE_OBJ_DIR)/reg_db_parser.o \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 1075 | $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \ |
| 1076 | $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \ |
| 1077 | $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o |
| 1078 | |
Rajeev Kumar | 1705fc2 | 2016-11-30 16:12:16 -0800 | [diff] [blame] | 1079 | ############## Control path common scheduler ########## |
Rajeev Kumar | ebb0a73 | 2016-12-24 19:05:44 -0800 | [diff] [blame] | 1080 | SCHEDULER_DIR := scheduler |
| 1081 | SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc |
| 1082 | SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src |
| 1083 | SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR) |
| 1084 | SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR) |
| 1085 | SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \ |
| 1086 | $(SCHEDULER_OBJ_DIR)/scheduler_core.o |
Rajeev Kumar | 1705fc2 | 2016-11-30 16:12:16 -0800 | [diff] [blame] | 1087 | |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1088 | ###### UMAC SERIALIZATION ######## |
| 1089 | UMAC_SER_DIR := umac/cmn_services/serialization |
| 1090 | UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc |
| 1091 | UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src |
| 1092 | UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR) |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1093 | |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1094 | UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR) |
| 1095 | UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_dequeue.o \ |
| 1096 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_enqueue.o \ |
| 1097 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \ |
| 1098 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \ |
| 1099 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \ |
Varun Reddy Yeturu | 35c07f9 | 2017-02-28 10:35:00 -0800 | [diff] [blame] | 1100 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \ |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1101 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1102 | |
| 1103 | ###### WIFI POS ######## |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1104 | WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src |
| 1105 | WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc |
| 1106 | WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src |
| 1107 | WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc |
| 1108 | WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src |
| 1109 | WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc |
| 1110 | |
| 1111 | |
| 1112 | ifeq ($(CONFIG_WIFI_POS_CONVERGED), y) |
| 1113 | WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \ |
| 1114 | $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \ |
| 1115 | $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \ |
| 1116 | $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \ |
| 1117 | $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \ |
| 1118 | $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o |
| 1119 | endif |
| 1120 | |
Naveen Rawat | 73e1ca9 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1121 | ###### CP STATS ######## |
Naveen Rawat | 96a77d3 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1122 | CP_STATS_OS_IF_SRC := $(WLAN_COMMON_ROOT)/os_if/linux/cp_stats/src |
| 1123 | CP_STATS_TGT_SRC := $(WLAN_COMMON_ROOT)/target_if/cp_stats/src |
| 1124 | CP_STATS_CORE_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/core/src |
| 1125 | CP_STATS_DISPATCHER_SRC := $(WLAN_COMMON_ROOT)/umac/cp_stats/dispatcher/src |
| 1126 | |
Naveen Rawat | 73e1ca9 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1127 | CP_STATS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/cp_stats/inc |
| 1128 | CP_STATS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/cp_stats/inc |
| 1129 | CP_STATS_DISPATCHER_INC := -I$(WLAN_COMMON_INC)/umac/cp_stats/dispatcher/inc |
| 1130 | |
Naveen Rawat | 96a77d3 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1131 | ifeq ($(CONFIG_CP_STATS), y) |
| 1132 | CP_STATS_OBJS := $(CP_STATS_TGT_SRC)/target_if_mc_cp_stats.o \ |
| 1133 | $(CP_STATS_CORE_SRC)/wlan_cp_stats_comp_handler.o \ |
| 1134 | $(CP_STATS_CORE_SRC)/wlan_cp_stats_obj_mgr_handler.o \ |
Naveen Rawat | 96a77d3 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1135 | $(CP_STATS_CORE_SRC)/wlan_cp_stats_ol_api.o \ |
| 1136 | $(CP_STATS_OS_IF_SRC)/wlan_cfg80211_mc_cp_stats.o \ |
| 1137 | $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_utils_api.o \ |
| 1138 | $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_tgt_api.o \ |
| 1139 | $(CP_STATS_DISPATCHER_SRC)/wlan_cp_stats_mc_ucfg_api.o |
| 1140 | endif |
| 1141 | |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 1142 | ######################### NAN ######################### |
| 1143 | NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src |
| 1144 | NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc |
| 1145 | NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src |
| 1146 | NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc |
| 1147 | NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src |
| 1148 | NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc |
| 1149 | NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src |
| 1150 | NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc |
| 1151 | |
| 1152 | ifeq ($(CONFIG_NAN_CONVERGENCE), y) |
| 1153 | WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \ |
| 1154 | $(NAN_CORE_DIR)/nan_api.o \ |
| 1155 | $(NAN_CORE_DIR)/nan_utils.o \ |
| 1156 | $(NAN_UCFG_DIR)/nan_ucfg_api.o \ |
| 1157 | $(NAN_TGT_DIR)/target_if_nan.o \ |
| 1158 | $(NAN_OS_IF_DIR)/os_if_nan.o |
| 1159 | endif |
| 1160 | ####################################################### |
| 1161 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1162 | ############## HTC ########## |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1163 | HTC_DIR := htc |
| 1164 | HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1165 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1166 | HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \ |
| 1167 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \ |
| 1168 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \ |
| 1169 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1170 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1171 | ifeq ($(CONFIG_FEATURE_HTC_CREDIT_HISTORY), y) |
Rachit Kankane | b103562 | 2018-01-24 18:41:35 +0530 | [diff] [blame] | 1172 | HTC_OBJS += $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_credit_history.o |
| 1173 | endif |
| 1174 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1175 | ########### HIF ########### |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1176 | HIF_DIR := hif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1177 | HIF_CE_DIR := $(HIF_DIR)/src/ce |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1178 | |
| 1179 | HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher |
| 1180 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1181 | HIF_PCIE_DIR := $(HIF_DIR)/src/pcie |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1182 | HIF_SNOC_DIR := $(HIF_DIR)/src/snoc |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1183 | HIF_USB_DIR := $(HIF_DIR)/src/usb |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1184 | HIF_SDIO_DIR := $(HIF_DIR)/src/sdio |
| 1185 | |
| 1186 | HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio |
| 1187 | HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include |
| 1188 | HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1189 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1190 | HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \ |
tfyu | 350d9f7 | 2017-08-10 15:13:06 +0800 | [diff] [blame] | 1191 | -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1192 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1193 | ifeq ($(CONFIG_HIF_PCI), y) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1194 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1195 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR) |
tfyu | 350d9f7 | 2017-08-10 15:13:06 +0800 | [diff] [blame] | 1196 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1197 | endif |
| 1198 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1199 | ifeq ($(CONFIG_HIF_SNOC), y) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1200 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1201 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR) |
tfyu | 350d9f7 | 2017-08-10 15:13:06 +0800 | [diff] [blame] | 1202 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1203 | endif |
| 1204 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1205 | ifeq ($(CONFIG_HIF_USB), y) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1206 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
| 1207 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR) |
| 1208 | endif |
| 1209 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1210 | ifeq ($(CONFIG_HIF_SDIO), y) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1211 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
| 1212 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR) |
| 1213 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR) |
| 1214 | endif |
| 1215 | |
| 1216 | HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \ |
| 1217 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \ |
Nirav Shah | eb017be | 2018-02-15 11:20:58 +0530 | [diff] [blame] | 1218 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o |
| 1219 | |
| 1220 | ifeq ($(CONFIG_WLAN_NAPI), y) |
| 1221 | HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o |
| 1222 | HIF_COMMON_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o |
| 1223 | endif |
| 1224 | |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 1225 | HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \ |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1226 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \ |
| 1227 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \ |
| 1228 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \ |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1229 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1230 | |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 1231 | ifeq ($(CONFIG_WLAN_FEATURE_BMI), y) |
| 1232 | HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o |
| 1233 | endif |
| 1234 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1235 | ifeq ($(CONFIG_LITHIUM), y) |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 1236 | ifeq ($(CONFIG_CNSS_QCA6290), y) |
| 1237 | HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o |
Houston Hoffman | a0f9349 | 2016-11-18 13:42:12 -0800 | [diff] [blame] | 1238 | endif |
| 1239 | |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 1240 | ifeq ($(CONFIG_CNSS_QCA6390), y) |
| 1241 | HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6390def.o |
| 1242 | endif |
| 1243 | |
| 1244 | HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o |
| 1245 | endif |
Houston Hoffman | b4d4567 | 2017-04-24 11:56:50 -0700 | [diff] [blame] | 1246 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1247 | HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \ |
| 1248 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \ |
| 1249 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \ |
| 1250 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o |
| 1251 | |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 1252 | 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] | 1253 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \ |
| 1254 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \ |
Sriram Madhvapathi | 82ec8e3 | 2018-06-07 10:20:15 +0530 | [diff] [blame] | 1255 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o \ |
| 1256 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/transfer.o |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 1257 | |
| 1258 | ifeq ($(CONFIG_WLAN_FEATURE_BMI), y) |
| 1259 | HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o |
| 1260 | endif |
| 1261 | |
Sriram Madhvapathi | 82ec8e3 | 2018-06-07 10:20:15 +0530 | [diff] [blame] | 1262 | ifeq ($(CONFIG_SDIO_TRANSFER), adma) |
| 1263 | HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/adma.o |
| 1264 | else |
| 1265 | HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/transfer/mailbox.o |
| 1266 | endif |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1267 | |
| 1268 | 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] | 1269 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o \ |
| 1270 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/dev_quirks.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1271 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1272 | ifeq ($(CONFIG_WLAN_NAPI), y) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1273 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1274 | endif |
| 1275 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1276 | ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), y) |
Dustin Brown | 0f8dc3d | 2017-06-01 14:37:26 -0700 | [diff] [blame] | 1277 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o |
| 1278 | endif |
| 1279 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1280 | HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1281 | HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1282 | HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1283 | |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1284 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o |
Houston Hoffman | b61b9b1 | 2016-03-03 20:04:16 -0800 | [diff] [blame] | 1285 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o |
Srinivas Girigowda | c7a1b0a | 2017-12-08 12:00:00 -0800 | [diff] [blame] | 1286 | HIF_OBJS += $(HIF_COMMON_OBJS) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1287 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1288 | ifeq ($(CONFIG_HIF_PCI), y) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1289 | HIF_OBJS += $(HIF_PCIE_OBJS) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1290 | HIF_OBJS += $(HIF_CE_OBJS) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1291 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o |
| 1292 | endif |
| 1293 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1294 | ifeq ($(CONFIG_HIF_SNOC), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1295 | HIF_OBJS += $(HIF_SNOC_OBJS) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1296 | HIF_OBJS += $(HIF_CE_OBJS) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1297 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1298 | endif |
| 1299 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1300 | ifeq ($(CONFIG_HIF_SDIO), y) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1301 | HIF_OBJS += $(HIF_SDIO_OBJS) |
| 1302 | HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1303 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o |
| 1304 | endif |
| 1305 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1306 | ifeq ($(CONFIG_HIF_USB), y) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1307 | HIF_OBJS += $(HIF_USB_OBJS) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1308 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o |
| 1309 | endif |
| 1310 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1311 | ifeq ($(CONFIG_LITHIUM), y) |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1312 | ############ HAL ############ |
| 1313 | HAL_DIR := hal |
| 1314 | HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \ |
| 1315 | -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0 |
| 1316 | |
| 1317 | HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \ |
| 1318 | $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \ |
Debashis Dutt | 237c614 | 2017-01-04 11:28:59 -0800 | [diff] [blame] | 1319 | $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \ |
| 1320 | $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o |
Venkata Sharath Chandra Manchala | 9220e32 | 2018-07-09 17:20:57 -0700 | [diff] [blame] | 1321 | |
| 1322 | ifeq ($(CONFIG_CNSS_QCA6290), y) |
| 1323 | HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6290 |
| 1324 | HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6290/hal_6290_srng.o |
| 1325 | else ifeq ($(CONFIG_CNSS_QCA6390), y) |
| 1326 | HAL_INC += -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0/qca6390 |
| 1327 | HAL_OBJS += $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/qca6390/hal_6390_srng.o |
| 1328 | else |
| 1329 | #error "Not 11ax" |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1330 | endif |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1331 | |
Venkata Sharath Chandra Manchala | 9220e32 | 2018-07-09 17:20:57 -0700 | [diff] [blame] | 1332 | endif #####CONFIG_LITHIUM#### |
| 1333 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1334 | ############ WMA ############ |
| 1335 | WMA_DIR := core/wma |
| 1336 | |
| 1337 | WMA_INC_DIR := $(WMA_DIR)/inc |
| 1338 | WMA_SRC_DIR := $(WMA_DIR)/src |
| 1339 | |
| 1340 | WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \ |
| 1341 | -I$(WLAN_ROOT)/$(WMA_SRC_DIR) |
| 1342 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 1343 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 1344 | WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o |
| 1345 | endif |
| 1346 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1347 | WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \ |
| 1348 | $(WMA_SRC_DIR)/wma_scan_roam.o \ |
| 1349 | $(WMA_SRC_DIR)/wma_dev_if.o \ |
| 1350 | $(WMA_SRC_DIR)/wma_mgmt.o \ |
| 1351 | $(WMA_SRC_DIR)/wma_power.o \ |
| 1352 | $(WMA_SRC_DIR)/wma_data.o \ |
| 1353 | $(WMA_SRC_DIR)/wma_utils.o \ |
| 1354 | $(WMA_SRC_DIR)/wma_features.o \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 1355 | $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\ |
| 1356 | $(WMA_NDP_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1357 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1358 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
Jeff Johnson | b90ab57 | 2017-01-31 15:57:35 -0800 | [diff] [blame] | 1359 | WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1360 | endif |
Jeff Johnson | 6136fb9 | 2017-03-30 15:21:49 -0700 | [diff] [blame] | 1361 | ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y) |
| 1362 | WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o |
| 1363 | endif |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1364 | ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1365 | WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o |
| 1366 | endif |
Krishna Kumaar Natarajan | d0bbb3c | 2017-03-13 17:04:58 -0700 | [diff] [blame] | 1367 | ifeq ($(CONFIG_WLAN_FEATURE_11AX), y) |
| 1368 | WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o |
| 1369 | endif |
Varun Reddy Yeturu | d33033f | 2018-06-11 10:58:30 -0700 | [diff] [blame] | 1370 | ifeq ($(CONFIG_WLAN_FEATURE_TWT), y) |
| 1371 | WMA_OBJS += $(WMA_SRC_DIR)/wma_twt.o |
| 1372 | endif |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1373 | ############## PLD ########## |
| 1374 | PLD_DIR := core/pld |
| 1375 | PLD_INC_DIR := $(PLD_DIR)/inc |
| 1376 | PLD_SRC_DIR := $(PLD_DIR)/src |
| 1377 | |
| 1378 | PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \ |
| 1379 | -I$(WLAN_ROOT)/$(PLD_SRC_DIR) |
| 1380 | |
| 1381 | PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o |
| 1382 | |
Nirav Shah | 2f3281d | 2018-04-20 13:37:56 +0530 | [diff] [blame] | 1383 | ifeq ($(CONFIG_HIF_PCI), y) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1384 | PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o |
| 1385 | endif |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1386 | ifeq ($(CONFIG_ICNSS), y) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1387 | PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o |
| 1388 | endif |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1389 | ifeq ($(CONFIG_QCA_WIFI_SDIO), y) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1390 | PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o |
| 1391 | endif |
Ajit Pal Singh | 6c6e81c | 2018-06-13 15:26:37 +0530 | [diff] [blame] | 1392 | ifeq ($(CONFIG_HIF_USB), y) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1393 | PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o |
| 1394 | endif |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1395 | |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 1396 | ifeq ($(CONFIG_QCA6290_11AX), y) |
psimha | 699e12b | 2018-02-12 16:27:18 -0800 | [diff] [blame] | 1397 | TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/11ax/v2 \ |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 1398 | -I$(WLAN_ROOT)/../fw-api/fw |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 1399 | else ifeq ($(CONFIG_QCA6390_11AX), y) |
| 1400 | TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6390/v1 \ |
| 1401 | -I$(WLAN_ROOT)/../fw-api/fw |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 1402 | else |
Dhanashri Atre | f067b58 | 2017-04-14 16:56:24 -0700 | [diff] [blame] | 1403 | TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2 \ |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1404 | -I$(WLAN_ROOT)/../fw-api/fw |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 1405 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1406 | |
Dustin Brown | 0bec9a9 | 2017-08-17 15:44:34 -0700 | [diff] [blame] | 1407 | LINUX_INC := -Iinclude |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1408 | |
| 1409 | INCS := $(HDD_INC) \ |
| 1410 | $(EPPING_INC) \ |
| 1411 | $(LINUX_INC) \ |
| 1412 | $(MAC_INC) \ |
| 1413 | $(SAP_INC) \ |
| 1414 | $(SME_INC) \ |
| 1415 | $(SYS_INC) \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1416 | $(QDF_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1417 | $(CDS_INC) \ |
Dustin Brown | 84f46ea | 2018-02-15 11:57:36 -0800 | [diff] [blame] | 1418 | $(CFG_INC) \ |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 1419 | $(DFS_INC) \ |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 1420 | $(TARGET_IF_INC) \ |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 1421 | $(CLD_TARGET_IF_INC) \ |
Sandeep Puligilla | fdd201e | 2017-02-02 18:43:46 -0800 | [diff] [blame] | 1422 | $(OS_IF_INC) \ |
Ryan Hsu | c8b27a4 | 2018-01-02 13:57:56 -0800 | [diff] [blame] | 1423 | $(GLOBAL_LMAC_IF_INC) \ |
| 1424 | $(FTM_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1425 | |
| 1426 | INCS += $(WMA_INC) \ |
| 1427 | $(UAPI_INC) \ |
| 1428 | $(COMMON_INC) \ |
| 1429 | $(WMI_INC) \ |
| 1430 | $(FWLOG_INC) \ |
| 1431 | $(TXRX_INC) \ |
| 1432 | $(OL_INC) \ |
Dhanashri Atre | 12a0839 | 2016-02-17 13:10:34 -0800 | [diff] [blame] | 1433 | $(CDP_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1434 | $(PKTLOG_INC) \ |
| 1435 | $(HTT_INC) \ |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1436 | $(INIT_DEINIT_INC) \ |
Rajeev Kumar | ebb0a73 | 2016-12-24 19:05:44 -0800 | [diff] [blame] | 1437 | $(SCHEDULER_INC) \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 1438 | $(REGULATORY_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1439 | $(HTC_INC) \ |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1440 | $(DFS_INC) \ |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1441 | $(WCFG_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1442 | |
| 1443 | INCS += $(HIF_INC) \ |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1444 | $(BMI_INC) |
| 1445 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1446 | ifeq ($(CONFIG_LITHIUM), y) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1447 | INCS += $(HAL_INC) \ |
| 1448 | $(DP_INC) |
| 1449 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1450 | |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1451 | ################ WIFI POS ################ |
| 1452 | INCS += $(WIFI_POS_API_INC) |
| 1453 | INCS += $(WIFI_POS_TGT_INC) |
| 1454 | INCS += $(WIFI_POS_OS_IF_INC) |
Naveen Rawat | 73e1ca9 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1455 | ################ CP STATS ################ |
| 1456 | INCS += $(CP_STATS_OS_IF_INC) |
| 1457 | INCS += $(CP_STATS_TGT_INC) |
| 1458 | INCS += $(CP_STATS_DISPATCHER_INC) |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 1459 | ################ NAN POS ################ |
| 1460 | INCS += $(NAN_CORE_INC) |
| 1461 | INCS += $(NAN_UCFG_INC) |
| 1462 | INCS += $(NAN_TGT_INC) |
| 1463 | INCS += $(NAN_OS_IF_INC) |
| 1464 | ########################################## |
Selvaraj, Sridhar | 0672a12 | 2016-12-29 16:11:48 +0530 | [diff] [blame] | 1465 | INCS += $(UMAC_OBJMGR_INC) |
Himanshu Agarwal | 2fdf77a | 2016-12-29 11:41:00 +0530 | [diff] [blame] | 1466 | INCS += $(UMAC_MGMT_TXRX_INC) |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 1467 | INCS += $(PMO_INC) |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 1468 | INCS += $(UMAC_P2P_INC) |
Tushnim Bhattacharyya | 44939d4 | 2017-02-15 17:08:12 -0800 | [diff] [blame] | 1469 | INCS += $(UMAC_POLICY_MGR_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1470 | INCS += $(TARGET_INC) |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 1471 | INCS += $(UMAC_TDLS_INC) |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1472 | INCS += $(UMAC_SER_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1473 | INCS += $(NLINK_INC) \ |
| 1474 | $(PTT_INC) \ |
| 1475 | $(WLAN_LOGGING_INC) |
| 1476 | |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1477 | INCS += $(PLD_INC) |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 1478 | INCS += $(OCB_INC) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1479 | |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 1480 | INCS += $(IPA_INC) |
Sandeep Puligilla | c5609d5 | 2018-05-17 19:23:41 -0700 | [diff] [blame] | 1481 | INCS += $(MLME_INC) |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 1482 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1483 | ifeq ($(CONFIG_REMOVE_PKT_LOG), n) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1484 | INCS += $(PKTLOG_INC) |
| 1485 | endif |
| 1486 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1487 | ifeq ($(BUILD_DIAG_VERSION), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1488 | INCS += $(HOST_DIAG_LOG_INC) |
| 1489 | endif |
| 1490 | |
Nachiket Kukade | 98f562a | 2017-12-15 12:18:07 +0530 | [diff] [blame] | 1491 | INCS += $(DISA_INC) |
Rajeev Kumar Sirasanagandla | 4725ae4 | 2018-05-24 22:33:34 +0530 | [diff] [blame] | 1492 | INCS += $(ACTION_OUI_INC) |
Nachiket Kukade | 98f562a | 2017-12-15 12:18:07 +0530 | [diff] [blame] | 1493 | |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 1494 | INCS += $(UMAC_DISP_INC) |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 1495 | INCS += $(UMAC_SCAN_INC) |
Abhishek Singh | 8dfbd69 | 2017-02-21 11:11:10 +0530 | [diff] [blame] | 1496 | INCS += $(UMAC_TARGET_SCAN_INC) |
Himanshu Agarwal | b229a14 | 2017-12-21 10:16:45 +0530 | [diff] [blame] | 1497 | INCS += $(UMAC_GREEN_AP_INC) |
| 1498 | INCS += $(UMAC_TARGET_GREEN_AP_INC) |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 1499 | INCS += $(UMAC_COMMON_INC) |
Sandeep Puligilla | 342d2a6 | 2017-12-12 15:40:00 -0800 | [diff] [blame] | 1500 | INCS += $(UMAC_SPECTRAL_INC) |
| 1501 | INCS += $(UMAC_TARGET_SPECTRAL_INC) |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 1502 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1503 | OBJS := $(HDD_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1504 | $(MAC_OBJS) \ |
| 1505 | $(SAP_OBJS) \ |
| 1506 | $(SME_OBJS) \ |
| 1507 | $(SYS_OBJS) \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1508 | $(QDF_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1509 | $(CDS_OBJS) \ |
Dustin Brown | 84f46ea | 2018-02-15 11:57:36 -0800 | [diff] [blame] | 1510 | $(CFG_OBJS) \ |
Ryan Hsu | c8b27a4 | 2018-01-02 13:57:56 -0800 | [diff] [blame] | 1511 | $(FTM_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1512 | |
| 1513 | OBJS += $(WMA_OBJS) \ |
| 1514 | $(TXRX_OBJS) \ |
| 1515 | $(WMI_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1516 | $(HTC_OBJS) \ |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1517 | $(INIT_DEINIT_OBJS) \ |
Rajeev Kumar | ebb0a73 | 2016-12-24 19:05:44 -0800 | [diff] [blame] | 1518 | $(SCHEDULER_OBJS) \ |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 1519 | $(REGULATORY_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1520 | |
| 1521 | OBJS += $(HIF_OBJS) \ |
| 1522 | $(BMI_OBJS) \ |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 1523 | $(HTT_OBJS) \ |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 1524 | $(OS_IF_OBJ) \ |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 1525 | $(TARGET_IF_OBJ) \ |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 1526 | $(CLD_TARGET_IF_OBJ) \ |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 1527 | $(GLOBAL_LMAC_IF_OBJ) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1528 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1529 | ifeq ($(CONFIG_LITHIUM), y) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1530 | OBJS += $(HAL_OBJS) |
| 1531 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1532 | |
Wen Gong | 9976890 | 2018-04-25 12:07:49 +0800 | [diff] [blame] | 1533 | ifeq ($(CONFIG_FEATURE_FW_LOG_PARSING), y) |
| 1534 | OBJS += $(FWLOG_OBJS) |
| 1535 | endif |
| 1536 | |
Nirav Shah | 459bebf | 2018-01-17 16:59:14 +0530 | [diff] [blame] | 1537 | ifeq ($(CONFIG_FEATURE_EPPING), y) |
| 1538 | OBJS += $(EPPING_OBJS) |
| 1539 | endif |
| 1540 | |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 1541 | ifeq ($(CONFIG_WLAN_DFS_MASTER_ENABLE), y) |
| 1542 | OBJS += $(DFS_OBJS) |
| 1543 | endif |
Nirav Shah | 459bebf | 2018-01-17 16:59:14 +0530 | [diff] [blame] | 1544 | |
Selvaraj, Sridhar | 0672a12 | 2016-12-29 16:11:48 +0530 | [diff] [blame] | 1545 | OBJS += $(UMAC_OBJMGR_OBJS) |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1546 | OBJS += $(WIFI_POS_OBJS) |
Naveen Rawat | 96a77d3 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1547 | OBJS += $(CP_STATS_OBJS) |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 1548 | OBJS += $(WLAN_NAN_OBJS) |
Himanshu Agarwal | 2fdf77a | 2016-12-29 11:41:00 +0530 | [diff] [blame] | 1549 | OBJS += $(UMAC_MGMT_TXRX_OBJS) |
Kabilan Kannan | 6d7a411 | 2017-04-20 14:37:09 -0700 | [diff] [blame] | 1550 | OBJS += $(UMAC_TDLS_OBJS) |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 1551 | OBJS += $(PMO_OBJS) |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 1552 | OBJS += $(UMAC_P2P_OBJS) |
Tushnim Bhattacharyya | 44939d4 | 2017-02-15 17:08:12 -0800 | [diff] [blame] | 1553 | OBJS += $(UMAC_POLICY_MGR_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1554 | OBJS += $(WLAN_LOGGING_OBJS) |
| 1555 | OBJS += $(NLINK_OBJS) |
| 1556 | OBJS += $(PTT_OBJS) |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1557 | OBJS += $(UMAC_SER_OBJS) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1558 | OBJS += $(PLD_OBJS) |
Sandeep Puligilla | c5609d5 | 2018-05-17 19:23:41 -0700 | [diff] [blame] | 1559 | OBJS += $(MLME_OBJS) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1560 | |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 1561 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 1562 | OBJS += $(OCB_OBJS) |
| 1563 | endif |
| 1564 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1565 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame] | 1566 | OBJS += $(IPA_OBJS) |
| 1567 | endif |
| 1568 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1569 | ifeq ($(CONFIG_REMOVE_PKT_LOG), n) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1570 | OBJS += $(PKTLOG_OBJS) |
| 1571 | endif |
| 1572 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1573 | ifeq ($(BUILD_DIAG_VERSION), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1574 | OBJS += $(HOST_DIAG_LOG_OBJS) |
| 1575 | endif |
| 1576 | |
Nachiket Kukade | 98f562a | 2017-12-15 12:18:07 +0530 | [diff] [blame] | 1577 | ifeq ($(CONFIG_WLAN_FEATURE_DISA), y) |
| 1578 | OBJS += $(DISA_OBJS) |
| 1579 | endif |
| 1580 | |
Rajeev Kumar Sirasanagandla | 4725ae4 | 2018-05-24 22:33:34 +0530 | [diff] [blame] | 1581 | ifeq ($(CONFIG_WLAN_FEATURE_ACTION_OUI), y) |
| 1582 | OBJS += $(ACTION_OUI_OBJS) |
| 1583 | endif |
| 1584 | |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 1585 | OBJS += $(UMAC_DISP_OBJS) |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 1586 | OBJS += $(UMAC_SCAN_OBJS) |
Abhishek Singh | 8dfbd69 | 2017-02-21 11:11:10 +0530 | [diff] [blame] | 1587 | OBJS += $(UMAC_COMMON_OBJS) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1588 | OBJS += $(WCFG_OBJS) |
Sandeep Puligilla | 8e89d57 | 2018-04-02 18:07:45 -0700 | [diff] [blame] | 1589 | |
Sandeep Puligilla | 342d2a6 | 2017-12-12 15:40:00 -0800 | [diff] [blame] | 1590 | OBJS += $(UMAC_SPECTRAL_OBJS) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1591 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1592 | ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP), y) |
Himanshu Agarwal | b229a14 | 2017-12-21 10:16:45 +0530 | [diff] [blame] | 1593 | OBJS += $(UMAC_GREEN_AP_OBJS) |
| 1594 | endif |
| 1595 | |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1596 | ifeq ($(CONFIG_LITHIUM), y) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1597 | OBJS += $(DP_OBJS) |
| 1598 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1599 | |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 1600 | ccflags-y += $(INCS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1601 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1602 | cppflags-y += -DANI_OS_TYPE_ANDROID=6 \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1603 | -Wall\ |
| 1604 | -Werror\ |
Jeff Johnson | a63a9b6 | 2018-04-12 15:30:45 -0700 | [diff] [blame] | 1605 | -D__linux__ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1606 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1607 | cppflags-$(CONFIG_PTT_SOCK_SVC_ENABLE) += -DPTT_SOCK_SVC_ENABLE |
| 1608 | cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DFEATURE_WLAN_WAPI |
| 1609 | cppflags-$(CONFIG_FEATURE_WLAN_WAPI) += -DATH_SUPPORT_WAPI |
| 1610 | cppflags-$(CONFIG_AGEIE_ON_SCAN_RESULTS) += -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS |
| 1611 | cppflags-$(CONFIG_SOFTAP_CHANNEL_RANGE) += -DSOFTAP_CHANNEL_RANGE |
| 1612 | cppflags-$(CONFIG_FEATURE_WLAN_SCAN_PNO) += -DFEATURE_WLAN_SCAN_PNO |
| 1613 | cppflags-$(CONFIG_WLAN_FEATURE_PACKET_FILTERING) += -DWLAN_FEATURE_PACKET_FILTERING |
| 1614 | cppflags-$(CONFIG_WLAN_NS_OFFLOAD) += -DWLAN_NS_OFFLOAD |
| 1615 | cppflags-$(CONFIG_FEATURE_WLAN_RA_FILTERING) += -DFEATURE_WLAN_RA_FILTERING |
| 1616 | cppflags-$(CONFIG_FEATURE_WLAN_LPHB) += -DFEATURE_WLAN_LPHB |
| 1617 | cppflags-$(CONFIG_QCA_SUPPORT_TX_THROTTLE) += -DQCA_SUPPORT_TX_THROTTLE |
| 1618 | cppflags-$(CONFIG_WMI_INTERFACE_EVENT_LOGGING) += -DWMI_INTERFACE_EVENT_LOGGING |
| 1619 | cppflags-$(CONFIG_WLAN_FEATURE_LINK_LAYER_STATS) += -DWLAN_FEATURE_LINK_LAYER_STATS |
| 1620 | cppflags-$(CONFIG_FEATURE_WLAN_EXTSCAN) += -DFEATURE_WLAN_EXTSCAN |
| 1621 | cppflags-$(CONFIG_160MHZ_SUPPORT) += -DCONFIG_160MHZ_SUPPORT |
| 1622 | cppflags-$(CONFIG_MCL) += -DCONFIG_MCL |
| 1623 | cppflags-$(CONFIG_MCL_REGDB) += -DCONFIG_MCL_REGDB |
| 1624 | cppflags-$(CONFIG_LEGACY_CHAN_ENUM) += -DCONFIG_LEGACY_CHAN_ENUM |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1625 | cppflags-$(CONFIG_WLAN_PMO_ENABLE) += -DWLAN_PMO_ENABLE |
| 1626 | cppflags-$(CONFIG_CONVERGED_P2P_ENABLE) += -DCONVERGED_P2P_ENABLE |
| 1627 | cppflags-$(CONFIG_WLAN_POLICY_MGR_ENABLE) += -DWLAN_POLICY_MGR_ENABLE |
| 1628 | cppflags-$(CONFIG_SUPPORT_11AX) += -DSUPPORT_11AX |
| 1629 | cppflags-$(CONFIG_HDD_INIT_WITH_RTNL_LOCK) += -DCONFIG_HDD_INIT_WITH_RTNL_LOCK |
| 1630 | cppflags-$(CONFIG_CONVERGED_TDLS_ENABLE) += -DCONVERGED_TDLS_ENABLE |
| 1631 | cppflags-$(CONFIG_WLAN_CONV_SPECTRAL_ENABLE) += -DWLAN_CONV_SPECTRAL_ENABLE |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1632 | cppflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS |
Nirav Shah | 73713f7 | 2018-05-17 14:50:41 +0530 | [diff] [blame] | 1633 | cppflags-$(CONFIG_FEATURE_MONITOR_MODE_SUPPORT) += -DFEATURE_MONITOR_MODE_SUPPORT |
Varun Reddy Yeturu | d33033f | 2018-06-11 10:58:30 -0700 | [diff] [blame] | 1634 | cppflags-$(CONFIG_WLAN_FEATURE_TWT) += -DWLAN_SUPPORT_TWT |
Jeff Johnson | 8daf768 | 2018-04-11 07:42:56 -0700 | [diff] [blame] | 1635 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1636 | cppflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL |
| 1637 | cppflags-$(CONFIG_WIFI_POS_CONVERGED) += -DWIFI_POS_CONVERGED |
| 1638 | cppflags-$(CONFIG_WIFI_POS_LEGACY) += -DFEATURE_OEM_DATA_SUPPORT |
| 1639 | cppflags-$(CONFIG_FEATURE_HTC_CREDIT_HISTORY) += -DFEATURE_HTC_CREDIT_HISTORY |
| 1640 | cppflags-$(CONFIG_WLAN_FEATURE_P2P_DEBUG) += -DWLAN_FEATURE_P2P_DEBUG |
Rachit Kankane | 0dc3e85 | 2018-05-07 17:33:42 +0530 | [diff] [blame] | 1641 | cppflags-$(CONFIG_WLAN_WEXT_SUPPORT_ENABLE) += -DWLAN_WEXT_SUPPORT_ENABLE |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1642 | cppflags-$(CONFIG_WLAN_LOGGING_SOCK_SVC) += -DWLAN_LOGGING_SOCK_SVC_ENABLE |
Rachit Kankane | 0868f8f | 2018-06-22 18:52:03 +0530 | [diff] [blame] | 1643 | cppflags-$(CONFIG_WLAN_LOGGING_BUFFERS_DYNAMICALLY) += -DWLAN_LOGGING_BUFFERS_DYNAMICALLY |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1644 | cppflags-$(CONFIG_WLAN_FEATURE_FILS) += -DWLAN_FEATURE_FILS_SK |
Naveen Rawat | 96a77d3 | 2018-01-12 15:26:14 -0800 | [diff] [blame] | 1645 | cppflags-$(CONFIG_CP_STATS) += -DQCA_SUPPORT_CP_STATS |
Wen Gong | 3f00338 | 2018-05-14 14:26:37 +0800 | [diff] [blame] | 1646 | cppflags-$(CONFIG_FEATURE_MEMDUMP_ENABLE) += -DWLAN_FEATURE_MEMDUMP_ENABLE |
Wen Gong | 9976890 | 2018-04-25 12:07:49 +0800 | [diff] [blame] | 1647 | cppflags-$(CONFIG_FEATURE_FW_LOG_PARSING) += -DFEATURE_FW_LOG_PARSING |
Sridhar Selvaraj | 8c6f5e8 | 2017-08-21 14:53:46 +0530 | [diff] [blame] | 1648 | |
Nirav Shah | 1575dd7 | 2018-06-24 13:46:39 +0530 | [diff] [blame] | 1649 | cppflags-$(CONFIG_PLD_SDIO_CNSS_FLAG) += -DCONFIG_PLD_SDIO_CNSS |
| 1650 | cppflags-$(CONFIG_PLD_PCIE_CNSS_FLAG) += -DCONFIG_PLD_PCIE_CNSS |
| 1651 | cppflags-$(CONFIG_PLD_PCIE_INIT_FLAG) += -DCONFIG_PLD_PCIE_INIT |
Yue Ma | e6a7a32 | 2016-08-31 11:09:23 -0700 | [diff] [blame] | 1652 | |
Lin Bai | 59b7976 | 2017-09-01 16:18:55 +0800 | [diff] [blame] | 1653 | #Enable NL80211 test mode |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1654 | cppflags-$(CONFIG_NL80211_TESTMODE) += -DWLAN_NL80211_TESTMODE |
Lin Bai | 59b7976 | 2017-09-01 16:18:55 +0800 | [diff] [blame] | 1655 | |
Yue Ma | 2b09131 | 2017-02-15 15:56:47 -0800 | [diff] [blame] | 1656 | # Flag to enable bus auto suspend |
Jeff Johnson | fe6f0b0 | 2018-04-11 09:27:04 -0700 | [diff] [blame] | 1657 | ifeq ($(CONFIG_HIF_PCI), y) |
Yue Ma | 2b09131 | 2017-02-15 15:56:47 -0800 | [diff] [blame] | 1658 | ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1659 | cppflags-y += -DFEATURE_RUNTIME_PM |
Yue Ma | 2b09131 | 2017-02-15 15:56:47 -0800 | [diff] [blame] | 1660 | endif |
| 1661 | endif |
| 1662 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1663 | cppflags-$(CONFIG_ICNSS) += -DCONFIG_PLD_SNOC_ICNSS |
Yuanyuan Liu | 11f526a | 2016-05-18 10:22:07 -0700 | [diff] [blame] | 1664 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1665 | cppflags-$(CONFIG_ICNSS) += -DQCA_WIFI_3_0 |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1666 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1667 | cppflags-$(CONFIG_WIFI_3_0_ADRASTEA) += -DQCA_WIFI_3_0_ADRASTEA |
| 1668 | cppflags-$(CONFIG_ADRASTEA_SHADOW_REGISTERS) += -DADRASTEA_SHADOW_REGISTERS |
| 1669 | cppflags-$(CONFIG_ADRASTEA_RRI_ON_DDR) += -DADRASTEA_RRI_ON_DDR |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1670 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1671 | ifeq ($(CONFIG_QMI_SUPPORT), n) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1672 | cppflags-y += -DCONFIG_BYPASS_QMI |
Yuanyuan Liu | f45ab3d | 2017-12-14 11:00:09 -0800 | [diff] [blame] | 1673 | endif |
| 1674 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1675 | cppflags-$(CONFIG_WLAN_FASTPATH) += -DWLAN_FEATURE_FASTPATH |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1676 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1677 | cppflags-$(CONFIG_FEATURE_PKTLOG) += -DFEATURE_PKTLOG |
Poddar, Siddarth | eefe348 | 2016-09-21 18:12:59 +0530 | [diff] [blame] | 1678 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1679 | ifeq ($(CONFIG_WLAN_NAPI), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1680 | cppflags-y += -DFEATURE_NAPI |
| 1681 | cppflags-y += -DHIF_IRQ_AFFINITY |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1682 | ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1683 | cppflags-y += -DFEATURE_NAPI_DEBUG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1684 | endif |
| 1685 | endif |
| 1686 | |
Yue Ma | df224b8 | 2016-04-21 12:46:04 -0700 | [diff] [blame] | 1687 | ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM))) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1688 | cppflags-y += -DMSM_PLATFORM |
Yuanyuan Liu | 5af4436 | 2016-04-01 21:57:06 -0700 | [diff] [blame] | 1689 | endif |
| 1690 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1691 | cppflags-y += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1692 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1693 | cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_CONTROL_V2 |
| 1694 | cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL |
| 1695 | 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] | 1696 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1697 | ifeq ($(BUILD_DEBUG_VERSION), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1698 | cppflags-y += -DWLAN_DEBUG |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1699 | ifeq ($(CONFIG_TRACE_RECORD_FEATURE), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1700 | cppflags-y += -DTRACE_RECORD \ |
Rachit Kankane | 0baf6e7 | 2018-01-19 15:01:50 +0530 | [diff] [blame] | 1701 | -DLIM_TRACE_RECORD \ |
| 1702 | -DSME_TRACE_RECORD \ |
| 1703 | -DHDD_TRACE_RECORD |
| 1704 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1705 | endif |
Dustin Brown | 0ea8d3b | 2018-07-06 13:58:49 -0700 | [diff] [blame] | 1706 | cppflags-$(CONFIG_UNIT_TEST) += -DWLAN_UNIT_TEST |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1707 | cppflags-$(CONFIG_WLAN_DEBUG_CRASH_INJECT) += -DCONFIG_WLAN_DEBUG_CRASH_INJECT |
| 1708 | cppflags-$(CONFIG_FEATURE_UNIT_TEST_SUSPEND) += -DWLAN_SUSPEND_RESUME_TEST |
Dustin Brown | 0f8dc3d | 2017-06-01 14:37:26 -0700 | [diff] [blame] | 1709 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1710 | ifeq ($(CONFIG_LEAK_DETECTION), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1711 | cppflags-y += \ |
Dustin Brown | 63ef318 | 2018-04-02 10:57:18 -0700 | [diff] [blame] | 1712 | -DCONFIG_HALT_KMEMLEAK \ |
| 1713 | -DCONFIG_LEAK_DETECTION \ |
| 1714 | -DMEMORY_DEBUG \ |
| 1715 | -DNBUF_MEMORY_DEBUG \ |
Dustin Brown | f39413a | 2018-07-05 14:01:23 -0700 | [diff] [blame] | 1716 | -DNBUF_MAP_UNMAP_DEBUG \ |
Dustin Brown | 63ef318 | 2018-04-02 10:57:18 -0700 | [diff] [blame] | 1717 | -DTIMER_MANAGER |
Dustin Brown | 21a761d | 2017-11-15 16:37:00 -0800 | [diff] [blame] | 1718 | endif |
| 1719 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1720 | cppflags-y += -DWLAN_FEATURE_P2P |
| 1721 | cppflags-y += -DWLAN_FEATURE_WFD |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1722 | ifeq ($(CONFIG_QCOM_VOWIFI_11R), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1723 | cppflags-y += -DKERNEL_SUPPORT_11R_CFG80211 |
| 1724 | cppflags-y += -DUSE_80211_WMMTSPEC_FOR_RIC |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1725 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1726 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1727 | ifeq ($(CONFIG_QCOM_ESE), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1728 | cppflags-y += -DFEATURE_WLAN_ESE |
| 1729 | cppflags-y += -DQCA_COMPUTE_TX_DELAY |
| 1730 | cppflags-y += -DQCA_COMPUTE_TX_DELAY_PER_TID |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1731 | endif |
| 1732 | |
| 1733 | #normally, TDLS negative behavior is not needed |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1734 | cppflags-$(CONFIG_QCOM_TDLS) += -DFEATURE_WLAN_TDLS |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1735 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1736 | cppflags-$(CONFIG_QCACLD_WLAN_LFR3) += -DWLAN_FEATURE_ROAM_OFFLOAD |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1737 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1738 | cppflags-$(CONFIG_CNSS_GENL) += -DCNSS_GENL |
Selvaraj, Sridhar | 046d77d | 2017-03-07 14:53:13 +0530 | [diff] [blame] | 1739 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1740 | cppflags-$(CONFIG_QCACLD_WLAN_LFR2) += -DWLAN_FEATURE_HOST_ROAM |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 1741 | |
Qiwei Cai | d96c021 | 2018-06-15 11:12:49 +0800 | [diff] [blame] | 1742 | cppflags-$(CONFIG_FEATURE_ROAM_DEBUG) += -DFEATURE_ROAM_DEBUG |
| 1743 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1744 | cppflags-$(CONFIG_WLAN_POWER_DEBUGFS) += -DWLAN_POWER_DEBUGFS |
Sridhar Selvaraj | dc400d2 | 2016-10-18 17:18:03 +0530 | [diff] [blame] | 1745 | |
Rajeev Kumar | 69d7d49 | 2017-02-13 21:48:16 -0800 | [diff] [blame] | 1746 | # Enable object manager reference count debug infrastructure |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1747 | cppflags-$(CONFIG_WLAN_OBJMGR_DEBUG) += -DWLAN_OBJMGR_DEBUG |
Rajeev Kumar | 69d7d49 | 2017-02-13 21:48:16 -0800 | [diff] [blame] | 1748 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1749 | cppflags-$(CONFIG_WLAN_FEATURE_SAE) += -DWLAN_FEATURE_SAE |
Padma, Santhosh Kumar | 07eb80b | 2017-07-05 16:10:06 +0530 | [diff] [blame] | 1750 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1751 | ifeq ($(BUILD_DIAG_VERSION), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1752 | cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT |
| 1753 | cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_CSR |
| 1754 | cppflags-y += -DFEATURE_WLAN_DIAG_SUPPORT_LIM |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1755 | ifeq ($(CONFIG_HIF_PCI), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1756 | cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1757 | endif |
| 1758 | endif |
| 1759 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1760 | ifeq ($(CONFIG_HIF_USB), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1761 | cppflags-y += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
| 1762 | cppflags-y += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT |
| 1763 | 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] | 1764 | endif |
| 1765 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1766 | cppflags-$(CONFIG_WLAN_FEATURE_11W) += -DWLAN_FEATURE_11W |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1767 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1768 | cppflags-$(CONFIG_QCA_TXDESC_SANITY_CHECKS) += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS |
gbian | e55c956 | 2016-11-01 14:47:47 +0800 | [diff] [blame] | 1769 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1770 | cppflags-$(CONFIG_QCOM_LTE_COEX) += -DFEATURE_WLAN_CH_AVOID |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1771 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1772 | cppflags-$(CONFIG_WLAN_FEATURE_LPSS) += -DWLAN_FEATURE_LPSS |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1773 | |
Nirav Shah | a72db1d | 2018-06-06 17:11:07 +0530 | [diff] [blame] | 1774 | cppflags-$(CONFIG_DESC_DUP_DETECT_DEBUG) += -DDESC_DUP_DETECT_DEBUG |
| 1775 | cppflags-$(CONFIG_DEBUG_RX_RING_BUFFER) += -DDEBUG_RX_RING_BUFFER |
Nirav Shah | 7629196 | 2016-04-25 10:50:37 +0530 | [diff] [blame] | 1776 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1777 | cppflags-$(PANIC_ON_BUG) += -DPANIC_ON_BUG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1778 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1779 | cppflags-$(WLAN_WARN_ON_ASSERT) += -DWLAN_WARN_ON_ASSERT |
Dustin Brown | 0634ba3 | 2018-03-22 13:00:44 -0700 | [diff] [blame] | 1780 | |
Rajeev Kumar | 6bdee8e | 2018-04-18 17:36:05 -0700 | [diff] [blame] | 1781 | ccflags-$(CONFIG_POWER_MANAGEMENT_OFFLOAD) += -DWLAN_POWER_MANAGEMENT_OFFLOAD |
| 1782 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1783 | cppflags-$(CONFIG_WLAN_LOG_FATAL) += -DWLAN_LOG_FATAL |
| 1784 | cppflags-$(CONFIG_WLAN_LOG_ERROR) += -DWLAN_LOG_ERROR |
| 1785 | cppflags-$(CONFIG_WLAN_LOG_WARN) += -DWLAN_LOG_WARN |
| 1786 | cppflags-$(CONFIG_WLAN_LOG_INFO) += -DWLAN_LOG_INFO |
| 1787 | cppflags-$(CONFIG_WLAN_LOG_DEBUG) += -DWLAN_LOG_DEBUG |
Dustin Brown | 92def29 | 2018-03-14 15:02:14 -0700 | [diff] [blame] | 1788 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1789 | cppflags-$(WLAN_OPEN_SOURCE) += -DWLAN_OPEN_SOURCE |
Dustin Brown | 92def29 | 2018-03-14 15:02:14 -0700 | [diff] [blame] | 1790 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1791 | cppflags-$(CONFIG_FEATURE_STATS_EXT) += -DWLAN_FEATURE_STATS_EXT |
Dustin Brown | 92def29 | 2018-03-14 15:02:14 -0700 | [diff] [blame] | 1792 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1793 | cppflags-$(CONFIG_QCACLD_FEATURE_NAN) += -DWLAN_FEATURE_NAN |
Dustin Brown | 92def29 | 2018-03-14 15:02:14 -0700 | [diff] [blame] | 1794 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1795 | cppflags-$(CONFIG_QCA_IBSS_SUPPORT) += -DQCA_IBSS_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1796 | |
| 1797 | #Enable OL debug and wmi unified functions |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1798 | cppflags-$(CONFIG_ATH_PERF_PWR_OFFLOAD) += -DATH_PERF_PWR_OFFLOAD |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1799 | |
| 1800 | #Disable packet log |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1801 | cppflags-$(CONFIG_REMOVE_PKT_LOG) += -DREMOVE_PKT_LOG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1802 | |
| 1803 | #Enable 11AC TX |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1804 | cppflags-$(CONFIG_ATH_11AC_TXCOMPACT) += -DATH_11AC_TXCOMPACT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1805 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1806 | #Enable PCI specific APIS (dma, etc) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1807 | cppflags-$(CONFIG_HIF_PCI) += -DHIF_PCI |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1808 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1809 | cppflags-$(CONFIG_HIF_SNOC) += -DHIF_SNOC |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1810 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1811 | #Enable High Latency related Flags |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1812 | ifeq ($(CONFIG_QCA_WIFI_SDIO), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1813 | cppflags-y += -DCONFIG_HL_SUPPORT \ |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1814 | -DCONFIG_AR6320_SUPPORT \ |
| 1815 | -DSDIO_3_0 \ |
| 1816 | -DHIF_SDIO \ |
| 1817 | -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \ |
| 1818 | -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \ |
| 1819 | -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \ |
| 1820 | -DHIF_MBOX_SLEEP_WAR \ |
| 1821 | -DDEBUG_HL_LOGGING \ |
| 1822 | -DQCA_BAD_PEER_TX_FLOW_CL \ |
| 1823 | -DCONFIG_TX_DESC_HI_PRIO_RESERVE \ |
| 1824 | -DCONFIG_PER_VDEV_TX_DESC_POOL \ |
| 1825 | -DCONFIG_SDIO \ |
| 1826 | -DFEATURE_WLAN_FORCE_SAP_SCC |
Sriram Madhvapathi | 82ec8e3 | 2018-06-07 10:20:15 +0530 | [diff] [blame] | 1827 | |
| 1828 | ifeq ($(CONFIG_SDIO_TRANSFER), adma) |
| 1829 | cppflags-y += -DCONFIG_SDIO_TRANSFER_ADMA |
| 1830 | else |
| 1831 | cppflags-y += -DCONFIG_SDIO_TRANSFER_MAILBOX |
| 1832 | endif |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1833 | endif |
| 1834 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1835 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1836 | cppflags-y += -DWLAN_FEATURE_DSRC |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 1837 | |
| 1838 | ifeq ($(CONFIG_OCB_UT_FRAMEWORK), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1839 | cppflags-y += -DWLAN_OCB_UT |
Zhang Qian | 47e22ce | 2018-01-04 15:38:38 +0800 | [diff] [blame] | 1840 | endif |
| 1841 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1842 | endif |
| 1843 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1844 | cppflags-$(CONFIG_FEATURE_SKB_PRE_ALLOC) += -DFEATURE_SKB_PRE_ALLOC |
bings | 7762da1 | 2017-03-06 07:21:04 +0800 | [diff] [blame] | 1845 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1846 | #Enable USB specific APIS |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1847 | ifeq ($(CONFIG_HIF_USB), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1848 | cppflags-y += -DHIF_USB \ |
Nirav Shah | eb017be | 2018-02-15 11:20:58 +0530 | [diff] [blame] | 1849 | -DDEBUG_HL_LOGGING \ |
Mohit Khanna | e7a4357 | 2016-10-10 17:34:21 -0700 | [diff] [blame] | 1850 | -DCONFIG_HL_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1851 | endif |
| 1852 | |
Ajit Pal Singh | 0bd748a | 2018-06-19 11:48:02 +0530 | [diff] [blame] | 1853 | #Enable Genoa specific features. |
| 1854 | cppflags-$(CONFIG_QCA_HL_NETDEV_FLOW_CONTROL) += -DQCA_HL_NETDEV_FLOW_CONTROL |
| 1855 | cppflags-$(CONFIG_FEATURE_HL_GROUP_CREDIT_FLOW_CONTROL) += -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL |
| 1856 | cppflags-$(CONFIG_FEATURE_HL_DBS_GROUP_CREDIT_SHARING) += -DFEATURE_HL_DBS_GROUP_CREDIT_SHARING |
| 1857 | cppflags-$(CONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE) += -DCONFIG_CREDIT_REP_THROUGH_CREDIT_UPDATE |
| 1858 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1859 | #Enable FW logs through ini |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1860 | cppflags-y += -DCONFIG_FW_LOGS_BASED_ON_INI |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1861 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1862 | #Enable power management suspend/resume functionality |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1863 | cppflags-$(CONFIG_ATH_BUS_PM) += -DATH_BUS_PM |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1864 | |
| 1865 | #Enable FLOWMAC module support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1866 | cppflags-$(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE) += -DATH_SUPPORT_FLOWMAC_MODULE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1867 | |
| 1868 | #Enable spectral support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1869 | cppflags-$(CONFIG_ATH_SUPPORT_SPECTRAL) += -DATH_SUPPORT_SPECTRAL |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1870 | |
| 1871 | #Enable WDI Event support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1872 | cppflags-$(CONFIG_WDI_EVENT_ENABLE) += -DWDI_EVENT_ENABLE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1873 | |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 1874 | #Endianness selection |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1875 | ifeq ($(CONFIG_LITTLE_ENDIAN), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1876 | cppflags-y += -DANI_LITTLE_BYTE_ENDIAN |
| 1877 | cppflags-y += -DANI_LITTLE_BIT_ENDIAN |
| 1878 | cppflags-y += -DDOT11F_LITTLE_ENDIAN_HOST |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1879 | else |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1880 | cppflags-y += -DANI_BIG_BYTE_ENDIAN |
| 1881 | cppflags-y += -DBIG_ENDIAN_HOST |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1882 | endif |
| 1883 | |
| 1884 | #Enable TX reclaim support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1885 | cppflags-$(CONFIG_TX_CREDIT_RECLAIM_SUPPORT) += -DTX_CREDIT_RECLAIM_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1886 | |
| 1887 | #Enable FTM support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1888 | cppflags-$(CONFIG_QCA_WIFI_FTM) += -DQCA_WIFI_FTM |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1889 | |
| 1890 | #Enable Checksum Offload support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1891 | cppflags-$(CONFIG_CHECKSUM_OFFLOAD) += -DCHECKSUM_OFFLOAD |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1892 | |
| 1893 | #Enable Checksum Offload support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1894 | cppflags-$(CONFIG_IPA_OFFLOAD) += -DIPA_OFFLOAD |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1895 | |
anisha agarwal | 188d254 | 2017-03-21 13:15:58 -0700 | [diff] [blame] | 1896 | ifeq ($(CONFIG_ARCH_SDX20), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1897 | cppflags-y += -DSYNC_IPA_READY |
bings | 7762da1 | 2017-03-06 07:21:04 +0800 | [diff] [blame] | 1898 | endif |
| 1899 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1900 | #Enable GTK Offload |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1901 | cppflags-$(CONFIG_GTK_OFFLOAD) += -DWLAN_FEATURE_GTK_OFFLOAD |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1902 | |
Jeff Johnson | b8b3976 | 2018-04-06 20:08:10 -0700 | [diff] [blame] | 1903 | #Enable External WoW |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1904 | cppflags-$(CONFIG_EXT_WOW) += -DWLAN_FEATURE_EXTWOW_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1905 | |
| 1906 | #Mark it as SMP Kernel |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1907 | cppflags-$(CONFIG_SMP) += -DQCA_CONFIG_SMP |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1908 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1909 | cppflags-$(CONFIG_CHNL_MATRIX_RESTRICTION) += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1910 | |
Zhu Jianmin | 04392c4 | 2017-05-12 16:34:53 +0800 | [diff] [blame] | 1911 | #Enable ICMP packet disable powersave feature |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1912 | cppflags-$(CONFIG_ICMP_DISABLE_PS) += -DWLAN_ICMP_DISABLE_PS |
Zhu Jianmin | 04392c4 | 2017-05-12 16:34:53 +0800 | [diff] [blame] | 1913 | |
Sandeep Puligilla | 0e64b61 | 2016-08-26 13:20:58 -0700 | [diff] [blame] | 1914 | #Enable OBSS feature |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1915 | cppflags-y += -DQCA_HT_2040_COEX |
Sandeep Puligilla | 0e64b61 | 2016-08-26 13:20:58 -0700 | [diff] [blame] | 1916 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1917 | #enable MCC TO SCC switch |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1918 | 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] | 1919 | |
| 1920 | #enable wlan auto shutdown feature |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1921 | cppflags-$(CONFIG_FEATURE_WLAN_AUTO_SHUTDOWN) += -DFEATURE_WLAN_AUTO_SHUTDOWN |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1922 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1923 | #enable AP-AP ACS Optimization |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1924 | 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] | 1925 | |
| 1926 | #Enable 4address scheme |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1927 | cppflags-$(CONFIG_FEATURE_WLAN_STA_4ADDR_SCHEME) += -DFEATURE_WLAN_STA_4ADDR_SCHEME |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1928 | |
Zhu Jianmin | 35fcd0d | 2017-08-30 10:47:31 +0800 | [diff] [blame] | 1929 | #enable MDM/SDX special config |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1930 | cppflags-$(CONFIG_MDM_PLATFORM) += -DMDM_PLATFORM |
Zhu Jianmin | 35fcd0d | 2017-08-30 10:47:31 +0800 | [diff] [blame] | 1931 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1932 | #Disable STA-AP Mode DFS support |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1933 | 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] | 1934 | |
| 1935 | #Open P2P device interface only for non-Mobile router use cases |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1936 | cppflags-$(CONFIG_WLAN_OPEN_P2P_INTERFACE) += -DWLAN_OPEN_P2P_INTERFACE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1937 | |
| 1938 | #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] | 1939 | 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] | 1940 | |
| 1941 | #Green AP feature |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1942 | cppflags-$(CONFIG_QCACLD_FEATURE_GREEN_AP) += -DWLAN_SUPPORT_GREEN_AP |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1943 | |
Nachiket Kukade | d0dd62e | 2018-05-21 18:39:22 +0530 | [diff] [blame] | 1944 | ifeq ($(CONFIG_QCACLD_FEATURE_APF), y) |
| 1945 | cppflags-$(CONFIG_QCACLD_FEATURE_APF) += -DFEATURE_WLAN_APF |
| 1946 | endif |
| 1947 | |
Yun Park | 637d648 | 2016-10-05 10:51:33 -0700 | [diff] [blame] | 1948 | #Stats & Quota Metering feature |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 1949 | ifeq ($(CONFIG_IPA_OFFLOAD), y) |
| 1950 | ifeq ($(CONFIG_QCACLD_FEATURE_METERING), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1951 | cppflags-y += -DFEATURE_METERING |
Yun Park | 637d648 | 2016-10-05 10:51:33 -0700 | [diff] [blame] | 1952 | endif |
Yun Park | b4f591d | 2017-03-29 15:51:01 -0700 | [diff] [blame] | 1953 | endif |
Yun Park | 637d648 | 2016-10-05 10:51:33 -0700 | [diff] [blame] | 1954 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1955 | cppflags-$(CONFIG_TUFELLO_DUAL_FW_SUPPORT) += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT |
| 1956 | cppflags-$(CONFIG_CHANNEL_HOPPING_ALL_BANDS) += -DCHANNEL_HOPPING_ALL_BANDS |
gaolez | 76d2a16 | 2017-03-21 19:23:58 +0800 | [diff] [blame] | 1957 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1958 | #Enable Signed firmware support for split binary format |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1959 | cppflags-$(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT) += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1960 | |
| 1961 | #Enable single firmware binary format |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1962 | cppflags-$(CONFIG_QCA_SINGLE_BINARY_SUPPORT) += -DQCA_SINGLE_BINARY_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1963 | |
| 1964 | #Enable collecting target RAM dump after kernel panic |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1965 | cppflags-$(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC) += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1966 | |
| 1967 | #Enable/disable secure firmware feature |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1968 | cppflags-$(CONFIG_FEATURE_SECURE_FIRMWARE) += -DFEATURE_SECURE_FIRMWARE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1969 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1970 | cppflags-$(CONFIG_ATH_PCIE_ACCESS_DEBUG) += -DCONFIG_ATH_PCIE_ACCESS_DEBUG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1971 | |
Jeff Johnson | 69ba6d0 | 2018-04-12 16:05:32 -0700 | [diff] [blame] | 1972 | # Enable feature support for Linux version QCMBR |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1973 | cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1974 | |
Manikandan Mohan | dcc21ba | 2016-03-15 14:31:56 -0700 | [diff] [blame] | 1975 | # Enable featue sync tsf between multi devices |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1976 | cppflags-$(CONFIG_WLAN_SYNC_TSF) += -DWLAN_FEATURE_TSF |
| 1977 | cppflags-$(CONFIG_WLAN_SYNC_TSF_PLUS) += -DWLAN_FEATURE_TSF_PLUS |
Yu Wang | 000dc2f | 2017-05-26 17:38:48 +0800 | [diff] [blame] | 1978 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1979 | cppflags-$(CONFIG_ATH_PROCFS_DIAG_SUPPORT) += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
Nirav Shah | e8ac340 | 2017-12-31 15:36:32 +0530 | [diff] [blame] | 1980 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1981 | cppflags-$(CONFIG_HELIUMPLUS) += -DHELIUMPLUS |
Manjunathappa Prakash | 7b0ad46 | 2018-04-15 00:37:16 -0700 | [diff] [blame] | 1982 | cppflags-$(CONFIG_RX_OL) += -DRECEIVE_OFFLOAD |
chenguo | 0f3636b | 2018-05-10 14:24:49 +0800 | [diff] [blame] | 1983 | cppflags-$(CONFIG_TX_TID_OVERRIDE) += -DATH_TX_PRI_OVERRIDE |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1984 | cppflags-$(CONFIG_AR900B) += -DAR900B |
| 1985 | cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64 |
| 1986 | cppflags-$(CONFIG_OL_RX_INDICATION_RECORD) += -DOL_RX_INDICATION_RECORD |
| 1987 | cppflags-$(CONFIG_TSOSEG_DEBUG) += -DTSOSEG_DEBUG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1988 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1989 | cppflags-$(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING) += -DENABLE_DEBUG_ADDRESS_MARKING |
| 1990 | cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO |
| 1991 | cppflags-$(CONFIG_FEATURE_TSO_DEBUG) += -DFEATURE_TSO_DEBUG |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1992 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1993 | cppflags-$(CONFIG_WLAN_LRO) += -DFEATURE_LRO |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1994 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1995 | cppflags-$(CONFIG_FEATURE_AP_MCC_CH_AVOIDANCE) += -DFEATURE_AP_MCC_CH_AVOIDANCE |
Tushnim Bhattacharyya | a2c18de | 2018-03-27 15:00:00 -0700 | [diff] [blame] | 1996 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1997 | cppflags-$(CONFIG_MPC_UT_FRAMEWORK) += -DMPC_UT_FRAMEWORK |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1998 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 1999 | cppflags-$(CONFIG_FEATURE_EPPING) += -DWLAN_FEATURE_EPPING |
Nirav Shah | 459bebf | 2018-01-17 16:59:14 +0530 | [diff] [blame] | 2000 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2001 | cppflags-$(CONFIG_WLAN_OFFLOAD_PACKETS) += -DWLAN_FEATURE_OFFLOAD_PACKETS |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2002 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2003 | cppflags-$(CONFIG_WLAN_FEATURE_DISA) += -DWLAN_FEATURE_DISA |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 2004 | |
Rajeev Kumar Sirasanagandla | 4725ae4 | 2018-05-24 22:33:34 +0530 | [diff] [blame] | 2005 | cppflags-$(CONFIG_WLAN_FEATURE_ACTION_OUI) += -DWLAN_FEATURE_ACTION_OUI |
| 2006 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2007 | cppflags-$(CONFIG_WLAN_FEATURE_FIPS) += -DWLAN_FEATURE_FIPS |
Jeff Johnson | 7869aad | 2017-05-15 15:46:36 -0700 | [diff] [blame] | 2008 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2009 | cppflags-$(CONFIG_LFR_SUBNET_DETECTION) += -DFEATURE_LFR_SUBNET_DETECTION |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 2010 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2011 | cppflags-$(CONFIG_MCC_TO_SCC_SWITCH) += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH |
Chandrasekaran Manishekar | 068e25e | 2016-03-07 11:51:07 +0530 | [diff] [blame] | 2012 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2013 | cppflags-$(CONFIG_WLAN_FEATURE_NAN_DATAPATH) += -DWLAN_FEATURE_NAN_DATAPATH |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 2014 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2015 | cppflags-$(CONFIG_NAN_CONVERGENCE) += -DWLAN_FEATURE_NAN_CONVERGENCE |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 2016 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2017 | cppflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW |
Will Huang | 3cd2b7c | 2017-11-17 13:16:56 +0800 | [diff] [blame] | 2018 | |
Yue Ma | 91e1c00 | 2018-05-24 11:18:36 -0700 | [diff] [blame] | 2019 | cppflags-$(CONFIG_QCA_WIFI_NAPIER_EMULATION) += -DQCA_WIFI_NAPIER_EMULATION |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2020 | cppflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2 |
| 2021 | cppflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF |
| 2022 | cppflags-$(CONFIG_QCA_WIFI_QCA6290) += -DQCA_WIFI_QCA6290 |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 2023 | cppflags-$(CONFIG_QCA6390_HEADERS_DEF) += -DQCA6390_HEADERS_DEF |
| 2024 | cppflags-$(CONFIG_QCA_WIFI_QCA6390) += -DQCA_WIFI_QCA6390 |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2025 | cppflags-$(CONFIG_QCA_WIFI_QCA8074) += -DQCA_WIFI_QCA8074 |
| 2026 | cppflags-$(CONFIG_QCA_WIFI_QCA8074_VP) += -DQCA_WIFI_QCA8074_VP |
| 2027 | cppflags-$(CONFIG_DP_INTR_POLL_BASED) += -DDP_INTR_POLL_BASED |
| 2028 | cppflags-$(CONFIG_TX_PER_PDEV_DESC_POOL) += -DTX_PER_PDEV_DESC_POOL |
| 2029 | cppflags-$(CONFIG_DP_TRACE) += -DCONFIG_DP_TRACE |
| 2030 | cppflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO |
| 2031 | cppflags-$(CONFIG_TSO_DEBUG_LOG_ENABLE) += -DTSO_DEBUG_LOG_ENABLE |
| 2032 | cppflags-$(CONFIG_DP_LFR) += -DDP_LFR |
| 2033 | cppflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64 |
Qiwei Cai | a01a962 | 2018-07-11 10:02:03 +0800 | [diff] [blame] | 2034 | cppflags-$(CONFIG_WLAN_FEATURE_BMI) += -DWLAN_FEATURE_BMI |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2035 | |
Nirav Shah | c8047a8 | 2018-06-22 16:39:01 +0530 | [diff] [blame] | 2036 | ccflags-$(CONFIG_QCA_LL_TX_FLOW_CONTROL_RESIZE) += -DQCA_LL_TX_FLOW_CONTROL_RESIZE |
| 2037 | |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 2038 | ifeq ($(CONFIG_QCA6290_11AX), y) |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2039 | cppflags-y += -DQCA_WIFI_QCA6290_11AX |
psimha | 0b6bb89 | 2017-10-10 14:28:34 -0700 | [diff] [blame] | 2040 | endif |
| 2041 | |
Venkata Sharath Chandra Manchala | 27a4296 | 2018-06-08 17:51:44 -0700 | [diff] [blame] | 2042 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2043 | cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX |
| 2044 | cppflags-$(CONFIG_WLAN_FEATURE_11AX) += -DWLAN_FEATURE_11AX_BSS_COLOR |
Krishna Kumaar Natarajan | 639c6ff | 2017-02-13 14:01:04 -0800 | [diff] [blame] | 2045 | |
Sravan Kumar Kairam | 7bca07e | 2018-07-05 18:32:22 +0530 | [diff] [blame] | 2046 | cppflags-$(CONFIG_LITHIUM) += -DFEATURE_AST |
| 2047 | |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2048 | # Dummy flag for WIN/MCL converged data path compilation |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2049 | cppflags-y += -DDP_PRINT_ENABLE=0 |
| 2050 | cppflags-y += -DATH_SUPPORT_WRAP=0 |
| 2051 | cppflags-y += -DQCA_HOST2FW_RXBUF_RING |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2052 | #endof dummy flags |
| 2053 | |
Jianmin Zhu | 91e834d | 2018-07-12 11:07:42 +0800 | [diff] [blame] | 2054 | # Enable lock of serialization component to avoid race condition issues |
| 2055 | cppflags-y += -DWLAN_CMD_SERIALIZATION_LOCKING |
| 2056 | |
Nirav Shah | 8ba94a5 | 2018-06-07 09:06:25 +0530 | [diff] [blame] | 2057 | ccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os |
| 2058 | |
Arif Hussain | 757b45f | 2017-02-11 16:47:06 -0800 | [diff] [blame] | 2059 | # DFS component |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 2060 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_MCL_DFS_SUPPORT |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 2061 | ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y) |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 2062 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_FULL_OFFLOAD |
Arif Hussain | 02c2b63 | 2018-03-08 23:09:21 -0800 | [diff] [blame] | 2063 | else |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 2064 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DWLAN_DFS_PARTIAL_OFFLOAD |
Arif Hussain | 02c2b63 | 2018-03-08 23:09:21 -0800 | [diff] [blame] | 2065 | endif |
Wen Gong | 01a2c63 | 2018-04-11 18:34:55 +0800 | [diff] [blame] | 2066 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DDFS_COMPONENT_ENABLE |
| 2067 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_USE_POLICY_MANAGER |
| 2068 | cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT |
Arif Hussain | 757b45f | 2017-02-11 16:47:06 -0800 | [diff] [blame] | 2069 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2070 | cppflags-$(CONFIG_WLAN_DEBUGFS) += -DWLAN_DEBUGFS |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 2071 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2072 | cppflags-$(CONFIG_DYNAMIC_DEBUG) += -DFEATURE_MULTICAST_HOST_FW_MSGS |
Zhu Jianmin | 35fcd0d | 2017-08-30 10:47:31 +0800 | [diff] [blame] | 2073 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2074 | cppflags-$(CONFIG_ENABLE_SMMU_S1_TRANSLATION) += -DENABLE_SMMU_S1_TRANSLATION |
Himanshu Agarwal | edf30dc | 2017-06-05 15:54:27 +0530 | [diff] [blame] | 2075 | |
Alok Kumar | b64650c | 2018-03-23 17:05:11 +0530 | [diff] [blame] | 2076 | #Flag to enable NUD tracking |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2077 | cppflags-$(CONFIG_WLAN_NUD_TRACKING) += -DWLAN_NUD_TRACKING |
| 2078 | |
Nirav Shah | 997e083 | 2018-06-06 17:49:12 +0530 | [diff] [blame] | 2079 | # configure log buffer size |
| 2080 | ifdef CONFIG_CFG_NUM_DP_TRACE_RECORD |
| 2081 | ccflags-y += -DMAX_QDF_DP_TRACE_RECORDS=$(CONFIG_CFG_NUM_DP_TRACE_RECORD) |
| 2082 | endif |
| 2083 | |
| 2084 | ifdef CONFIG_CFG_NUM_HTC_CREDIT_HISTORY |
| 2085 | ccflags-y += -DHTC_CREDIT_HISTORY_MAX=$(CONFIG_CFG_NUM_HTC_CREDIT_HISTORY) |
| 2086 | endif |
| 2087 | |
| 2088 | ifdef CONFIG_CFG_NUM_WMI_EVENT_HISTORY |
| 2089 | ccflags-y += -DWMI_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_EVENT_HISTORY) |
| 2090 | endif |
| 2091 | |
| 2092 | ifdef CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY |
| 2093 | ccflags-y += -DWMI_MGMT_EVENT_DEBUG_MAX_ENTRY=$(CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY) |
| 2094 | endif |
| 2095 | |
| 2096 | ifdef CONFIG_CFG_NUM_TX_RX_HISTOGRAM |
| 2097 | ccflags-y += -DNUM_TX_RX_HISTOGRAM=$(CONFIG_CFG_NUM_TX_RX_HISTOGRAM) |
| 2098 | endif |
| 2099 | |
| 2100 | ifdef CONFIG_CFG_NUM_RX_IND_RECORD |
| 2101 | ccflags-y += -DOL_RX_INDICATION_MAX_RECORDS=$(CONFIG_CFG_NUM_RX_IND_RECORD) |
| 2102 | endif |
| 2103 | |
Qiwei Cai | ad9b01c | 2018-07-09 17:21:31 +0800 | [diff] [blame] | 2104 | ifdef CONFIG_CFG_NUM_ROAM_DEBUG_RECORD |
| 2105 | ccflags-y += -DWLAN_ROAM_DEBUG_MAX_REC=$(CONFIG_CFG_NUM_ROAM_DEBUG_RECORD) |
| 2106 | endif |
| 2107 | |
Rachit Kankane | 8863cba | 2018-06-05 17:31:48 +0530 | [diff] [blame] | 2108 | ifdef CONFIG_CFG_PMO_WOW_FILTERS_MAX |
| 2109 | ccflags-y += -DPMO_WOW_FILTERS_MAX=$(CONFIG_CFG_PMO_WOW_FILTERS_MAX) |
| 2110 | endif |
Nirav Shah | 997e083 | 2018-06-06 17:49:12 +0530 | [diff] [blame] | 2111 | |
jsreekum | ac44b92 | 2018-06-12 20:18:39 +0530 | [diff] [blame] | 2112 | ifdef CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV |
| 2113 | ccflags-y += -DCFG_TGT_DEFAULT_GTK_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV) |
| 2114 | endif |
| 2115 | |
| 2116 | ifdef CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV |
| 2117 | ccflags-y += -DCFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV) |
| 2118 | endif |
| 2119 | |
| 2120 | ifdef CONFIG_CFG_MAX_PERIODIC_TX_PTRNS |
| 2121 | ccflags-y += -DWMA_MAXNUM_PERIODIC_TX_PTRNS=$(CONFIG_CFG_MAX_PERIODIC_TX_PTRNS) |
| 2122 | endif |
| 2123 | |
| 2124 | ifdef CONFIG_CFG_MAX_STA_VDEVS |
| 2125 | ccflags-y += -DCFG_TGT_DEFAULT_MAX_STA_VDEVS=$(CONFIG_CFG_MAX_STA_VDEVS) |
| 2126 | endif |
| 2127 | |
Rachit Kankane | 0106e38 | 2018-05-16 18:59:28 +0530 | [diff] [blame] | 2128 | ifdef CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS |
| 2129 | ccflags-y += -DNUM_OF_ADDITIONAL_FW_PEERS=$(CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS) |
| 2130 | endif |
| 2131 | |
jsreekum | ac44b92 | 2018-06-12 20:18:39 +0530 | [diff] [blame] | 2132 | ifdef CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES |
| 2133 | ccflags-y += -DCFG_TGT_NUM_TDLS_CONN_TABLE_ENTRIES=$(CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES) |
| 2134 | endif |
| 2135 | |
Jeff Johnson | ee86984 | 2018-04-17 11:14:03 -0700 | [diff] [blame] | 2136 | KBUILD_CPPFLAGS += $(cppflags-y) |
Alok Kumar | b64650c | 2018-03-23 17:05:11 +0530 | [diff] [blame] | 2137 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2138 | # Currently, for versions of gcc which support it, the kernel Makefile |
| 2139 | # is disabling the maybe-uninitialized warning. Re-enable it for the |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 2140 | # 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] | 2141 | # will override the kernel settings. |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 2142 | ifeq ($(call cc-option-yn, -Wmaybe-uninitialized), y) |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 2143 | ccflags-y += -Wmaybe-uninitialized |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2144 | ifneq (y,$(CONFIG_ARCH_MSM)) |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 2145 | ccflags-y += -Wframe-larger-than=4096 |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2146 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2147 | endif |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 2148 | ccflags-y += -Wmissing-prototypes |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2149 | |
Jeff Johnson | eadeb93 | 2018-04-07 15:32:36 -0700 | [diff] [blame] | 2150 | ifeq ($(call cc-option-yn, -Wheader-guard), y) |
Jeff Johnson | 3a7a9c6 | 2018-04-07 18:30:05 -0700 | [diff] [blame] | 2151 | ccflags-y += -Wheader-guard |
Srinivas Girigowda | 0a85ccd | 2016-12-01 14:58:08 -0800 | [diff] [blame] | 2152 | endif |
Samuel Ahn | c9c48ca | 2016-09-19 15:46:36 +0530 | [diff] [blame] | 2153 | # 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] | 2154 | # 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] | 2155 | # any string that must be unique for all instances of the driver on the system. |
| 2156 | # This allows multiple instances of the driver with different module names. |
| 2157 | # If the module name is wlan, leave MULTI_IF_NAME undefined and the code will |
| 2158 | # treat the driver as the primary driver. |
| 2159 | ifneq ($(MODNAME), wlan) |
Yu Wang | 66e4ff2 | 2017-02-15 19:09:24 +0800 | [diff] [blame] | 2160 | CHIP_NAME ?= $(MODNAME) |
Jeff Johnson | b4e2d82 | 2018-04-12 15:53:24 -0700 | [diff] [blame] | 2161 | ccflags-y += -DMULTI_IF_NAME=\"$(CHIP_NAME)\" |
Samuel Ahn | c9c48ca | 2016-09-19 15:46:36 +0530 | [diff] [blame] | 2162 | endif |
| 2163 | |
| 2164 | # WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the |
| 2165 | # system. If it is not defined, then the host driver will use the first 4 |
| 2166 | # characters (including NULL) of MULTI_IF_NAME to construct |
| 2167 | # WLAN_HDD_ADAPTER_MAGIC. |
| 2168 | ifdef WLAN_HDD_ADAPTER_MAGIC |
Jeff Johnson | b4e2d82 | 2018-04-12 15:53:24 -0700 | [diff] [blame] | 2169 | ccflags-y += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC) |
Samuel Ahn | c9c48ca | 2016-09-19 15:46:36 +0530 | [diff] [blame] | 2170 | endif |
Srinivas Girigowda | 0a85ccd | 2016-12-01 14:58:08 -0800 | [diff] [blame] | 2171 | |
Dustin Brown | 9b217c0 | 2018-03-29 11:17:53 -0700 | [diff] [blame] | 2172 | # Determine if we are building against an arm architecture host |
| 2173 | ifeq ($(findstring arm, $(ARCH)),) |
Jeff Johnson | b4e2d82 | 2018-04-12 15:53:24 -0700 | [diff] [blame] | 2174 | ccflags-y += -DWLAN_HOST_ARCH_ARM=0 |
Dustin Brown | 9b217c0 | 2018-03-29 11:17:53 -0700 | [diff] [blame] | 2175 | else |
Jeff Johnson | b4e2d82 | 2018-04-12 15:53:24 -0700 | [diff] [blame] | 2176 | ccflags-y += -DWLAN_HOST_ARCH_ARM=1 |
Dustin Brown | 9b217c0 | 2018-03-29 11:17:53 -0700 | [diff] [blame] | 2177 | endif |
| 2178 | |
Naveen Rawat | 9383625 | 2017-06-20 16:30:59 -0700 | [diff] [blame] | 2179 | # inject some build related information |
Dustin Brown | 96cd963 | 2017-11-13 12:45:04 -0800 | [diff] [blame] | 2180 | ifeq ($(CONFIG_BUILD_TAG), y) |
Dustin Brown | 0e769d0 | 2017-11-14 12:52:32 -0800 | [diff] [blame] | 2181 | CLD_CHECKOUT = $(shell cd "$(WLAN_ROOT)" && \ |
| 2182 | git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+) |
| 2183 | CLD_IDS = $(shell cd "$(WLAN_ROOT)" && \ |
| 2184 | git log $(CLD_CHECKOUT)~..HEAD | \ |
| 2185 | sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \ |
| 2186 | paste -sd "," -) |
| 2187 | |
| 2188 | CMN_CHECKOUT = $(shell cd "$(WLAN_COMMON_INC)" && \ |
| 2189 | git reflog | grep -vm1 cherry-pick | grep -oE ^[0-f]+) |
| 2190 | CMN_IDS = $(shell cd "$(WLAN_COMMON_INC)" && \ |
| 2191 | git log $(CMN_CHECKOUT)~..HEAD | \ |
| 2192 | sed -nE 's/^\s*Change-Id: (I[0-f]{10})[0-f]{30}\s*$$/\1/p' | \ |
| 2193 | paste -sd "," -) |
| 2194 | |
Dustin Brown | 96cd963 | 2017-11-13 12:45:04 -0800 | [diff] [blame] | 2195 | TIMESTAMP = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ') |
Dustin Brown | 0e769d0 | 2017-11-14 12:52:32 -0800 | [diff] [blame] | 2196 | BUILD_TAG = "$(TIMESTAMP); cld:$(CLD_IDS); cmn:$(CMN_IDS);" |
Mahesh Kumar Kalikot Veetil | 48af32b | 2018-02-23 11:50:19 -0800 | [diff] [blame] | 2197 | # It's assumed that BUILD_TAG is used only in wlan_hdd_main.c |
| 2198 | CFLAGS_wlan_hdd_main.o += -DBUILD_TAG=\"$(BUILD_TAG)\" |
Naveen Rawat | 9383625 | 2017-06-20 16:30:59 -0700 | [diff] [blame] | 2199 | endif |
| 2200 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2201 | # Module information used by KBuild framework |
| 2202 | obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o |
| 2203 | $(MODNAME)-y := $(OBJS) |
Srinivas Girigowda | c7a1b0a | 2017-12-08 12:00:00 -0800 | [diff] [blame] | 2204 | OBJS_DIRS := $(dir $(OBJS)) \ |
| 2205 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ \ |
| 2206 | $(QDF_OBJ_DIR)/ \ |
| 2207 | $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/ \ |
| 2208 | $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/ \ |
| 2209 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/ |
| 2210 | CLEAN_DIRS := $(addsuffix *.o,$(sort $(OBJS_DIRS))) \ |
| 2211 | $(addsuffix .*.o.cmd,$(sort $(OBJS_DIRS))) |
| 2212 | clean-files := $(CLEAN_DIRS) |