Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 1 | # We can build either as part of a standalone Kernel build or part |
| 2 | # of an Android build. Determine which mechanism is being used |
| 3 | ifeq ($(MODNAME),) |
| 4 | KERNEL_BUILD := 1 |
| 5 | else |
| 6 | KERNEL_BUILD := 0 |
| 7 | endif |
| 8 | |
| 9 | ifeq ($(KERNEL_BUILD),1) |
| 10 | # These are provided in Android-based builds |
| 11 | # Need to explicitly define for Kernel-based builds |
| 12 | MODNAME := wlan |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 13 | WLAN_ROOT := drivers/staging/prima |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 14 | endif |
| 15 | |
Amar Singhal | fddc28c | 2013-09-05 13:03:40 -0700 | [diff] [blame] | 16 | ifeq ($(KERNEL_BUILD), 0) |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 17 | # These are configurable via Kconfig for kernel-based builds |
| 18 | # Need to explicitly configure for Android-based builds |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 19 | |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 20 | #Flag to enable BlueTooth AMP feature |
| 21 | CONFIG_PRIMA_WLAN_BTAMP := n |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 22 | |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 23 | #Flag to enable Legacy Fast Roaming(LFR) |
| 24 | CONFIG_PRIMA_WLAN_LFR := y |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 25 | |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 26 | #JB kernel has PMKSA patches, hence enabling this flag |
| 27 | CONFIG_PRIMA_WLAN_OKC := y |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 28 | |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 29 | # JB kernel has CPU enablement patches, so enable |
| 30 | CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y |
Kiran Venkatappa | d52a3c7 | 2012-12-27 17:25:33 -0800 | [diff] [blame] | 31 | |
Anurag Chouhan | 0b29de0 | 2016-12-16 13:18:40 +0530 | [diff] [blame] | 32 | #Flag to enable mDNS feature |
| 33 | CONFIG_MDNS_OFFLOAD_SUPPORT := y |
| 34 | |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 35 | #Flag to enable TDLS feature |
| 36 | CONFIG_QCOM_TDLS := y |
Gopichand Nakkala | d7d1365 | 2013-02-15 01:48:00 +0530 | [diff] [blame] | 37 | |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 38 | #Flag to enable Fast Transition (11r) feature |
| 39 | CONFIG_QCOM_VOWIFI_11R := y |
Gopichand Nakkala | d7d1365 | 2013-02-15 01:48:00 +0530 | [diff] [blame] | 40 | |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 41 | #Flag to enable Protected Managment Frames (11w) feature |
| 42 | ifneq ($(CONFIG_PRONTO_WLAN),) |
| 43 | CONFIG_WLAN_FEATURE_11W := y |
| 44 | endif |
Chet Lanctot | 6802b30 | 2013-04-04 16:50:46 -0700 | [diff] [blame] | 45 | |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 46 | #Flag to enable new Linux Regulatory implementation |
| 47 | CONFIG_ENABLE_LINUX_REG := y |
Amar Singhal | fddc28c | 2013-09-05 13:03:40 -0700 | [diff] [blame] | 48 | |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 49 | #Flag to enable offload packets feature |
| 50 | CONFIG_WLAN_OFFLOAD_PACKETS := y |
| 51 | |
| 52 | endif |
Kapil Gupta | ee33bf1 | 2016-12-20 18:27:37 +0530 | [diff] [blame] | 53 | #Flag to enable AP Find feature |
| 54 | CONFIG_WLAN_FEATURE_AP_FIND := y |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 55 | |
Agrawal Ashish | 17ef508 | 2016-10-17 18:33:21 +0530 | [diff] [blame] | 56 | # Flag to enable feature Software AP Authentication Offload |
| 57 | SAP_AUTH_OFFLOAD := y |
| 58 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 59 | # To enable CONFIG_QCOM_ESE_UPLOAD, dependent config |
| 60 | # CONFIG_QCOM_ESE must be enabled. |
| 61 | CONFIG_QCOM_ESE := n |
| 62 | CONFIG_QCOM_ESE_UPLOAD := n |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 63 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 64 | # Feature flags which are not (currently) configurable via Kconfig |
| 65 | |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 66 | #Whether to build debug version |
| 67 | BUILD_DEBUG_VERSION := 1 |
| 68 | |
| 69 | #Enable this flag to build driver in diag version |
Bansidhar Gopalachari | a4e0898 | 2013-05-10 15:25:23 -0700 | [diff] [blame] | 70 | BUILD_DIAG_VERSION := 1 |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 71 | |
| 72 | #Do we panic on bug? default is to warn |
Sameer Thalappil | 451ebb9 | 2013-06-28 15:49:58 -0700 | [diff] [blame] | 73 | PANIC_ON_BUG := 1 |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 74 | |
| 75 | #Re-enable wifi on WDI timeout |
| 76 | RE_ENABLE_WIFI_ON_WDI_TIMEOUT := 0 |
| 77 | |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 78 | ifeq ($(CONFIG_CFG80211),y) |
| 79 | HAVE_CFG80211 := 1 |
| 80 | else |
| 81 | ifeq ($(CONFIG_CFG80211),m) |
| 82 | HAVE_CFG80211 := 1 |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 83 | else |
| 84 | HAVE_CFG80211 := 0 |
| 85 | endif |
| 86 | endif |
| 87 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 88 | ############ BAP ############ |
| 89 | BAP_DIR := CORE/BAP |
| 90 | BAP_INC_DIR := $(BAP_DIR)/inc |
| 91 | BAP_SRC_DIR := $(BAP_DIR)/src |
| 92 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 93 | BAP_INC := -I$(WLAN_ROOT)/$(BAP_INC_DIR) \ |
| 94 | -I$(WLAN_ROOT)/$(BAP_SRC_DIR) |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 95 | |
| 96 | BAP_OBJS := $(BAP_SRC_DIR)/bapApiData.o \ |
| 97 | $(BAP_SRC_DIR)/bapApiDebug.o \ |
| 98 | $(BAP_SRC_DIR)/bapApiExt.o \ |
| 99 | $(BAP_SRC_DIR)/bapApiHCBB.o \ |
| 100 | $(BAP_SRC_DIR)/bapApiInfo.o \ |
| 101 | $(BAP_SRC_DIR)/bapApiLinkCntl.o \ |
| 102 | $(BAP_SRC_DIR)/bapApiLinkSupervision.o \ |
| 103 | $(BAP_SRC_DIR)/bapApiStatus.o \ |
| 104 | $(BAP_SRC_DIR)/bapApiTimer.o \ |
| 105 | $(BAP_SRC_DIR)/bapModule.o \ |
| 106 | $(BAP_SRC_DIR)/bapRsn8021xAuthFsm.o \ |
| 107 | $(BAP_SRC_DIR)/bapRsn8021xPrf.o \ |
| 108 | $(BAP_SRC_DIR)/bapRsn8021xSuppRsnFsm.o \ |
| 109 | $(BAP_SRC_DIR)/bapRsnAsfPacket.o \ |
| 110 | $(BAP_SRC_DIR)/bapRsnSsmAesKeyWrap.o \ |
| 111 | $(BAP_SRC_DIR)/bapRsnSsmEapol.o \ |
| 112 | $(BAP_SRC_DIR)/bapRsnSsmReplayCtr.o \ |
| 113 | $(BAP_SRC_DIR)/bapRsnTxRx.o \ |
| 114 | $(BAP_SRC_DIR)/btampFsm.o \ |
| 115 | $(BAP_SRC_DIR)/btampHCI.o |
| 116 | |
| 117 | ############ DXE ############ |
| 118 | DXE_DIR := CORE/DXE |
| 119 | DXE_INC_DIR := $(DXE_DIR)/inc |
| 120 | DXE_SRC_DIR := $(DXE_DIR)/src |
| 121 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 122 | DXE_INC := -I$(WLAN_ROOT)/$(DXE_INC_DIR) \ |
| 123 | -I$(WLAN_ROOT)/$(DXE_SRC_DIR) |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 124 | |
| 125 | DXE_OBJS = $(DXE_SRC_DIR)/wlan_qct_dxe.o \ |
| 126 | $(DXE_SRC_DIR)/wlan_qct_dxe_cfg_i.o |
| 127 | |
| 128 | ############ HDD ############ |
| 129 | HDD_DIR := CORE/HDD |
| 130 | HDD_INC_DIR := $(HDD_DIR)/inc |
| 131 | HDD_SRC_DIR := $(HDD_DIR)/src |
| 132 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 133 | HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \ |
| 134 | -I$(WLAN_ROOT)/$(HDD_SRC_DIR) |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 135 | |
| 136 | HDD_OBJS := $(HDD_SRC_DIR)/bap_hdd_main.o \ |
| 137 | $(HDD_SRC_DIR)/wlan_hdd_assoc.o \ |
| 138 | $(HDD_SRC_DIR)/wlan_hdd_cfg.o \ |
Yue Ma | 0d4891e | 2013-08-06 17:01:45 -0700 | [diff] [blame] | 139 | $(HDD_SRC_DIR)/wlan_hdd_debugfs.o \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 140 | $(HDD_SRC_DIR)/wlan_hdd_dev_pwr.o \ |
| 141 | $(HDD_SRC_DIR)/wlan_hdd_dp_utils.o \ |
| 142 | $(HDD_SRC_DIR)/wlan_hdd_early_suspend.o \ |
| 143 | $(HDD_SRC_DIR)/wlan_hdd_ftm.o \ |
| 144 | $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 145 | $(HDD_SRC_DIR)/wlan_hdd_main.o \ |
| 146 | $(HDD_SRC_DIR)/wlan_hdd_mib.o \ |
Yue Ma | 0d4891e | 2013-08-06 17:01:45 -0700 | [diff] [blame] | 147 | $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 148 | $(HDD_SRC_DIR)/wlan_hdd_scan.o \ |
| 149 | $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \ |
| 150 | $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \ |
Sushant Kaushik | 4b7cb30 | 2014-01-06 17:45:01 +0530 | [diff] [blame] | 151 | $(HDD_SRC_DIR)/wlan_hdd_trace.o \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 152 | $(HDD_SRC_DIR)/wlan_hdd_wext.o \ |
| 153 | $(HDD_SRC_DIR)/wlan_hdd_wmm.o \ |
| 154 | $(HDD_SRC_DIR)/wlan_hdd_wowl.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 155 | |
| 156 | ifeq ($(HAVE_CFG80211),1) |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 157 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \ |
| 158 | $(HDD_SRC_DIR)/wlan_hdd_p2p.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 159 | endif |
| 160 | |
| 161 | ifeq ($(CONFIG_QCOM_TDLS),y) |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 162 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 163 | endif |
| 164 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 165 | ############ MAC ############ |
| 166 | MAC_DIR := CORE/MAC |
| 167 | MAC_INC_DIR := $(MAC_DIR)/inc |
| 168 | MAC_SRC_DIR := $(MAC_DIR)/src |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 169 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 170 | MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \ |
| 171 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \ |
| 172 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \ |
| 173 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \ |
| 174 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 175 | |
| 176 | MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfgApi.o \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 177 | $(MAC_SRC_DIR)/cfg/cfgDebug.o \ |
| 178 | $(MAC_SRC_DIR)/cfg/cfgParamName.o \ |
| 179 | $(MAC_SRC_DIR)/cfg/cfgProcMsg.o \ |
| 180 | $(MAC_SRC_DIR)/cfg/cfgSendMsg.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 181 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 182 | MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dphHashTable.o |
| 183 | |
| 184 | MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/limAIDmgmt.o \ |
| 185 | $(MAC_SRC_DIR)/pe/lim/limAdmitControl.o \ |
| 186 | $(MAC_SRC_DIR)/pe/lim/limApi.o \ |
| 187 | $(MAC_SRC_DIR)/pe/lim/limAssocUtils.o \ |
| 188 | $(MAC_SRC_DIR)/pe/lim/limDebug.o \ |
| 189 | $(MAC_SRC_DIR)/pe/lim/limFT.o \ |
| 190 | $(MAC_SRC_DIR)/pe/lim/limIbssPeerMgmt.o \ |
| 191 | $(MAC_SRC_DIR)/pe/lim/limLinkMonitoringAlgo.o \ |
| 192 | $(MAC_SRC_DIR)/pe/lim/limLogDump.o \ |
| 193 | $(MAC_SRC_DIR)/pe/lim/limP2P.o \ |
| 194 | $(MAC_SRC_DIR)/pe/lim/limProcessActionFrame.o \ |
| 195 | $(MAC_SRC_DIR)/pe/lim/limProcessAssocReqFrame.o \ |
| 196 | $(MAC_SRC_DIR)/pe/lim/limProcessAssocRspFrame.o \ |
| 197 | $(MAC_SRC_DIR)/pe/lim/limProcessAuthFrame.o \ |
| 198 | $(MAC_SRC_DIR)/pe/lim/limProcessBeaconFrame.o \ |
| 199 | $(MAC_SRC_DIR)/pe/lim/limProcessCfgUpdates.o \ |
| 200 | $(MAC_SRC_DIR)/pe/lim/limProcessDeauthFrame.o \ |
| 201 | $(MAC_SRC_DIR)/pe/lim/limProcessDisassocFrame.o \ |
| 202 | $(MAC_SRC_DIR)/pe/lim/limProcessLmmMessages.o \ |
| 203 | $(MAC_SRC_DIR)/pe/lim/limProcessMessageQueue.o \ |
| 204 | $(MAC_SRC_DIR)/pe/lim/limProcessMlmReqMessages.o \ |
| 205 | $(MAC_SRC_DIR)/pe/lim/limProcessMlmRspMessages.o \ |
| 206 | $(MAC_SRC_DIR)/pe/lim/limProcessProbeReqFrame.o \ |
| 207 | $(MAC_SRC_DIR)/pe/lim/limProcessProbeRspFrame.o \ |
| 208 | $(MAC_SRC_DIR)/pe/lim/limProcessSmeReqMessages.o \ |
| 209 | $(MAC_SRC_DIR)/pe/lim/limPropExtsUtils.o \ |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 210 | $(MAC_SRC_DIR)/pe/lim/limRMC.o \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 211 | $(MAC_SRC_DIR)/pe/lim/limRoamingAlgo.o \ |
| 212 | $(MAC_SRC_DIR)/pe/lim/limScanResultUtils.o \ |
| 213 | $(MAC_SRC_DIR)/pe/lim/limSecurityUtils.o \ |
| 214 | $(MAC_SRC_DIR)/pe/lim/limSendManagementFrames.o \ |
| 215 | $(MAC_SRC_DIR)/pe/lim/limSendMessages.o \ |
| 216 | $(MAC_SRC_DIR)/pe/lim/limSendSmeRspMessages.o \ |
| 217 | $(MAC_SRC_DIR)/pe/lim/limSerDesUtils.o \ |
| 218 | $(MAC_SRC_DIR)/pe/lim/limSession.o \ |
| 219 | $(MAC_SRC_DIR)/pe/lim/limSessionUtils.o \ |
| 220 | $(MAC_SRC_DIR)/pe/lim/limSmeReqUtils.o \ |
| 221 | $(MAC_SRC_DIR)/pe/lim/limStaHashApi.o \ |
| 222 | $(MAC_SRC_DIR)/pe/lim/limTimerUtils.o \ |
| 223 | $(MAC_SRC_DIR)/pe/lim/limTrace.o \ |
| 224 | $(MAC_SRC_DIR)/pe/lim/limUtils.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 225 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 226 | ifeq ($(CONFIG_QCOM_ESE),y) |
| 227 | ifneq ($(CONFIG_QCOM_ESE_UPLOAD),y) |
| 228 | MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/limProcessEseFrame.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 229 | endif |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 230 | endif |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 231 | |
| 232 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 233 | MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/limProcessTdls.o |
| 234 | endif |
| 235 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 236 | MAC_PMM_OBJS := $(MAC_SRC_DIR)/pe/pmm/pmmAP.o \ |
| 237 | $(MAC_SRC_DIR)/pe/pmm/pmmApi.o \ |
| 238 | $(MAC_SRC_DIR)/pe/pmm/pmmDebug.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 239 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 240 | MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/schApi.o \ |
| 241 | $(MAC_SRC_DIR)/pe/sch/schBeaconGen.o \ |
| 242 | $(MAC_SRC_DIR)/pe/sch/schBeaconProcess.o \ |
| 243 | $(MAC_SRC_DIR)/pe/sch/schDebug.o \ |
| 244 | $(MAC_SRC_DIR)/pe/sch/schMessage.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 245 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 246 | MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrmApi.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 247 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 248 | MAC_OBJS := $(MAC_CFG_OBJS) \ |
| 249 | $(MAC_DPH_OBJS) \ |
| 250 | $(MAC_LIM_OBJS) \ |
| 251 | $(MAC_PMM_OBJS) \ |
| 252 | $(MAC_SCH_OBJS) \ |
| 253 | $(MAC_RRM_OBJS) |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 254 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 255 | ############ SAP ############ |
| 256 | SAP_DIR := CORE/SAP |
| 257 | SAP_INC_DIR := $(SAP_DIR)/inc |
| 258 | SAP_SRC_DIR := $(SAP_DIR)/src |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 259 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 260 | SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \ |
| 261 | -I$(WLAN_ROOT)/$(SAP_SRC_DIR) |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 262 | |
| 263 | SAP_OBJS := $(SAP_SRC_DIR)/sapApiLinkCntl.o \ |
| 264 | $(SAP_SRC_DIR)/sapChSelect.o \ |
| 265 | $(SAP_SRC_DIR)/sapFsm.o \ |
| 266 | $(SAP_SRC_DIR)/sapModule.o |
| 267 | |
| 268 | ############ SME ############ |
| 269 | SME_DIR := CORE/SME |
| 270 | SME_INC_DIR := $(SME_DIR)/inc |
| 271 | SME_SRC_DIR := $(SME_DIR)/src |
| 272 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 273 | SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \ |
| 274 | -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 275 | |
| 276 | SME_CCM_OBJS := $(SME_SRC_DIR)/ccm/ccmApi.o \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 277 | $(SME_SRC_DIR)/ccm/ccmLogDump.o |
| 278 | |
| 279 | SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csrApiRoam.o \ |
| 280 | $(SME_SRC_DIR)/csr/csrApiScan.o \ |
| 281 | $(SME_SRC_DIR)/csr/csrCmdProcess.o \ |
| 282 | $(SME_SRC_DIR)/csr/csrLinkList.o \ |
| 283 | $(SME_SRC_DIR)/csr/csrLogDump.o \ |
| 284 | $(SME_SRC_DIR)/csr/csrNeighborRoam.o \ |
| 285 | $(SME_SRC_DIR)/csr/csrUtil.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 286 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 287 | ifeq ($(CONFIG_QCOM_ESE),y) |
| 288 | ifneq ($(CONFIG_QCOM_ESE_UPLOAD),y) |
| 289 | SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csrEse.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 290 | endif |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 291 | endif |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 292 | |
| 293 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 294 | SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csrTdlsProcess.o |
| 295 | endif |
| 296 | |
| 297 | SME_PMC_OBJS := $(SME_SRC_DIR)/pmc/pmcApi.o \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 298 | $(SME_SRC_DIR)/pmc/pmc.o \ |
| 299 | $(SME_SRC_DIR)/pmc/pmcLogDump.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 300 | |
| 301 | SME_QOS_OBJS := $(SME_SRC_DIR)/QoS/sme_Qos.o |
| 302 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 303 | SME_CMN_OBJS := $(SME_SRC_DIR)/sme_common/sme_Api.o \ |
Leela Venkata Kiran Kumar Reddy Chirala | 7367c20 | 2013-04-10 22:39:51 -0700 | [diff] [blame] | 304 | $(SME_SRC_DIR)/sme_common/sme_FTApi.o \ |
| 305 | $(SME_SRC_DIR)/sme_common/sme_Trace.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 306 | |
| 307 | SME_BTC_OBJS := $(SME_SRC_DIR)/btc/btcApi.o |
| 308 | |
| 309 | SME_OEM_DATA_OBJS := $(SME_SRC_DIR)/oemData/oemDataApi.o |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 310 | |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 311 | SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_Api.o |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 312 | |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 313 | SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o |
| 314 | |
Srinivas Dasari | 32a7926 | 2015-02-19 13:04:49 +0530 | [diff] [blame] | 315 | SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_Api.o |
| 316 | |
| 317 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 318 | SME_OBJS := $(SME_BTC_OBJS) \ |
| 319 | $(SME_CCM_OBJS) \ |
| 320 | $(SME_CMN_OBJS) \ |
| 321 | $(SME_CSR_OBJS) \ |
| 322 | $(SME_OEM_DATA_OBJS) \ |
| 323 | $(SME_P2P_OBJS) \ |
| 324 | $(SME_PMC_OBJS) \ |
| 325 | $(SME_QOS_OBJS) \ |
Srinivas Dasari | 32a7926 | 2015-02-19 13:04:49 +0530 | [diff] [blame] | 326 | $(SME_RRM_OBJS) \ |
| 327 | $(SME_NAN_OBJS) |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 328 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 329 | ############ SVC ############ |
| 330 | SVC_DIR := CORE/SVC |
| 331 | SVC_INC_DIR := $(SVC_DIR)/inc |
| 332 | SVC_SRC_DIR := $(SVC_DIR)/src |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 333 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 334 | SVC_INC := -I$(WLAN_ROOT)/$(SVC_INC_DIR) \ |
| 335 | -I$(WLAN_ROOT)/$(SVC_DIR)/external |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 336 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 337 | BTC_SRC_DIR := $(SVC_SRC_DIR)/btc |
| 338 | BTC_OBJS := $(BTC_SRC_DIR)/wlan_btc_svc.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 339 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 340 | NLINK_SRC_DIR := $(SVC_SRC_DIR)/nlink |
| 341 | NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 342 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 343 | PTT_SRC_DIR := $(SVC_SRC_DIR)/ptt |
| 344 | PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 345 | |
Vinay Krishna Eranna | d938c42 | 2014-03-10 17:14:21 +0530 | [diff] [blame] | 346 | WLAN_LOGGING_SRC_DIR := $(SVC_SRC_DIR)/logging |
| 347 | WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o |
| 348 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 349 | SVC_OBJS := $(BTC_OBJS) \ |
| 350 | $(NLINK_OBJS) \ |
Vinay Krishna Eranna | d938c42 | 2014-03-10 17:14:21 +0530 | [diff] [blame] | 351 | $(PTT_OBJS) \ |
| 352 | $(WLAN_LOGGING_OBJS) |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 353 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 354 | ############ SYS ############ |
| 355 | SYS_DIR := CORE/SYS |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 356 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 357 | SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \ |
| 358 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/pal/inc \ |
| 359 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \ |
| 360 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \ |
| 361 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 362 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 363 | SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src |
| 364 | SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src |
| 365 | SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \ |
| 366 | $(SYS_LEGACY_SRC_DIR)/pal/src/palApiComm.o \ |
| 367 | $(SYS_LEGACY_SRC_DIR)/pal/src/palTimer.o \ |
| 368 | $(SYS_LEGACY_SRC_DIR)/platform/src/VossWrapper.o \ |
| 369 | $(SYS_LEGACY_SRC_DIR)/system/src/macInitApi.o \ |
| 370 | $(SYS_LEGACY_SRC_DIR)/system/src/sysEntryFunc.o \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 371 | $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \ |
| 372 | $(SYS_LEGACY_SRC_DIR)/utils/src/logApi.o \ |
| 373 | $(SYS_LEGACY_SRC_DIR)/utils/src/logDump.o \ |
| 374 | $(SYS_LEGACY_SRC_DIR)/utils/src/macTrace.o \ |
| 375 | $(SYS_LEGACY_SRC_DIR)/utils/src/parserApi.o \ |
| 376 | $(SYS_LEGACY_SRC_DIR)/utils/src/utilsApi.o \ |
| 377 | $(SYS_LEGACY_SRC_DIR)/utils/src/utilsParser.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 378 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 379 | ############ TL ############ |
| 380 | TL_DIR := CORE/TL |
| 381 | TL_INC_DIR := $(TL_DIR)/inc |
| 382 | TL_SRC_DIR := $(TL_DIR)/src |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 383 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 384 | TL_INC := -I$(WLAN_ROOT)/$(TL_INC_DIR) \ |
| 385 | -I$(WLAN_ROOT)/$(TL_SRC_DIR) |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 386 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 387 | TL_OBJS := $(TL_SRC_DIR)/wlan_qct_tl.o \ |
| 388 | $(TL_SRC_DIR)/wlan_qct_tl_ba.o \ |
Katya Nigam | 42e16e8 | 2014-02-04 16:28:55 +0530 | [diff] [blame] | 389 | $(TL_SRC_DIR)/wlan_qct_tl_hosupport.o \ |
| 390 | $(TL_SRC_DIR)/wlan_qct_tl_trace.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 391 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 392 | ############ VOSS ############ |
| 393 | VOSS_DIR := CORE/VOSS |
| 394 | VOSS_INC_DIR := $(VOSS_DIR)/inc |
| 395 | VOSS_SRC_DIR := $(VOSS_DIR)/src |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 396 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 397 | VOSS_INC := -I$(WLAN_ROOT)/$(VOSS_INC_DIR) \ |
| 398 | -I$(WLAN_ROOT)/$(VOSS_SRC_DIR) |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 399 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 400 | VOSS_OBJS := $(VOSS_SRC_DIR)/vos_api.o \ |
| 401 | $(VOSS_SRC_DIR)/vos_event.o \ |
| 402 | $(VOSS_SRC_DIR)/vos_getBin.o \ |
| 403 | $(VOSS_SRC_DIR)/vos_list.o \ |
| 404 | $(VOSS_SRC_DIR)/vos_lock.o \ |
| 405 | $(VOSS_SRC_DIR)/vos_memory.o \ |
| 406 | $(VOSS_SRC_DIR)/vos_mq.o \ |
| 407 | $(VOSS_SRC_DIR)/vos_nvitem.o \ |
| 408 | $(VOSS_SRC_DIR)/vos_packet.o \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 409 | $(VOSS_SRC_DIR)/vos_sched.o \ |
| 410 | $(VOSS_SRC_DIR)/vos_threads.o \ |
| 411 | $(VOSS_SRC_DIR)/vos_timer.o \ |
| 412 | $(VOSS_SRC_DIR)/vos_trace.o \ |
| 413 | $(VOSS_SRC_DIR)/vos_types.o \ |
Prasanna Kumar | f6c94ae | 2013-04-11 20:05:21 -0700 | [diff] [blame] | 414 | $(VOSS_SRC_DIR)/vos_utils.o \ |
| 415 | $(VOSS_SRC_DIR)/wlan_nv_parser.o \ |
| 416 | $(VOSS_SRC_DIR)/wlan_nv_stream_read.o \ |
| 417 | $(VOSS_SRC_DIR)/wlan_nv_template_builtin.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 418 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 419 | ifeq ($(BUILD_DIAG_VERSION),1) |
| 420 | VOSS_OBJS += $(VOSS_SRC_DIR)/vos_diag.o |
| 421 | endif |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 422 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 423 | ############ WDA ############ |
| 424 | WDA_DIR := CORE/WDA |
| 425 | WDA_INC_DIR := $(WDA_DIR)/inc |
| 426 | WDA_SRC_DIR := $(WDA_DIR)/src |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 427 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 428 | WDA_INC := -I$(WLAN_ROOT)/$(WDA_INC_DIR) \ |
| 429 | -I$(WLAN_ROOT)/$(WDA_INC_DIR)/legacy \ |
| 430 | -I$(WLAN_ROOT)/$(WDA_SRC_DIR) |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 431 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 432 | WDA_OBJS := $(WDA_SRC_DIR)/wlan_qct_wda.o \ |
| 433 | $(WDA_SRC_DIR)/wlan_qct_wda_debug.o \ |
| 434 | $(WDA_SRC_DIR)/wlan_qct_wda_ds.o \ |
| 435 | $(WDA_SRC_DIR)/wlan_qct_wda_legacy.o \ |
| 436 | $(WDA_SRC_DIR)/wlan_nv.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 437 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 438 | ############ WDI ############ |
| 439 | WDI_DIR := CORE/WDI |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 440 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 441 | WDI_CP_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/CP/inc/ |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 442 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 443 | WDI_CP_SRC_DIR := $(WDI_DIR)/CP/src |
| 444 | WDI_CP_OBJS := $(WDI_CP_SRC_DIR)/wlan_qct_wdi.o \ |
| 445 | $(WDI_CP_SRC_DIR)/wlan_qct_wdi_dp.o \ |
| 446 | $(WDI_CP_SRC_DIR)/wlan_qct_wdi_sta.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 447 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 448 | WDI_DP_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/DP/inc/ |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 449 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 450 | WDI_DP_SRC_DIR := $(WDI_DIR)/DP/src |
| 451 | WDI_DP_OBJS := $(WDI_DP_SRC_DIR)/wlan_qct_wdi_bd.o \ |
| 452 | $(WDI_DP_SRC_DIR)/wlan_qct_wdi_ds.o |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 453 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 454 | WDI_TRP_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/TRP/CTS/inc/ \ |
| 455 | -I$(WLAN_ROOT)/$(WDI_DIR)/TRP/DTS/inc/ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 456 | |
| 457 | WDI_TRP_CTS_SRC_DIR := $(WDI_DIR)/TRP/CTS/src |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 458 | WDI_TRP_CTS_OBJS := $(WDI_TRP_CTS_SRC_DIR)/wlan_qct_wdi_cts.o |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 459 | |
| 460 | WDI_TRP_DTS_SRC_DIR := $(WDI_DIR)/TRP/DTS/src |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 461 | WDI_TRP_DTS_OBJS := $(WDI_TRP_DTS_SRC_DIR)/wlan_qct_wdi_dts.o |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 462 | |
| 463 | WDI_TRP_OBJS := $(WDI_TRP_CTS_OBJS) \ |
| 464 | $(WDI_TRP_DTS_OBJS) |
| 465 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 466 | WDI_WPAL_INC := -I$(WLAN_ROOT)/$(WDI_DIR)/WPAL/inc |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 467 | |
| 468 | WDI_WPAL_SRC_DIR := $(WDI_DIR)/WPAL/src |
| 469 | WDI_WPAL_OBJS := $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_api.o \ |
| 470 | $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_device.o \ |
| 471 | $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_msg.o \ |
| 472 | $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_packet.o \ |
| 473 | $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_sync.o \ |
| 474 | $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_timer.o \ |
| 475 | $(WDI_WPAL_SRC_DIR)/wlan_qct_pal_trace.o |
| 476 | |
| 477 | WDI_INC := $(WDI_CP_INC) \ |
| 478 | $(WDI_DP_INC) \ |
| 479 | $(WDI_TRP_INC) \ |
| 480 | $(WDI_WPAL_INC) |
| 481 | |
| 482 | WDI_OBJS := $(WDI_CP_OBJS) \ |
| 483 | $(WDI_DP_OBJS) \ |
| 484 | $(WDI_TRP_OBJS) \ |
| 485 | $(WDI_WPAL_OBJS) |
| 486 | |
| 487 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 488 | RIVA_INC := -I$(WLAN_ROOT)/riva/inc |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 489 | |
| 490 | LINUX_INC := -Iinclude/linux |
| 491 | |
| 492 | INCS := $(BAP_INC) \ |
| 493 | $(DXE_INC) \ |
| 494 | $(HDD_INC) \ |
| 495 | $(LINUX_INC) \ |
| 496 | $(MAC_INC) \ |
| 497 | $(RIVA_INC) \ |
| 498 | $(SAP_INC) \ |
| 499 | $(SME_INC) \ |
| 500 | $(SVC_INC) \ |
| 501 | $(SYS_INC) \ |
| 502 | $(TL_INC) \ |
| 503 | $(VOSS_INC) \ |
| 504 | $(WDA_INC) \ |
| 505 | $(WDI_INC) |
| 506 | |
| 507 | OBJS := $(BAP_OBJS) \ |
| 508 | $(DXE_OBJS) \ |
| 509 | $(HDD_OBJS) \ |
| 510 | $(MAC_OBJS) \ |
| 511 | $(SAP_OBJS) \ |
| 512 | $(SME_OBJS) \ |
| 513 | $(SVC_OBJS) \ |
| 514 | $(SYS_OBJS) \ |
| 515 | $(TL_OBJS) \ |
| 516 | $(VOSS_OBJS) \ |
| 517 | $(WDA_OBJS) \ |
| 518 | $(WDI_OBJS) |
| 519 | |
| 520 | EXTRA_CFLAGS += $(INCS) |
Sushant Kaushik | 29fe882 | 2015-10-16 10:43:26 +0530 | [diff] [blame] | 521 | EXTRA_CFLAGS += -fno-pic |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 522 | |
Jeff Johnson | cfc48eb | 2013-03-06 09:50:58 -0800 | [diff] [blame] | 523 | CDEFINES := -DANI_BUS_TYPE_PLATFORM=1 \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 524 | -DANI_LITTLE_BYTE_ENDIAN \ |
| 525 | -DANI_LITTLE_BIT_ENDIAN \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 526 | -DQC_WLAN_CHIPSET_PRIMA \ |
| 527 | -DINTEGRATION_READY \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 528 | -DDOT11F_LITTLE_ENDIAN_HOST \ |
| 529 | -DGEN6_ONWARDS \ |
| 530 | -DANI_COMPILER_TYPE_GCC \ |
| 531 | -DANI_OS_TYPE_ANDROID=6 \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 532 | -DANI_LOGDUMP \ |
| 533 | -DWLAN_PERF \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 534 | -DPTT_SOCK_SVC_ENABLE \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 535 | -Wall\ |
| 536 | -D__linux__ \ |
| 537 | -DMSM_PLATFORM \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 538 | -DHAL_SELF_STA_PER_BSS=1 \ |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 539 | -DWLAN_FEATURE_VOWIFI_11R \ |
| 540 | -DWLAN_FEATURE_NEIGHBOR_ROAMING \ |
| 541 | -DWLAN_FEATURE_NEIGHBOR_ROAMING_DEBUG \ |
| 542 | -DWLAN_FEATURE_VOWIFI_11R_DEBUG \ |
| 543 | -DFEATURE_WLAN_WAPI \ |
| 544 | -DFEATURE_OEM_DATA_SUPPORT\ |
| 545 | -DSOFTAP_CHANNEL_RANGE \ |
| 546 | -DWLAN_AP_STA_CONCURRENCY \ |
| 547 | -DFEATURE_WLAN_SCAN_PNO \ |
| 548 | -DWLAN_FEATURE_PACKET_FILTERING \ |
| 549 | -DWLAN_FEATURE_VOWIFI \ |
| 550 | -DWLAN_FEATURE_11AC \ |
| 551 | -DWLAN_FEATURE_P2P_DEBUG \ |
Yathish | 9f22e66 | 2012-12-10 14:21:35 -0800 | [diff] [blame] | 552 | -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \ |
Ravi Kumar Vaishnav | b765240 | 2013-01-18 19:05:15 -0800 | [diff] [blame] | 553 | -DWLANTL_DEBUG\ |
Madan Mohan Koyyalamudi | 54c671e | 2013-07-25 11:54:26 +0530 | [diff] [blame] | 554 | -DWLAN_NS_OFFLOAD \ |
Gopichand Nakkala | 7fcc6de | 2012-12-21 07:38:04 -0800 | [diff] [blame] | 555 | -DWLAN_ACTIVEMODE_OFFLOAD_FEATURE \ |
Kumar Anand | aca924e | 2013-07-22 14:35:34 -0700 | [diff] [blame] | 556 | -DWLAN_FEATURE_HOLD_RX_WAKELOCK \ |
Varun Reddy Yeturu | d0a3f25 | 2013-04-15 21:58:13 -0700 | [diff] [blame] | 557 | -DWLAN_SOFTAP_VSTA_FEATURE \ |
Kumar Anand | aca924e | 2013-07-22 14:35:34 -0700 | [diff] [blame] | 558 | -DWLAN_FEATURE_ROAM_SCAN_OFFLOAD \ |
| 559 | -DWLAN_FEATURE_GTK_OFFLOAD \ |
Leo Chang | 0882b35 | 2013-08-19 16:20:13 -0700 | [diff] [blame] | 560 | -DWLAN_WAKEUP_EVENTS \ |
Leo Chang | 397deb7 | 2013-08-22 11:33:16 -0700 | [diff] [blame] | 561 | -DWLAN_KD_READY_NOTIFIER \ |
Abhishek Singh | 00b7197 | 2016-01-07 10:51:04 +0530 | [diff] [blame] | 562 | -DWLAN_FEATURE_RMC \ |
Leo Chang | d9df8aa | 2013-09-26 13:32:26 -0700 | [diff] [blame] | 563 | -DWLAN_NL80211_TESTMODE \ |
Rajeev | 79dbe4c | 2013-10-05 11:03:42 +0530 | [diff] [blame] | 564 | -DFEATURE_WLAN_BATCH_SCAN \ |
Hema Aparna Medicharla | 830d59a | 2013-11-16 21:41:34 +0530 | [diff] [blame] | 565 | -DFEATURE_WLAN_LPHB \ |
Kiet Lam | cb76f1b | 2013-12-01 02:21:14 +0530 | [diff] [blame] | 566 | -DFEATURE_WLAN_PAL_TIMER_DISABLE \ |
Leo Chang | 80de3c2 | 2013-11-26 10:52:12 -0800 | [diff] [blame] | 567 | -DFEATURE_WLAN_PAL_MEM_DISABLE \ |
Mihir Shete | 5929ea5 | 2014-02-18 00:10:36 +0530 | [diff] [blame] | 568 | -DFEATURE_WLAN_CH144 \ |
Mihir Shete | 44547fb | 2014-03-10 14:15:42 +0530 | [diff] [blame] | 569 | -DWLAN_BUG_ON_SKB_ERROR \ |
Vinay Krishna Eranna | d938c42 | 2014-03-10 17:14:21 +0530 | [diff] [blame] | 570 | -DWLAN_DXE_LOW_RESOURCE_TIMER \ |
Sunil Dutt | c69bccb | 2014-05-26 21:30:20 +0530 | [diff] [blame] | 571 | -DWLAN_LOGGING_SOCK_SVC_ENABLE \ |
Dino Mycle | 6fb96c1 | 2014-06-10 11:52:40 +0530 | [diff] [blame] | 572 | -DWLAN_FEATURE_LINK_LAYER_STATS \ |
Mukul Sharma | f1bd932 | 2015-10-20 16:03:42 +0530 | [diff] [blame] | 573 | -DWLAN_FEATURE_EXTSCAN \ |
Padma, Santhosh Kumar | 4a6c188 | 2016-03-21 13:21:48 +0530 | [diff] [blame] | 574 | -DFEATURE_EXT_LL_STAT \ |
Anurag Chouhan | 8302600 | 2016-12-13 22:46:21 +0530 | [diff] [blame] | 575 | -DWLAN_VOWIFI_DEBUG \ |
Manjeet Singh | 3ed7924 | 2017-01-11 19:04:32 +0530 | [diff] [blame] | 576 | -DDHCP_SERVER_OFFLOAD \ |
| 577 | -DWLAN_FEATURE_TSF |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 578 | |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 579 | ifneq ($(CONFIG_PRONTO_WLAN),) |
| 580 | CDEFINES += -DWCN_PRONTO |
| 581 | CDEFINES += -DWCN_PRONTO_V1 |
| 582 | endif |
| 583 | |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 584 | ifeq ($(BUILD_DEBUG_VERSION),1) |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 585 | CDEFINES += -DWLAN_DEBUG \ |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 586 | -DTRACE_RECORD \ |
Leela V Kiran Kumar Reddy Chirala | c3b9d38 | 2013-01-31 20:49:53 -0800 | [diff] [blame] | 587 | -DLIM_TRACE_RECORD \ |
Leela Venkata Kiran Kumar Reddy Chirala | 7367c20 | 2013-04-10 22:39:51 -0700 | [diff] [blame] | 588 | -DSME_TRACE_RECORD \ |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 589 | -DPE_DEBUG_LOGW \ |
| 590 | -DPE_DEBUG_LOGE \ |
Sravan Kumar Kairam | a8269e7 | 2015-11-06 12:13:24 +0530 | [diff] [blame] | 591 | -DDXE_TRACE \ |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 592 | -DDEBUG |
| 593 | endif |
| 594 | |
| 595 | ifeq ($(CONFIG_SLUB_DEBUG_ON),y) |
| 596 | CDEFINES += -DTIMER_MANAGER |
| 597 | CDEFINES += -DMEMORY_DEBUG |
| 598 | endif |
| 599 | |
| 600 | ifeq ($(HAVE_CFG80211),1) |
| 601 | CDEFINES += -DWLAN_FEATURE_P2P |
| 602 | CDEFINES += -DWLAN_FEATURE_WFD |
Gopichand Nakkala | febb97e | 2013-04-18 19:25:48 +0530 | [diff] [blame] | 603 | ifeq ($(CONFIG_QCOM_VOWIFI_11R),y) |
| 604 | CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211 |
| 605 | CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC |
| 606 | endif |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 607 | endif |
| 608 | |
Varun Reddy Yeturu | 5d5e2c6 | 2014-02-27 13:31:29 -0800 | [diff] [blame] | 609 | ifeq ($(CONFIG_QCOM_ESE),y) |
| 610 | CDEFINES += -DFEATURE_WLAN_ESE |
| 611 | ifeq ($(CONFIG_QCOM_ESE_UPLOAD),y) |
| 612 | CDEFINES += -DFEATURE_WLAN_ESE_UPLOAD |
Srinivas Girigowda | 5cecb20 | 2013-10-08 09:13:25 -0700 | [diff] [blame] | 613 | endif |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 614 | endif |
| 615 | |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 616 | #normally, TDLS negative behavior is not needed |
| 617 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 618 | CDEFINES += -DFEATURE_WLAN_TDLS |
Chilam NG | 571c65a | 2013-01-19 12:27:36 +0530 | [diff] [blame] | 619 | CDEFINES += -DCONFIG_TDLS_IMPLICIT |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 620 | endif |
| 621 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 622 | ifeq ($(CONFIG_PRIMA_WLAN_BTAMP),y) |
| 623 | CDEFINES += -DWLAN_BTAMP_FEATURE |
| 624 | endif |
| 625 | |
| 626 | ifeq ($(CONFIG_PRIMA_WLAN_LFR),y) |
| 627 | CDEFINES += -DFEATURE_WLAN_LFR |
| 628 | endif |
| 629 | |
| 630 | ifeq ($(CONFIG_PRIMA_WLAN_OKC),y) |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 631 | CDEFINES += -DFEATURE_WLAN_OKC |
| 632 | endif |
| 633 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 634 | ifeq ($(CONFIG_PRIMA_WLAN_11AC_HIGH_TP),y) |
| 635 | CDEFINES += -DWLAN_FEATURE_11AC_HIGH_TP |
| 636 | endif |
| 637 | |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 638 | ifeq ($(BUILD_DIAG_VERSION),1) |
| 639 | CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT |
| 640 | CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR |
| 641 | CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM |
| 642 | endif |
| 643 | |
| 644 | # enable the MAC Address auto-generation feature |
| 645 | CDEFINES += -DWLAN_AUTOGEN_MACADDR_FEATURE |
| 646 | |
Chet Lanctot | 6802b30 | 2013-04-04 16:50:46 -0700 | [diff] [blame] | 647 | ifeq ($(CONFIG_WLAN_FEATURE_11W),y) |
| 648 | CDEFINES += -DWLAN_FEATURE_11W |
| 649 | endif |
| 650 | |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 651 | ifeq ($(PANIC_ON_BUG),1) |
| 652 | CDEFINES += -DPANIC_ON_BUG |
| 653 | endif |
| 654 | |
| 655 | ifeq ($(RE_ENABLE_WIFI_ON_WDI_TIMEOUT),1) |
| 656 | CDEFINES += -DWDI_RE_ENABLE_WIFI_ON_WDI_TIMEOUT |
| 657 | endif |
| 658 | |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 659 | ifeq ($(KERNEL_BUILD),1) |
| 660 | CDEFINES += -DWLAN_OPEN_SOURCE |
| 661 | endif |
| 662 | |
Amar Singhal | a663bb3 | 2013-02-14 13:48:43 -0800 | [diff] [blame] | 663 | ifeq ($(findstring opensource, $(WLAN_ROOT)), opensource) |
| 664 | CDEFINES += -DWLAN_OPEN_SOURCE |
| 665 | endif |
| 666 | |
Amar Singhal | fddc28c | 2013-09-05 13:03:40 -0700 | [diff] [blame] | 667 | ifeq ($(CONFIG_ENABLE_LINUX_REG), y) |
| 668 | CDEFINES += -DCONFIG_ENABLE_LINUX_REG |
| 669 | endif |
| 670 | |
Agrawal Ashish | 17ef508 | 2016-10-17 18:33:21 +0530 | [diff] [blame] | 671 | # Enable feature SAP Authentication Offload |
| 672 | ifeq ($(SAP_AUTH_OFFLOAD), y) |
| 673 | CDEFINES += -DSAP_AUTH_OFFLOAD |
| 674 | endif |
| 675 | |
Kapil Gupta | ee33bf1 | 2016-12-20 18:27:37 +0530 | [diff] [blame] | 676 | ifeq ($(CONFIG_WLAN_FEATURE_AP_FIND), y) |
| 677 | CDEFINES += -DWLAN_FEATURE_APFIND |
| 678 | endif |
| 679 | |
Leo Chang | 0b0e45a | 2013-12-15 15:18:55 -0800 | [diff] [blame] | 680 | CDEFINES += -DFEATURE_WLAN_CH_AVOID |
Hardik Kantilal Patel | ce62e8b | 2014-11-21 16:31:38 +0530 | [diff] [blame] | 681 | CDEFINES += -DWLAN_FEATURE_AP_HT40_24G |
Leo Chang | 0b0e45a | 2013-12-15 15:18:55 -0800 | [diff] [blame] | 682 | |
Jeff Johnson | 1f5ab3e | 2014-01-22 13:09:03 -0800 | [diff] [blame] | 683 | # Some kernel include files are being moved. Check to see if |
| 684 | # the old version of the files are present |
| 685 | |
| 686 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/mach-msm/include/mach/msm_smd.h),) |
Jeff Johnson | da0c221 | 2014-01-03 12:06:27 -0800 | [diff] [blame] | 687 | CDEFINES += -DEXISTS_MSM_SMD |
| 688 | endif |
| 689 | |
Jeff Johnson | 1f5ab3e | 2014-01-22 13:09:03 -0800 | [diff] [blame] | 690 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/mach-msm/include/mach/msm_smsm.h),) |
Jeff Johnson | da0c221 | 2014-01-03 12:06:27 -0800 | [diff] [blame] | 691 | CDEFINES += -DEXISTS_MSM_SMSM |
| 692 | endif |
| 693 | |
Jeff Johnson | 51019dc | 2013-02-21 16:44:09 -0800 | [diff] [blame] | 694 | # Fix build for GCC 4.7 |
| 695 | EXTRA_CFLAGS += -Wno-maybe-uninitialized -Wno-unused-function |
| 696 | |
Srinivas Girigowda | 8bf64cb | 2015-09-30 19:50:09 +0530 | [diff] [blame] | 697 | ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y) |
| 698 | CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS |
| 699 | endif |
| 700 | |
Anurag Chouhan | 0b29de0 | 2016-12-16 13:18:40 +0530 | [diff] [blame] | 701 | ifeq ($(CONFIG_MDNS_OFFLOAD_SUPPORT), y) |
| 702 | CDEFINES += -DMDNS_OFFLOAD |
| 703 | endif |
| 704 | |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 705 | KBUILD_CPPFLAGS += $(CDEFINES) |
| 706 | |
Jeff Johnson | 25abf4d | 2012-12-01 12:42:42 -0800 | [diff] [blame] | 707 | # Module information used by KBuild framework |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 708 | obj-$(CONFIG_PRIMA_WLAN) += $(MODNAME).o |
Jeff Johnson | 91a420a | 2012-12-16 11:16:18 -0800 | [diff] [blame] | 709 | obj-$(CONFIG_PRONTO_WLAN) += $(MODNAME).o |
Jeff Johnson | 2c24a3b | 2012-12-10 12:28:11 -0800 | [diff] [blame] | 710 | $(MODNAME)-y := $(OBJS) |