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