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