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