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