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