Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | # We can build either as part of a standalone Kernel build or as |
| 2 | # an external module. Determine which mechanism is being used |
| 3 | ifeq ($(MODNAME),) |
| 4 | KERNEL_BUILD := 1 |
| 5 | else |
| 6 | KERNEL_BUILD := 0 |
| 7 | endif |
| 8 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 9 | ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y) |
| 10 | CONFIG_QCA_WIFI_SDIO := 1 |
| 11 | endif |
| 12 | |
| 13 | ifeq ($(CONFIG_QCA_WIFI_SDIO), 1) |
| 14 | CONFIG_ROME_IF = sdio |
| 15 | endif |
| 16 | |
Houston Hoffman | 57d10c2 | 2016-03-08 13:04:20 -0800 | [diff] [blame] | 17 | ifdef CONFIG_ICNSS |
| 18 | CONFIG_ROME_IF = snoc |
| 19 | endif |
| 20 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 21 | ifeq ($(CONFIG_CNSS), y) |
| 22 | ifndef CONFIG_ROME_IF |
| 23 | #use pci as default interface |
| 24 | CONFIG_ROME_IF = pci |
| 25 | endif |
| 26 | endif |
| 27 | |
| 28 | ifeq ($(KERNEL_BUILD),1) |
| 29 | # These are provided in external module based builds |
| 30 | # Need to explicitly define for Kernel-based builds |
| 31 | MODNAME := wlan |
| 32 | WLAN_ROOT := drivers/staging/qcacld-3.0 |
Houston Hoffman | 52ec669 | 2016-04-21 16:36:45 -0700 | [diff] [blame] | 33 | WLAN_COMMON_ROOT := ../qca-wifi-host-cmn |
| 34 | WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 35 | endif |
| 36 | |
| 37 | # Make WLAN as open-source driver by default |
| 38 | WLAN_OPEN_SOURCE := 1 |
| 39 | |
| 40 | ifeq ($(KERNEL_BUILD), 0) |
| 41 | # These are configurable via Kconfig for kernel-based builds |
| 42 | # Need to explicitly configure for Android-based builds |
| 43 | |
| 44 | ifeq ($(CONFIG_ARCH_MDM9630), y) |
| 45 | CONFIG_MOBILE_ROUTER := y |
| 46 | endif |
| 47 | |
| 48 | ifeq ($(CONFIG_ARCH_MDM9640), y) |
| 49 | CONFIG_MOBILE_ROUTER := y |
| 50 | endif |
| 51 | |
Chandrasekaran, Manishekar | b2d9fa1 | 2016-04-07 12:00:10 +0530 | [diff] [blame] | 52 | # As per target team, build is done as follows: |
| 53 | # Defconfig : build with default flags |
| 54 | # Slub : defconfig + CONFIG_SLUB_DEBUG=y + |
| 55 | # CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y |
| 56 | # Perf : Using appropriate msmXXXX-perf_defconfig |
| 57 | # |
| 58 | # Shipment builds (user variants) should not have any debug feature |
| 59 | # enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds |
| 60 | # are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since |
| 61 | # there is no other way to identify defconfig builds, QCOMs internal |
| 62 | # representation of perf builds (identified using the string 'perf'), |
| 63 | # is used to identify if the build is a slub or defconfig one. This |
| 64 | # way no critical debug feature will be enabled for perf and shipment |
| 65 | # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT |
| 66 | # config. |
| 67 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Poddar, Siddarth | eefe348 | 2016-09-21 18:12:59 +0530 | [diff] [blame] | 68 | CONFIG_FEATURE_PKTLOG := y |
Chandrasekaran, Manishekar | b2d9fa1 | 2016-04-07 12:00:10 +0530 | [diff] [blame] | 69 | ifeq ($(CONFIG_SLUB_DEBUG_ON),y) |
Nirav Shah | cc1f1ae | 2016-04-26 11:41:29 +0530 | [diff] [blame] | 70 | CONFIG_FEATURE_DP_TRACE := y |
Chandrasekaran, Manishekar | b2d9fa1 | 2016-04-07 12:00:10 +0530 | [diff] [blame] | 71 | else |
| 72 | ifeq ($(findstring perf,$(KERNEL_DEFCONFIG)),) |
Nirav Shah | cc1f1ae | 2016-04-26 11:41:29 +0530 | [diff] [blame] | 73 | CONFIG_FEATURE_DP_TRACE := y |
Chandrasekaran, Manishekar | b2d9fa1 | 2016-04-07 12:00:10 +0530 | [diff] [blame] | 74 | endif |
| 75 | endif |
| 76 | endif |
| 77 | |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 78 | #Flag to enable Legacy Fast Roaming2(LFR2) |
| 79 | CONFIG_QCACLD_WLAN_LFR2 := y |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 80 | #Flag to enable Legacy Fast Roaming3(LFR3) |
| 81 | CONFIG_QCACLD_WLAN_LFR3 := y |
| 82 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 83 | # JB kernel has CPU enablement patches, so enable |
| 84 | ifeq ($(CONFIG_ROME_IF),pci) |
| 85 | CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y |
| 86 | endif |
| 87 | ifeq ($(CONFIG_ROME_IF),usb) |
| 88 | CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n |
| 89 | endif |
| 90 | ifeq ($(CONFIG_ROME_IF),sdio) |
| 91 | CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n |
| 92 | endif |
| 93 | |
| 94 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 95 | #Flag to enable TDLS feature |
| 96 | CONFIG_QCOM_TDLS := y |
| 97 | endif |
| 98 | |
| 99 | ifeq ($(CONFIG_MOBILE_ROUTER), y) |
| 100 | CONFIG_QCACLD_FEATURE_GREEN_AP := y |
| 101 | endif |
Jeff Johnson | a630025 | 2016-09-28 15:58:55 -0700 | [diff] [blame] | 102 | ifeq ($(CONFIG_ARCH_MSMCOBALT), y) |
| 103 | CONFIG_QCACLD_FEATURE_GREEN_AP := y |
| 104 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 105 | |
| 106 | #Flag to enable Fast Transition (11r) feature |
| 107 | CONFIG_QCOM_VOWIFI_11R := y |
| 108 | |
| 109 | ifneq ($(CONFIG_QCA_CLD_WLAN),) |
Yue Ma | df224b8 | 2016-04-21 12:46:04 -0700 | [diff] [blame] | 110 | ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_ICNSS))) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 111 | #Flag to enable Protected Managment Frames (11w) feature |
| 112 | CONFIG_WLAN_FEATURE_11W := y |
| 113 | #Flag to enable LTE CoEx feature |
| 114 | CONFIG_QCOM_LTE_COEX := y |
| 115 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 116 | #Flag to enable LPSS feature |
| 117 | CONFIG_WLAN_FEATURE_LPSS := y |
| 118 | endif |
| 119 | endif |
| 120 | endif |
| 121 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 122 | #Flag to enable Protected Managment Frames (11w) feature |
| 123 | ifeq ($(CONFIG_ROME_IF),usb) |
| 124 | CONFIG_WLAN_FEATURE_11W := y |
| 125 | endif |
| 126 | ifeq ($(CONFIG_ROME_IF),sdio) |
| 127 | CONFIG_WLAN_FEATURE_11W := y |
| 128 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 129 | |
| 130 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 131 | #Flag to enable NAN |
| 132 | CONFIG_QCACLD_FEATURE_NAN := y |
| 133 | endif |
| 134 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 135 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 136 | #Flag to enable NAN Data path |
| 137 | CONFIG_WLAN_FEATURE_NAN_DATAPATH := y |
| 138 | endif |
| 139 | |
| 140 | #Flag to enable Linux QCMBR feature as default feature |
| 141 | ifeq ($(CONFIG_ROME_IF),usb) |
| 142 | CONFIG_LINUX_QCMBR :=y |
| 143 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 144 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 145 | CONFIG_MPC_UT_FRAMEWORK := y |
| 146 | |
| 147 | #Flag to enable offload packets feature |
| 148 | CONFIG_WLAN_OFFLOAD_PACKETS := y |
| 149 | |
Manikandan Mohan | 5356c2b | 2016-04-03 15:51:35 -0700 | [diff] [blame] | 150 | #enable TSF get feature |
| 151 | CONFIG_WLAN_SYNC_TSF := y |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 152 | #Enable DSRC feature |
| 153 | |
| 154 | ifeq ($(CONFIG_QCA_WIFI_SDIO), 1) |
| 155 | CONFIG_WLAN_FEATURE_DSRC := y |
| 156 | endif |
Manikandan Mohan | 5356c2b | 2016-04-03 15:51:35 -0700 | [diff] [blame] | 157 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 158 | ifneq ($(CONFIG_ROME_IF),sdio) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 159 | #Flag to enable memdump feature |
Krishna Kumaar Natarajan | e42bb17 | 2016-06-09 18:24:04 -0700 | [diff] [blame] | 160 | CONFIG_WLAN_FEATURE_MEMDUMP := n |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 161 | |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 162 | #Flag to enable DISA |
| 163 | CONFIG_WLAN_FEATURE_DISA := y |
| 164 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 165 | #Flag to enable Fast Path feature |
| 166 | CONFIG_WLAN_FASTPATH := y |
| 167 | |
| 168 | # Flag to enable NAPI |
| 169 | CONFIG_WLAN_NAPI := y |
| 170 | CONFIG_WLAN_NAPI_DEBUG := n |
| 171 | |
| 172 | # Flag to enable FW based TX Flow control |
Nirav Shah | 9d7f2e8 | 2015-09-28 11:09:09 -0700 | [diff] [blame] | 173 | ifeq ($(CONFIG_CNSS_EOS),y) |
| 174 | CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y |
| 175 | else |
| 176 | CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n |
| 177 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 178 | |
| 179 | # Flag to enable LRO (Large Receive Offload) |
Manjunathappa Prakash | beeacb1 | 2016-06-17 18:18:32 -0700 | [diff] [blame] | 180 | ifeq ($(CONFIG_INET_LRO), y) |
| 181 | CONFIG_WLAN_LRO := y |
| 182 | else |
| 183 | CONFIG_WLAN_LRO := n |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 184 | endif |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 185 | endif |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 186 | |
Manjunathappa Prakash | fa34599 | 2016-04-21 16:45:40 -0700 | [diff] [blame] | 187 | ifeq ($(CONFIG_ROME_IF), snoc) |
| 188 | CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y |
| 189 | endif |
| 190 | |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 191 | # Flag to enable LFR Subnet Detection |
| 192 | CONFIG_LFR_SUBNET_DETECTION := y |
Chandrasekaran Manishekar | 068e25e | 2016-03-07 11:51:07 +0530 | [diff] [blame] | 193 | |
| 194 | # Flag to enable MCC to SCC switch feature |
| 195 | CONFIG_MCC_TO_SCC_SWITCH := y |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 196 | endif |
| 197 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 198 | # If not set, assume, Common driver is with in the build tree |
| 199 | WLAN_COMMON_ROOT ?= qca-wifi-host-cmn |
| 200 | WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT) |
| 201 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 202 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 203 | CONFIG_QCOM_ESE := y |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 204 | endif |
| 205 | |
| 206 | # Feature flags which are not (currently) configurable via Kconfig |
| 207 | |
| 208 | #Whether to build debug version |
| 209 | BUILD_DEBUG_VERSION := 1 |
| 210 | |
| 211 | #Enable this flag to build driver in diag version |
| 212 | BUILD_DIAG_VERSION := 1 |
| 213 | |
| 214 | #Do we panic on bug? default is to warn |
| 215 | PANIC_ON_BUG := 1 |
| 216 | |
| 217 | #Enable OL debug and wmi unified functions |
| 218 | CONFIG_ATH_PERF_PWR_OFFLOAD := 1 |
| 219 | |
| 220 | #Disable packet log |
| 221 | CONFIG_REMOVE_PKT_LOG := 0 |
| 222 | |
| 223 | #Enable 11AC TX |
| 224 | ifeq ($(CONFIG_ROME_IF),pci) |
| 225 | CONFIG_ATH_11AC_TXCOMPACT := 1 |
| 226 | endif |
| 227 | ifeq ($(CONFIG_ROME_IF),usb) |
| 228 | CONFIG_ATH_11AC_TXCOMPACT := 0 |
| 229 | endif |
| 230 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 231 | #Enable OS specific IRQ abstraction |
| 232 | CONFIG_ATH_SUPPORT_SHARED_IRQ := 1 |
| 233 | |
| 234 | #Enable message based HIF instead of RAW access in BMI |
| 235 | ifeq ($(CONFIG_QCA_WIFI_SDIO), 1) |
| 236 | CONFIG_HIF_MESSAGE_BASED := 0 |
| 237 | else |
| 238 | CONFIG_HIF_MESSAGE_BASED := 1 |
| 239 | endif |
| 240 | |
| 241 | #Enable PCI specific APIS (dma, etc) |
| 242 | ifeq ($(CONFIG_ROME_IF),pci) |
| 243 | CONFIG_HIF_PCI := 1 |
| 244 | endif |
| 245 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 246 | #Enable USB specific APIS |
| 247 | ifeq ($(CONFIG_ROME_IF),usb) |
| 248 | CONFIG_HIF_USB := 1 |
Mohit Khanna | e7a4357 | 2016-10-10 17:34:21 -0700 | [diff] [blame] | 249 | CONFIG_PLD_USB_CNSS := y |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 250 | endif |
| 251 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 252 | #Enable pci read/write config functions |
| 253 | ifeq ($(CONFIG_ROME_IF),pci) |
| 254 | CONFIG_ATH_PCI := 1 |
| 255 | endif |
Houston Hoffman | 52ec669 | 2016-04-21 16:36:45 -0700 | [diff] [blame] | 256 | |
| 257 | ifeq ($(CONFIG_ROME_IF),snoc) |
| 258 | CONFIG_HIF_SNOC:= 1 |
| 259 | endif |
| 260 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 261 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 262 | #Enable IBSS support on CLD |
| 263 | CONFIG_QCA_IBSS_SUPPORT := 1 |
| 264 | endif |
| 265 | |
| 266 | #Enable power management suspend/resume functionality to PCI |
| 267 | CONFIG_ATH_BUS_PM := 1 |
| 268 | |
| 269 | #Enable FLOWMAC module support |
| 270 | CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := 0 |
| 271 | |
| 272 | #Enable spectral support |
| 273 | CONFIG_ATH_SUPPORT_SPECTRAL := 0 |
| 274 | |
| 275 | #Enable HOST statistics support |
| 276 | CONFIG_SUPPORT_HOST_STATISTICS := 0 |
| 277 | |
| 278 | #Enable WDI Event support |
| 279 | CONFIG_WDI_EVENT_ENABLE := 1 |
| 280 | |
| 281 | #Endianess selection |
| 282 | CONFIG_LITTLE_ENDIAN := 1 |
| 283 | |
| 284 | #Enable TX reclaim support |
| 285 | CONFIG_TX_CREDIT_RECLAIM_SUPPORT := 0 |
| 286 | |
| 287 | #Enable FTM support |
| 288 | CONFIG_QCA_WIFI_FTM := 1 |
| 289 | |
| 290 | #Enable Checksum Offload |
| 291 | CONFIG_CHECKSUM_OFFLOAD := 1 |
| 292 | |
| 293 | #Enable GTK offload |
| 294 | CONFIG_GTK_OFFLOAD := 1 |
| 295 | |
| 296 | #Enable EXT WOW |
| 297 | ifeq ($(CONFIG_ROME_IF),pci) |
| 298 | CONFIG_EXT_WOW := 1 |
| 299 | endif |
| 300 | |
Houston Hoffman | 1158c0a | 2016-07-11 18:24:36 -0700 | [diff] [blame] | 301 | # Flag to enable bus auto suspend |
| 302 | ifeq ($(CONFIG_ROME_IF),pci) |
| 303 | ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y) |
| 304 | CDEFINES += -DFEATURE_RUNTIME_PM |
| 305 | endif |
| 306 | endif |
| 307 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 308 | #Set this to 1 to catch erroneous Target accesses during debug. |
| 309 | CONFIG_ATH_PCIE_ACCESS_DEBUG := 0 |
| 310 | |
| 311 | #Enable IPA offload |
| 312 | ifeq ($(CONFIG_IPA), y) |
| 313 | CONFIG_IPA_OFFLOAD := 1 |
| 314 | endif |
| 315 | |
| 316 | #Enable Signed firmware support for split binary format |
| 317 | CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := 0 |
| 318 | |
| 319 | #Enable single firmware binary format |
| 320 | CONFIG_QCA_SINGLE_BINARY_SUPPORT := 0 |
| 321 | |
| 322 | #Enable collecting target RAM dump after kernel panic |
| 323 | CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := 1 |
| 324 | |
| 325 | #Flag to enable/disable secure firmware feature |
| 326 | CONFIG_FEATURE_SECURE_FIRMWARE := 0 |
| 327 | |
| 328 | #Flag to enable Stats Ext implementation |
| 329 | CONFIG_FEATURE_STATS_EXT := 1 |
| 330 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 331 | ifeq ($(CONFIG_CFG80211),y) |
| 332 | HAVE_CFG80211 := 1 |
| 333 | else |
| 334 | ifeq ($(CONFIG_CFG80211),m) |
| 335 | HAVE_CFG80211 := 1 |
| 336 | else |
| 337 | HAVE_CFG80211 := 0 |
| 338 | endif |
| 339 | endif |
| 340 | |
| 341 | ############ UAPI ############ |
| 342 | UAPI_DIR := uapi |
| 343 | UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux |
| 344 | |
| 345 | ############ COMMON ############ |
| 346 | COMMON_DIR := core/common |
| 347 | COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR) |
| 348 | |
| 349 | ############ HDD ############ |
| 350 | HDD_DIR := core/hdd |
| 351 | HDD_INC_DIR := $(HDD_DIR)/inc |
| 352 | HDD_SRC_DIR := $(HDD_DIR)/src |
| 353 | |
| 354 | HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \ |
| 355 | -I$(WLAN_ROOT)/$(HDD_SRC_DIR) |
| 356 | |
| 357 | HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \ |
| 358 | $(HDD_SRC_DIR)/wlan_hdd_cfg.o \ |
| 359 | $(HDD_SRC_DIR)/wlan_hdd_debugfs.o \ |
| 360 | $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \ |
| 361 | $(HDD_SRC_DIR)/wlan_hdd_ftm.o \ |
| 362 | $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \ |
| 363 | $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \ |
| 364 | $(HDD_SRC_DIR)/wlan_hdd_main.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 365 | $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \ |
| 366 | $(HDD_SRC_DIR)/wlan_hdd_power.o \ |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 367 | $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 368 | $(HDD_SRC_DIR)/wlan_hdd_scan.o \ |
| 369 | $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \ |
| 370 | $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \ |
| 371 | $(HDD_SRC_DIR)/wlan_hdd_trace.o \ |
| 372 | $(HDD_SRC_DIR)/wlan_hdd_wext.o \ |
| 373 | $(HDD_SRC_DIR)/wlan_hdd_wmm.o \ |
| 374 | $(HDD_SRC_DIR)/wlan_hdd_wowl.o |
| 375 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 376 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 377 | HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o |
| 378 | endif |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 379 | |
Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 380 | ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y) |
| 381 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o |
| 382 | endif |
| 383 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 384 | ifeq ($(CONFIG_WLAN_LRO), y) |
| 385 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o |
| 386 | endif |
| 387 | |
| 388 | ifeq ($(CONFIG_WLAN_NAPI), y) |
| 389 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o |
| 390 | endif |
| 391 | |
| 392 | ifeq ($(CONFIG_IPA_OFFLOAD), 1) |
| 393 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o |
| 394 | endif |
| 395 | |
| 396 | ifeq ($(HAVE_CFG80211),1) |
| 397 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \ |
| 398 | $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \ |
| 399 | $(HDD_SRC_DIR)/wlan_hdd_stats.o \ |
| 400 | $(HDD_SRC_DIR)/wlan_hdd_p2p.o |
| 401 | endif |
| 402 | |
| 403 | ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y) |
| 404 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_green_ap.o |
| 405 | endif |
| 406 | |
| 407 | ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y) |
| 408 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o |
| 409 | endif |
| 410 | |
| 411 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 412 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o |
| 413 | endif |
| 414 | |
Manikandan Mohan | dcc21ba | 2016-03-15 14:31:56 -0700 | [diff] [blame] | 415 | ifeq ($(CONFIG_WLAN_SYNC_TSF),y) |
| 416 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o |
| 417 | endif |
| 418 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 419 | ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y) |
| 420 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o |
| 421 | endif |
| 422 | |
| 423 | ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y) |
| 424 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_memdump.o |
| 425 | endif |
| 426 | |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 427 | ifeq ($(CONFIG_WLAN_FEATURE_DISA),y) |
| 428 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o |
| 429 | endif |
| 430 | |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 431 | ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y) |
| 432 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o |
| 433 | endif |
| 434 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 435 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 436 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o |
| 437 | endif |
| 438 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 439 | ########### HOST DIAG LOG ########### |
| 440 | HOST_DIAG_LOG_DIR := core/utils/host_diag_log |
| 441 | |
| 442 | HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc |
| 443 | HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src |
| 444 | |
| 445 | HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \ |
| 446 | -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR) |
| 447 | |
| 448 | HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o |
| 449 | |
| 450 | ############ EPPING ############ |
| 451 | EPPING_DIR := core/utils/epping |
| 452 | EPPING_INC_DIR := $(EPPING_DIR)/inc |
| 453 | EPPING_SRC_DIR := $(EPPING_DIR)/src |
| 454 | |
| 455 | EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR) |
| 456 | |
| 457 | EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \ |
| 458 | $(EPPING_SRC_DIR)/epping_txrx.o \ |
| 459 | $(EPPING_SRC_DIR)/epping_tx.o \ |
| 460 | $(EPPING_SRC_DIR)/epping_rx.o \ |
| 461 | $(EPPING_SRC_DIR)/epping_helper.o \ |
| 462 | |
| 463 | |
| 464 | ############ MAC ############ |
| 465 | MAC_DIR := core/mac |
| 466 | MAC_INC_DIR := $(MAC_DIR)/inc |
| 467 | MAC_SRC_DIR := $(MAC_DIR)/src |
| 468 | |
| 469 | MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \ |
| 470 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \ |
| 471 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \ |
| 472 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 473 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \ |
| 474 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 475 | |
| 476 | MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \ |
| 477 | $(MAC_SRC_DIR)/cfg/cfg_debug.o \ |
| 478 | $(MAC_SRC_DIR)/cfg/cfg_param_name.o \ |
| 479 | $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \ |
| 480 | $(MAC_SRC_DIR)/cfg/cfg_send_msg.o |
| 481 | |
| 482 | MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o |
| 483 | |
| 484 | MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \ |
| 485 | $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \ |
| 486 | $(MAC_SRC_DIR)/pe/lim/lim_api.o \ |
| 487 | $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \ |
| 488 | $(MAC_SRC_DIR)/pe/lim/lim_debug.o \ |
| 489 | $(MAC_SRC_DIR)/pe/lim/lim_ft.o \ |
| 490 | $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \ |
| 491 | $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \ |
| 492 | $(MAC_SRC_DIR)/pe/lim/lim_p2p.o \ |
| 493 | $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \ |
| 494 | $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \ |
| 495 | $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \ |
| 496 | $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \ |
| 497 | $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \ |
| 498 | $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \ |
| 499 | $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \ |
| 500 | $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \ |
| 501 | $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \ |
| 502 | $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \ |
| 503 | $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \ |
| 504 | $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \ |
| 505 | $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \ |
| 506 | $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \ |
| 507 | $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \ |
| 508 | $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \ |
| 509 | $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \ |
| 510 | $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \ |
| 511 | $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \ |
| 512 | $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \ |
| 513 | $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \ |
| 514 | $(MAC_SRC_DIR)/pe/lim/lim_session.o \ |
| 515 | $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \ |
| 516 | $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \ |
| 517 | $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \ |
| 518 | $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \ |
| 519 | $(MAC_SRC_DIR)/pe/lim/lim_trace.o \ |
| 520 | $(MAC_SRC_DIR)/pe/lim/lim_utils.o |
| 521 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 522 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 523 | MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o |
| 524 | endif |
| 525 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 526 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 527 | MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o |
| 528 | endif |
| 529 | |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 530 | ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y) |
| 531 | MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \ |
| 532 | $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \ |
| 533 | $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \ |
| 534 | $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \ |
| 535 | $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o |
| 536 | endif |
| 537 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 538 | MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \ |
| 539 | $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \ |
| 540 | $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \ |
| 541 | $(MAC_SRC_DIR)/pe/sch/sch_debug.o \ |
| 542 | $(MAC_SRC_DIR)/pe/sch/sch_message.o |
| 543 | |
| 544 | MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o |
| 545 | |
| 546 | MAC_OBJS := $(MAC_CFG_OBJS) \ |
| 547 | $(MAC_DPH_OBJS) \ |
| 548 | $(MAC_LIM_OBJS) \ |
| 549 | $(MAC_SCH_OBJS) \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 550 | $(MAC_RRM_OBJS) \ |
| 551 | $(MAC_NDP_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 552 | |
| 553 | ############ SAP ############ |
| 554 | SAP_DIR := core/sap |
| 555 | SAP_INC_DIR := $(SAP_DIR)/inc |
| 556 | SAP_SRC_DIR := $(SAP_DIR)/src |
| 557 | |
| 558 | SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \ |
| 559 | -I$(WLAN_ROOT)/$(SAP_SRC_DIR) |
| 560 | |
| 561 | SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \ |
| 562 | $(SAP_SRC_DIR)/sap_ch_select.o \ |
| 563 | $(SAP_SRC_DIR)/sap_fsm.o \ |
| 564 | $(SAP_SRC_DIR)/sap_module.o |
| 565 | |
| 566 | ############ DFS ############ 350 |
| 567 | DFS_DIR := $(SAP_DIR)/dfs |
| 568 | DFS_INC_DIR := $(DFS_DIR)/inc |
| 569 | DFS_SRC_DIR := $(DFS_DIR)/src |
| 570 | |
| 571 | DFS_INC := -I$(WLAN_ROOT)/$(DFS_INC_DIR) \ |
| 572 | -I$(WLAN_ROOT)/$(DFS_SRC_DIR) |
| 573 | |
| 574 | DFS_OBJS := $(DFS_SRC_DIR)/dfs_bindetects.o \ |
| 575 | $(DFS_SRC_DIR)/dfs.o \ |
| 576 | $(DFS_SRC_DIR)/dfs_debug.o\ |
| 577 | $(DFS_SRC_DIR)/dfs_fcc_bin5.o\ |
| 578 | $(DFS_SRC_DIR)/dfs_init.o\ |
| 579 | $(DFS_SRC_DIR)/dfs_misc.o\ |
| 580 | $(DFS_SRC_DIR)/dfs_nol.o\ |
| 581 | $(DFS_SRC_DIR)/dfs_phyerr_tlv.o\ |
| 582 | $(DFS_SRC_DIR)/dfs_process_phyerr.o\ |
| 583 | $(DFS_SRC_DIR)/dfs_process_radarevent.o\ |
| 584 | $(DFS_SRC_DIR)/dfs_staggered.o |
| 585 | |
| 586 | ############ SME ############ |
| 587 | SME_DIR := core/sme |
| 588 | SME_INC_DIR := $(SME_DIR)/inc |
| 589 | SME_SRC_DIR := $(SME_DIR)/src |
| 590 | |
| 591 | SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \ |
| 592 | -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr |
| 593 | |
| 594 | SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \ |
| 595 | $(SME_SRC_DIR)/csr/csr_api_scan.o \ |
| 596 | $(SME_SRC_DIR)/csr/csr_cmd_process.o \ |
| 597 | $(SME_SRC_DIR)/csr/csr_link_list.o \ |
| 598 | $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \ |
Varun Reddy Yeturu | 86459d6 | 2016-02-22 10:07:02 -0800 | [diff] [blame] | 599 | $(SME_SRC_DIR)/csr/csr_util.o \ |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 600 | |
| 601 | |
| 602 | ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y) |
| 603 | SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \ |
Varun Reddy Yeturu | 86459d6 | 2016-02-22 10:07:02 -0800 | [diff] [blame] | 604 | $(SME_SRC_DIR)/csr/csr_host_scan_roam.o |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 605 | endif |
| 606 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 607 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 608 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 609 | SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_tdls_process.o |
| 610 | endif |
| 611 | |
| 612 | SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o |
| 613 | |
| 614 | SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \ |
| 615 | $(SME_SRC_DIR)/common/sme_ft_api.o \ |
| 616 | $(SME_SRC_DIR)/common/sme_power_save.o \ |
| 617 | $(SME_SRC_DIR)/common/sme_trace.o |
| 618 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 619 | SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_api.o |
| 620 | |
| 621 | SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o |
| 622 | |
| 623 | ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y) |
| 624 | SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o |
| 625 | endif |
| 626 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 627 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 628 | SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o |
| 629 | endif |
| 630 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 631 | SME_OBJS := $(SME_CMN_OBJS) \ |
| 632 | $(SME_CSR_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 633 | $(SME_P2P_OBJS) \ |
| 634 | $(SME_QOS_OBJS) \ |
| 635 | $(SME_RRM_OBJS) \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 636 | $(SME_NAN_OBJS) \ |
| 637 | $(SME_NDP_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 638 | |
| 639 | ############ NLINK ############ |
| 640 | NLINK_DIR := core/utils/nlink |
| 641 | NLINK_INC_DIR := $(NLINK_DIR)/inc |
| 642 | NLINK_SRC_DIR := $(NLINK_DIR)/src |
| 643 | |
| 644 | NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR) |
| 645 | NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o |
| 646 | |
| 647 | ############ PTT ############ |
| 648 | PTT_DIR := core/utils/ptt |
| 649 | PTT_INC_DIR := $(PTT_DIR)/inc |
| 650 | PTT_SRC_DIR := $(PTT_DIR)/src |
| 651 | |
| 652 | PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR) |
| 653 | PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o |
| 654 | |
| 655 | ############ WLAN_LOGGING ############ |
| 656 | WLAN_LOGGING_DIR := core/utils/logging |
| 657 | WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc |
| 658 | WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src |
| 659 | |
| 660 | WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR) |
| 661 | WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o |
| 662 | |
| 663 | ############ SYS ############ |
| 664 | SYS_DIR := core/mac/src/sys |
| 665 | |
| 666 | SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \ |
| 667 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \ |
| 668 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \ |
| 669 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc |
| 670 | |
| 671 | SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src |
| 672 | SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src |
| 673 | SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \ |
| 674 | $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \ |
| 675 | $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \ |
| 676 | $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \ |
| 677 | $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \ |
| 678 | $(SYS_LEGACY_SRC_DIR)/utils/src/log_api.o \ |
| 679 | $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \ |
| 680 | $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \ |
| 681 | $(SYS_LEGACY_SRC_DIR)/utils/src/utils_api.o \ |
| 682 | $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o |
| 683 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 684 | ############ Qca-wifi-host-cmn ############ |
| 685 | QDF_OS_DIR := qdf |
| 686 | QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc |
| 687 | QDF_OS_SRC_DIR := $(QDF_OS_DIR)/linux/src |
| 688 | QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 689 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 690 | QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \ |
| 691 | -I$(WLAN_COMMON_INC)/$(QDF_OS_SRC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 692 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 693 | QDF_OBJS := $(QDF_OBJ_DIR)/qdf_defer.o \ |
| 694 | $(QDF_OBJ_DIR)/qdf_event.o \ |
| 695 | $(QDF_OBJ_DIR)/qdf_list.o \ |
| 696 | $(QDF_OBJ_DIR)/qdf_lock.o \ |
| 697 | $(QDF_OBJ_DIR)/qdf_mc_timer.o \ |
| 698 | $(QDF_OBJ_DIR)/qdf_mem.o \ |
| 699 | $(QDF_OBJ_DIR)/qdf_nbuf.o \ |
| 700 | $(QDF_OBJ_DIR)/qdf_threads.o \ |
| 701 | $(QDF_OBJ_DIR)/qdf_trace.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 702 | |
| 703 | ############ CDS (Connectivity driver services) ############ |
| 704 | CDS_DIR := core/cds |
| 705 | CDS_INC_DIR := $(CDS_DIR)/inc |
| 706 | CDS_SRC_DIR := $(CDS_DIR)/src |
| 707 | |
| 708 | CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \ |
| 709 | -I$(WLAN_ROOT)/$(CDS_SRC_DIR) |
| 710 | |
| 711 | CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 712 | $(CDS_SRC_DIR)/cds_reg_service.o \ |
| 713 | $(CDS_SRC_DIR)/cds_mq.o \ |
| 714 | $(CDS_SRC_DIR)/cds_packet.o \ |
| 715 | $(CDS_SRC_DIR)/cds_regdomain.o \ |
| 716 | $(CDS_SRC_DIR)/cds_sched.o \ |
| 717 | $(CDS_SRC_DIR)/cds_concurrency.o \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 718 | $(CDS_SRC_DIR)/cds_utils.o \ |
| 719 | $(CDS_SRC_DIR)/cds_mc_timer.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 720 | |
| 721 | |
| 722 | ########### BMI ########### |
| 723 | BMI_DIR := core/bmi |
| 724 | |
| 725 | BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc |
| 726 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 727 | BMI_OBJS := $(BMI_DIR)/src/bmi.o \ |
Poddar, Siddarth | ef1f302 | 2016-05-10 20:10:43 +0530 | [diff] [blame] | 728 | $(BMI_DIR)/src/ol_fw.o \ |
| 729 | $(BMI_DIR)/src/ol_fw_common.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 730 | BMI_OBJS += $(BMI_DIR)/src/bmi_1.o |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 731 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 732 | ########### WMI ########### |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 733 | WMI_ROOT_DIR := wmi |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 734 | |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 735 | WMI_SRC_DIR := $(WMI_ROOT_DIR)/src |
| 736 | WMI_INC_DIR := $(WMI_ROOT_DIR)/inc |
| 737 | WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 738 | |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 739 | WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR) |
| 740 | |
| 741 | WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \ |
| 742 | $(WMI_OBJ_DIR)/wmi_tlv_helper.o \ |
| 743 | $(WMI_OBJ_DIR)/wmi_unified_tlv.o \ |
| 744 | $(WMI_OBJ_DIR)/wmi_unified_api.o \ |
| 745 | $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 746 | |
| 747 | ########### FWLOG ########### |
| 748 | FWLOG_DIR := core/utils/fwlog |
| 749 | |
| 750 | FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR) |
| 751 | |
| 752 | FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o |
| 753 | |
| 754 | ############ TXRX ############ |
| 755 | TXRX_DIR := core/dp/txrx |
| 756 | TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR) |
| 757 | |
| 758 | TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \ |
| 759 | $(TXRX_DIR)/ol_cfg.o \ |
| 760 | $(TXRX_DIR)/ol_rx.o \ |
| 761 | $(TXRX_DIR)/ol_rx_fwd.o \ |
| 762 | $(TXRX_DIR)/ol_txrx.o \ |
| 763 | $(TXRX_DIR)/ol_rx_defrag.o \ |
| 764 | $(TXRX_DIR)/ol_tx_desc.o \ |
| 765 | $(TXRX_DIR)/ol_tx.o \ |
| 766 | $(TXRX_DIR)/ol_rx_reorder_timeout.o \ |
| 767 | $(TXRX_DIR)/ol_rx_reorder.o \ |
| 768 | $(TXRX_DIR)/ol_rx_pn.o \ |
| 769 | $(TXRX_DIR)/ol_tx_queue.o \ |
| 770 | $(TXRX_DIR)/ol_txrx_peer_find.o \ |
| 771 | $(TXRX_DIR)/ol_txrx_event.o \ |
| 772 | $(TXRX_DIR)/ol_txrx_encap.o \ |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 773 | $(TXRX_DIR)/ol_tx_send.o \ |
| 774 | $(TXRX_DIR)/ol_tx_sched.o \ |
| 775 | $(TXRX_DIR)/ol_tx_classify.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 776 | |
| 777 | ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y) |
| 778 | TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o |
| 779 | endif |
| 780 | |
| 781 | ############ OL ############ |
| 782 | OL_DIR := core/dp/ol |
| 783 | OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc |
| 784 | |
Dhanashri Atre | 12a0839 | 2016-02-17 13:10:34 -0800 | [diff] [blame] | 785 | ############ CDP ############ |
| 786 | CDP_ROOT_DIR := dp |
| 787 | CDP_INC_DIR := $(CDP_ROOT_DIR)/inc |
| 788 | CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR) |
| 789 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 790 | ############ PKTLOG ############ |
| 791 | PKTLOG_DIR := core/utils/pktlog |
| 792 | PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include |
| 793 | |
| 794 | PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \ |
| 795 | $(PKTLOG_DIR)/pktlog_internal.o \ |
| 796 | $(PKTLOG_DIR)/linux_ac.o |
| 797 | |
| 798 | ############ HTT ############ |
| 799 | HTT_DIR := core/dp/htt |
| 800 | HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR) |
| 801 | |
| 802 | HTT_OBJS := $(HTT_DIR)/htt_tx.o \ |
| 803 | $(HTT_DIR)/htt.o \ |
| 804 | $(HTT_DIR)/htt_t2h.o \ |
| 805 | $(HTT_DIR)/htt_h2t.o \ |
| 806 | $(HTT_DIR)/htt_fw_stats.o \ |
| 807 | $(HTT_DIR)/htt_rx.o |
| 808 | |
| 809 | ############## HTC ########## |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 810 | HTC_DIR := htc |
| 811 | HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 812 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 813 | HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \ |
| 814 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \ |
| 815 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \ |
| 816 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 817 | |
| 818 | ########### HIF ########### |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 819 | HIF_DIR := hif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 820 | HIF_CE_DIR := $(HIF_DIR)/src/ce |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 821 | |
| 822 | HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher |
| 823 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 824 | HIF_PCIE_DIR := $(HIF_DIR)/src/pcie |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 825 | HIF_SNOC_DIR := $(HIF_DIR)/src/snoc |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 826 | HIF_USB_DIR := $(HIF_DIR)/src/usb |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 827 | HIF_SDIO_DIR := $(HIF_DIR)/src/sdio |
| 828 | |
| 829 | HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio |
| 830 | HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include |
| 831 | HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 832 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 833 | HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \ |
| 834 | -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src \ |
Yuanyuan Liu | 9135361 | 2016-05-04 12:02:00 -0700 | [diff] [blame] | 835 | -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 836 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 837 | ifeq ($(CONFIG_HIF_PCI), 1) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 838 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 839 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 840 | endif |
| 841 | |
| 842 | ifeq ($(CONFIG_HIF_SNOC), 1) |
| 843 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 844 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 845 | endif |
| 846 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 847 | ifeq ($(CONFIG_HIF_USB), 1) |
| 848 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
| 849 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR) |
| 850 | endif |
| 851 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 852 | ifeq ($(CONFIG_HIF_SDIO), 1) |
| 853 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
| 854 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR) |
| 855 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR) |
| 856 | endif |
| 857 | |
| 858 | HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \ |
| 859 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \ |
| 860 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o |
| 861 | |
| 862 | HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o \ |
| 863 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \ |
| 864 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \ |
| 865 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \ |
| 866 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \ |
| 867 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o |
| 868 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 869 | HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \ |
| 870 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \ |
| 871 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \ |
| 872 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o |
| 873 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 874 | HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_send.o \ |
| 875 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o \ |
| 876 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \ |
| 877 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \ |
| 878 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \ |
| 879 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_recv.o \ |
| 880 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o |
| 881 | |
| 882 | HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \ |
| 883 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 884 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 885 | ifeq ($(CONFIG_WLAN_NAPI), y) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 886 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 887 | endif |
| 888 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 889 | HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 890 | HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 891 | HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 892 | |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 893 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o |
Houston Hoffman | b61b9b1 | 2016-03-03 20:04:16 -0800 | [diff] [blame] | 894 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 895 | |
| 896 | ifeq ($(CONFIG_HIF_PCI), 1) |
| 897 | HIF_OBJS += $(HIF_PCIE_OBJS) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 898 | HIF_OBJS += $(HIF_COMMON_OBJS) |
| 899 | HIF_OBJS += $(HIF_CE_OBJS) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 900 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o |
| 901 | endif |
| 902 | |
| 903 | ifeq ($(CONFIG_HIF_SNOC), 1) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 904 | HIF_OBJS += $(HIF_SNOC_OBJS) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 905 | HIF_OBJS += $(HIF_COMMON_OBJS) |
| 906 | HIF_OBJS += $(HIF_CE_OBJS) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 907 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 908 | endif |
| 909 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 910 | ifeq ($(CONFIG_HIF_SDIO), 1) |
| 911 | HIF_OBJS += $(HIF_SDIO_OBJS) |
| 912 | HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS) |
| 913 | HIF_OBJS += $(HIF_COMMON_OBJS) |
| 914 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o |
| 915 | endif |
| 916 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 917 | ifeq ($(CONFIG_HIF_USB), 1) |
| 918 | HIF_OBJS += $(HIF_USB_OBJS) |
| 919 | HIF_OBJS += $(HIF_COMMON_OBJS) |
| 920 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o |
| 921 | endif |
| 922 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 923 | ############ WMA ############ |
| 924 | WMA_DIR := core/wma |
| 925 | |
| 926 | WMA_INC_DIR := $(WMA_DIR)/inc |
| 927 | WMA_SRC_DIR := $(WMA_DIR)/src |
| 928 | |
| 929 | WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \ |
| 930 | -I$(WLAN_ROOT)/$(WMA_SRC_DIR) |
| 931 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 932 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 933 | WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o |
| 934 | endif |
| 935 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 936 | WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \ |
| 937 | $(WMA_SRC_DIR)/wma_scan_roam.o \ |
| 938 | $(WMA_SRC_DIR)/wma_dev_if.o \ |
| 939 | $(WMA_SRC_DIR)/wma_mgmt.o \ |
| 940 | $(WMA_SRC_DIR)/wma_power.o \ |
| 941 | $(WMA_SRC_DIR)/wma_data.o \ |
| 942 | $(WMA_SRC_DIR)/wma_utils.o \ |
| 943 | $(WMA_SRC_DIR)/wma_features.o \ |
| 944 | $(WMA_SRC_DIR)/wma_dfs_interface.o \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 945 | $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\ |
| 946 | $(WMA_NDP_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 947 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 948 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 949 | WMA_OBJS+= $(WMA_DIR)/wma_ocb.o |
| 950 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 951 | ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y) |
| 952 | WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o |
| 953 | endif |
| 954 | |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 955 | ############## PLD ########## |
| 956 | PLD_DIR := core/pld |
| 957 | PLD_INC_DIR := $(PLD_DIR)/inc |
| 958 | PLD_SRC_DIR := $(PLD_DIR)/src |
| 959 | |
| 960 | PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \ |
| 961 | -I$(WLAN_ROOT)/$(PLD_SRC_DIR) |
| 962 | |
| 963 | PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o |
| 964 | |
| 965 | ifeq ($(CONFIG_PCI), y) |
| 966 | PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o |
| 967 | endif |
| 968 | ifeq ($(CONFIG_ICNSS),y) |
| 969 | PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o |
| 970 | endif |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 971 | ifeq ($(CONFIG_CNSS_SDIO),y) |
| 972 | PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o |
| 973 | endif |
Mohit Khanna | e7a4357 | 2016-10-10 17:34:21 -0700 | [diff] [blame] | 974 | ifeq ($(CONFIG_PLD_USB_CNSS), y) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 975 | PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o |
| 976 | endif |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 977 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 978 | TARGET_INC := -I$(WLAN_ROOT)/target/inc |
| 979 | |
| 980 | LINUX_INC := -Iinclude/linux |
| 981 | |
| 982 | INCS := $(HDD_INC) \ |
| 983 | $(EPPING_INC) \ |
| 984 | $(LINUX_INC) \ |
| 985 | $(MAC_INC) \ |
| 986 | $(SAP_INC) \ |
| 987 | $(SME_INC) \ |
| 988 | $(SYS_INC) \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 989 | $(QDF_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 990 | $(CDS_INC) \ |
| 991 | $(DFS_INC) |
| 992 | |
| 993 | INCS += $(WMA_INC) \ |
| 994 | $(UAPI_INC) \ |
| 995 | $(COMMON_INC) \ |
| 996 | $(WMI_INC) \ |
| 997 | $(FWLOG_INC) \ |
| 998 | $(TXRX_INC) \ |
| 999 | $(OL_INC) \ |
Dhanashri Atre | 12a0839 | 2016-02-17 13:10:34 -0800 | [diff] [blame] | 1000 | $(CDP_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1001 | $(PKTLOG_INC) \ |
| 1002 | $(HTT_INC) \ |
| 1003 | $(HTC_INC) \ |
| 1004 | $(DFS_INC) |
| 1005 | |
| 1006 | INCS += $(HIF_INC) \ |
| 1007 | $(BMI_INC) |
| 1008 | |
| 1009 | INCS += $(TARGET_INC) |
| 1010 | |
| 1011 | INCS += $(NLINK_INC) \ |
| 1012 | $(PTT_INC) \ |
| 1013 | $(WLAN_LOGGING_INC) |
| 1014 | |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1015 | INCS += $(PLD_INC) |
| 1016 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1017 | ifeq ($(CONFIG_REMOVE_PKT_LOG), 0) |
| 1018 | INCS += $(PKTLOG_INC) |
| 1019 | endif |
| 1020 | |
| 1021 | ifeq ($(BUILD_DIAG_VERSION), 1) |
| 1022 | INCS += $(HOST_DIAG_LOG_INC) |
| 1023 | endif |
| 1024 | |
| 1025 | OBJS := $(HDD_OBJS) \ |
| 1026 | $(EPPING_OBJS) \ |
| 1027 | $(MAC_OBJS) \ |
| 1028 | $(SAP_OBJS) \ |
| 1029 | $(SME_OBJS) \ |
| 1030 | $(SYS_OBJS) \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1031 | $(QDF_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1032 | $(CDS_OBJS) \ |
| 1033 | $(DFS_OBJS) |
| 1034 | |
| 1035 | OBJS += $(WMA_OBJS) \ |
| 1036 | $(TXRX_OBJS) \ |
| 1037 | $(WMI_OBJS) \ |
| 1038 | $(FWLOG_OBJS) \ |
| 1039 | $(HTC_OBJS) \ |
| 1040 | $(DFS_OBJS) |
| 1041 | |
| 1042 | OBJS += $(HIF_OBJS) \ |
| 1043 | $(BMI_OBJS) \ |
| 1044 | $(HTT_OBJS) |
| 1045 | |
| 1046 | OBJS += $(WLAN_LOGGING_OBJS) |
| 1047 | OBJS += $(NLINK_OBJS) |
| 1048 | OBJS += $(PTT_OBJS) |
| 1049 | |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1050 | OBJS += $(PLD_OBJS) |
| 1051 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1052 | ifeq ($(CONFIG_REMOVE_PKT_LOG), 0) |
| 1053 | OBJS += $(PKTLOG_OBJS) |
| 1054 | endif |
| 1055 | |
| 1056 | ifeq ($(BUILD_DIAG_VERSION), 1) |
| 1057 | OBJS += $(HOST_DIAG_LOG_OBJS) |
| 1058 | endif |
| 1059 | |
| 1060 | |
| 1061 | EXTRA_CFLAGS += $(INCS) |
| 1062 | |
| 1063 | CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \ |
| 1064 | -DANI_LITTLE_BIT_ENDIAN \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1065 | -DDOT11F_LITTLE_ENDIAN_HOST \ |
| 1066 | -DANI_COMPILER_TYPE_GCC \ |
| 1067 | -DANI_OS_TYPE_ANDROID=6 \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1068 | -DPTT_SOCK_SVC_ENABLE \ |
| 1069 | -Wall\ |
| 1070 | -Werror\ |
| 1071 | -D__linux__ \ |
| 1072 | -DHAL_SELF_STA_PER_BSS=1 \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1073 | -DFEATURE_WLAN_WAPI \ |
| 1074 | -DFEATURE_OEM_DATA_SUPPORT\ |
| 1075 | -DSOFTAP_CHANNEL_RANGE \ |
| 1076 | -DWLAN_AP_STA_CONCURRENCY \ |
| 1077 | -DFEATURE_WLAN_SCAN_PNO \ |
| 1078 | -DWLAN_FEATURE_PACKET_FILTERING \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1079 | -DWLAN_FEATURE_P2P_DEBUG \ |
| 1080 | -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \ |
| 1081 | -DWLANTL_DEBUG\ |
| 1082 | -DWLAN_NS_OFFLOAD \ |
| 1083 | -DWLAN_SOFTAP_VSTA_FEATURE \ |
| 1084 | -DWLAN_FEATURE_GTK_OFFLOAD \ |
| 1085 | -DWLAN_WAKEUP_EVENTS \ |
| 1086 | -DFEATURE_WLAN_RA_FILTERING\ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1087 | -DWLAN_NL80211_TESTMODE \ |
| 1088 | -DFEATURE_WLAN_LPHB \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1089 | -DQCA_SUPPORT_TX_THROTTLE \ |
| 1090 | -DWMI_INTERFACE_EVENT_LOGGING \ |
| 1091 | -DATH_SUPPORT_WAPI \ |
| 1092 | -DWLAN_FEATURE_LINK_LAYER_STATS \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1093 | -DFEATURE_WLAN_EXTSCAN \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1094 | -DWLAN_FEATURE_MBSSID \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1095 | -DCONFIG_160MHZ_SUPPORT \ |
| 1096 | -DCONFIG_MCL |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1097 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1098 | ifneq ($(CONFIG_HIF_USB), 1) |
| 1099 | CDEFINES += -DWLAN_LOGGING_SOCK_SVC_ENABLE |
| 1100 | endif |
| 1101 | |
Yuanyuan Liu | 11f526a | 2016-05-18 10:22:07 -0700 | [diff] [blame] | 1102 | ifeq ($(CONFIG_CNSS), y) |
| 1103 | ifeq ($(CONFIG_CNSS_SDIO), y) |
| 1104 | CDEFINES += -DCONFIG_PLD_SDIO_CNSS |
| 1105 | else |
| 1106 | CDEFINES += -DCONFIG_PLD_PCIE_CNSS |
| 1107 | endif |
| 1108 | endif |
| 1109 | |
| 1110 | ifeq ($(CONFIG_ICNSS), y) |
| 1111 | CDEFINES += -DCONFIG_PLD_SNOC_ICNSS |
| 1112 | endif |
| 1113 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1114 | ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS))) |
| 1115 | CDEFINES += -DQCA_WIFI_3_0 |
| 1116 | CDEFINES += -DQCA_WIFI_3_0_EMU |
| 1117 | endif |
| 1118 | |
| 1119 | ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS))) |
| 1120 | CDEFINES += -DQCA_WIFI_3_0_ADRASTEA |
| 1121 | CDEFINES += -DADRASTEA_SHADOW_REGISTERS |
Sanjay Devnani | cdab59e | 2015-11-12 14:43:58 -0800 | [diff] [blame] | 1122 | CDEFINES += -DADRASTEA_RRI_ON_DDR |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1123 | endif |
| 1124 | |
| 1125 | ifeq ($(CONFIG_WLAN_FASTPATH), y) |
| 1126 | CDEFINES += -DWLAN_FEATURE_FASTPATH |
| 1127 | endif |
| 1128 | |
Poddar, Siddarth | eefe348 | 2016-09-21 18:12:59 +0530 | [diff] [blame] | 1129 | ifeq ($(CONFIG_FEATURE_PKTLOG), y) |
| 1130 | CDEFINES += -DFEATURE_PKTLOG |
| 1131 | endif |
| 1132 | |
Nirav Shah | cc1f1ae | 2016-04-26 11:41:29 +0530 | [diff] [blame] | 1133 | ifeq ($(CONFIG_FEATURE_DP_TRACE), y) |
| 1134 | CDEFINES += -DFEATURE_DP_TRACE |
| 1135 | endif |
| 1136 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1137 | ifeq ($(CONFIG_WLAN_NAPI), y) |
| 1138 | CDEFINES += -DFEATURE_NAPI |
| 1139 | ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y) |
| 1140 | CDEFINES += -DFEATURE_NAPI_DEBUG |
| 1141 | endif |
| 1142 | endif |
| 1143 | |
Yue Ma | df224b8 | 2016-04-21 12:46:04 -0700 | [diff] [blame] | 1144 | ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM))) |
Yuanyuan Liu | 5af4436 | 2016-04-01 21:57:06 -0700 | [diff] [blame] | 1145 | CDEFINES += -DMSM_PLATFORM |
| 1146 | endif |
| 1147 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1148 | CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID |
| 1149 | |
| 1150 | ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y) |
| 1151 | CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2 |
| 1152 | CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL |
| 1153 | else |
| 1154 | ifeq ($(CONFIG_ROME_IF),pci) |
| 1155 | CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL |
| 1156 | endif |
| 1157 | endif |
| 1158 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1159 | ifneq ($(CONFIG_QCA_CLD_WLAN),) |
| 1160 | CDEFINES += -DWCN_PRONTO |
| 1161 | CDEFINES += -DWCN_PRONTO_V1 |
| 1162 | endif |
| 1163 | |
| 1164 | ifeq ($(BUILD_DEBUG_VERSION),1) |
| 1165 | CDEFINES += -DWLAN_DEBUG \ |
| 1166 | -DTRACE_RECORD \ |
| 1167 | -DLIM_TRACE_RECORD \ |
| 1168 | -DSME_TRACE_RECORD \ |
| 1169 | -DHDD_TRACE_RECORD \ |
| 1170 | -DPE_DEBUG_LOGW \ |
Srinivas Girigowda | 6147c58 | 2016-10-18 12:26:15 -0700 | [diff] [blame] | 1171 | -DPE_DEBUG_LOGE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1172 | endif |
| 1173 | |
| 1174 | ifeq ($(CONFIG_SLUB_DEBUG_ON),y) |
| 1175 | CDEFINES += -DTIMER_MANAGER |
| 1176 | CDEFINES += -DMEMORY_DEBUG |
| 1177 | endif |
| 1178 | |
| 1179 | ifeq ($(HAVE_CFG80211),1) |
| 1180 | CDEFINES += -DWLAN_FEATURE_P2P |
| 1181 | CDEFINES += -DWLAN_FEATURE_WFD |
| 1182 | ifeq ($(CONFIG_QCOM_VOWIFI_11R),y) |
| 1183 | CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211 |
| 1184 | CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC |
| 1185 | endif |
| 1186 | endif |
| 1187 | |
| 1188 | ifeq ($(CONFIG_QCOM_ESE),y) |
| 1189 | CDEFINES += -DFEATURE_WLAN_ESE |
| 1190 | CDEFINES += -DQCA_COMPUTE_TX_DELAY |
| 1191 | CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1192 | endif |
| 1193 | |
| 1194 | #normally, TDLS negative behavior is not needed |
| 1195 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 1196 | CDEFINES += -DFEATURE_WLAN_TDLS |
| 1197 | endif |
| 1198 | |
| 1199 | ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y) |
| 1200 | CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD |
| 1201 | endif |
| 1202 | |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 1203 | ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y) |
| 1204 | CDEFINES += -DWLAN_FEATURE_HOST_ROAM |
| 1205 | endif |
| 1206 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1207 | ifeq ($(BUILD_DIAG_VERSION),1) |
| 1208 | CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT |
| 1209 | CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR |
| 1210 | CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM |
| 1211 | ifeq ($(CONFIG_HIF_PCI), 1) |
| 1212 | CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
| 1213 | endif |
| 1214 | endif |
| 1215 | |
| 1216 | ifeq ($(CONFIG_HIF_USB), 1) |
| 1217 | CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
| 1218 | CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT |
| 1219 | CDEFINES += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1220 | endif |
| 1221 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1222 | ifeq ($(CONFIG_WLAN_FEATURE_11W),y) |
| 1223 | CDEFINES += -DWLAN_FEATURE_11W |
| 1224 | endif |
| 1225 | |
| 1226 | ifeq ($(CONFIG_QCOM_LTE_COEX),y) |
| 1227 | CDEFINES += -DFEATURE_WLAN_CH_AVOID |
| 1228 | endif |
| 1229 | |
| 1230 | ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y) |
| 1231 | CDEFINES += -DWLAN_FEATURE_LPSS |
| 1232 | endif |
| 1233 | |
Nirav Shah | 7629196 | 2016-04-25 10:50:37 +0530 | [diff] [blame] | 1234 | ifneq ($(TARGET_BUILD_VARIANT),user) |
| 1235 | CDEFINES += -DDESC_DUP_DETECT_DEBUG |
Manjunathappa Prakash | c8e7564 | 2016-06-03 19:32:27 -0700 | [diff] [blame] | 1236 | CDEFINES += -DDEBUG_RX_RING_BUFFER |
Nirav Shah | 7629196 | 2016-04-25 10:50:37 +0530 | [diff] [blame] | 1237 | endif |
| 1238 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1239 | ifeq ($(PANIC_ON_BUG),1) |
| 1240 | CDEFINES += -DPANIC_ON_BUG |
| 1241 | endif |
| 1242 | |
| 1243 | ifeq ($(WLAN_OPEN_SOURCE), 1) |
| 1244 | CDEFINES += -DWLAN_OPEN_SOURCE |
| 1245 | endif |
| 1246 | |
| 1247 | ifeq ($(CONFIG_FEATURE_STATS_EXT), 1) |
| 1248 | CDEFINES += -DWLAN_FEATURE_STATS_EXT |
| 1249 | endif |
| 1250 | |
| 1251 | ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y) |
| 1252 | CDEFINES += -DWLAN_FEATURE_NAN |
| 1253 | endif |
| 1254 | |
| 1255 | ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1) |
| 1256 | CDEFINES += -DQCA_IBSS_SUPPORT |
| 1257 | endif |
| 1258 | |
| 1259 | #Enable OL debug and wmi unified functions |
| 1260 | ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1) |
| 1261 | CDEFINES += -DATH_PERF_PWR_OFFLOAD |
| 1262 | endif |
| 1263 | |
| 1264 | #Disable packet log |
| 1265 | ifeq ($(CONFIG_REMOVE_PKT_LOG), 1) |
| 1266 | CDEFINES += -DREMOVE_PKT_LOG |
| 1267 | endif |
| 1268 | |
| 1269 | #Enable 11AC TX |
| 1270 | ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1) |
| 1271 | CDEFINES += -DATH_11AC_TXCOMPACT |
| 1272 | endif |
| 1273 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1274 | #Enable OS specific IRQ abstraction |
| 1275 | ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1) |
| 1276 | CDEFINES += -DATH_SUPPORT_SHARED_IRQ |
| 1277 | endif |
| 1278 | |
| 1279 | #Enable message based HIF instead of RAW access in BMI |
| 1280 | ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1) |
| 1281 | CDEFINES += -DHIF_MESSAGE_BASED |
| 1282 | endif |
| 1283 | |
| 1284 | #Enable PCI specific APIS (dma, etc) |
| 1285 | ifeq ($(CONFIG_HIF_PCI), 1) |
| 1286 | CDEFINES += -DHIF_PCI |
| 1287 | endif |
| 1288 | |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1289 | ifeq ($(CONFIG_HIF_SNOC), 1) |
| 1290 | CDEFINES += -DHIF_SNOC |
| 1291 | endif |
| 1292 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1293 | #Enable High Latency related Flags |
| 1294 | ifeq ($(CONFIG_QCA_WIFI_SDIO), 1) |
| 1295 | CDEFINES += -DCONFIG_HL_SUPPORT \ |
| 1296 | -DCONFIG_AR6320_SUPPORT \ |
| 1297 | -DSDIO_3_0 \ |
| 1298 | -DHIF_SDIO \ |
| 1299 | -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \ |
| 1300 | -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \ |
| 1301 | -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \ |
| 1302 | -DHIF_MBOX_SLEEP_WAR \ |
| 1303 | -DDEBUG_HL_LOGGING \ |
| 1304 | -DQCA_BAD_PEER_TX_FLOW_CL \ |
| 1305 | -DCONFIG_TX_DESC_HI_PRIO_RESERVE \ |
| 1306 | -DCONFIG_PER_VDEV_TX_DESC_POOL \ |
| 1307 | -DCONFIG_SDIO \ |
| 1308 | -DFEATURE_WLAN_FORCE_SAP_SCC |
| 1309 | endif |
| 1310 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1311 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 1312 | CDEFINES += -DWLAN_FEATURE_DSRC |
| 1313 | endif |
| 1314 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1315 | #Enable USB specific APIS |
| 1316 | ifeq ($(CONFIG_HIF_USB), 1) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1317 | CDEFINES += -DHIF_USB \ |
Mohit Khanna | e7a4357 | 2016-10-10 17:34:21 -0700 | [diff] [blame] | 1318 | -DCONFIG_PLD_USB_CNSS \ |
| 1319 | -DCONFIG_HL_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1320 | endif |
| 1321 | |
| 1322 | #Enable FW logs through ini |
| 1323 | CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI |
| 1324 | |
| 1325 | #Enable pci read/write config functions |
| 1326 | ifeq ($(CONFIG_ATH_PCI), 1) |
| 1327 | CDEFINES += -DATH_PCI |
| 1328 | endif |
| 1329 | |
| 1330 | #Enable power management suspend/resume functionality |
| 1331 | ifeq ($(CONFIG_ATH_BUS_PM), 1) |
| 1332 | CDEFINES += -DATH_BUS_PM |
| 1333 | endif |
| 1334 | |
| 1335 | #Enable FLOWMAC module support |
| 1336 | ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1) |
| 1337 | CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE |
| 1338 | endif |
| 1339 | |
| 1340 | #Enable spectral support |
| 1341 | ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1) |
| 1342 | CDEFINES += -DATH_SUPPORT_SPECTRAL |
| 1343 | endif |
| 1344 | |
| 1345 | #Enable WDI Event support |
| 1346 | ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1) |
| 1347 | CDEFINES += -DWDI_EVENT_ENABLE |
| 1348 | endif |
| 1349 | |
| 1350 | #Endianess selection |
| 1351 | ifeq ($(CONFIG_LITTLE_ENDIAN), 1) |
| 1352 | AH_LITTLE_ENDIAN=1234 |
| 1353 | CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN) |
| 1354 | else |
| 1355 | AH_BIG_ENDIAN=4321 |
| 1356 | CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN) |
| 1357 | CDEFINES += -DBIG_ENDIAN_HOST |
| 1358 | endif |
| 1359 | |
| 1360 | #Enable TX reclaim support |
| 1361 | ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1) |
| 1362 | CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT |
| 1363 | endif |
| 1364 | |
| 1365 | #Enable FTM support |
| 1366 | ifeq ($(CONFIG_QCA_WIFI_FTM), 1) |
| 1367 | CDEFINES += -DQCA_WIFI_FTM |
| 1368 | endif |
| 1369 | |
| 1370 | #Enable Checksum Offload support |
| 1371 | ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1) |
| 1372 | CDEFINES += -DCHECKSUM_OFFLOAD |
| 1373 | endif |
| 1374 | |
| 1375 | #Enable Checksum Offload support |
| 1376 | ifeq ($(CONFIG_IPA_OFFLOAD), 1) |
| 1377 | CDEFINES += -DIPA_OFFLOAD |
| 1378 | endif |
| 1379 | |
| 1380 | ifneq ($(CONFIG_ARCH_MDM9630), y) |
| 1381 | ifeq ($(CONFIG_ARCH_MDM9640), y) |
| 1382 | CDEFINES += -DQCA_CONFIG_SMP |
| 1383 | endif |
| 1384 | endif |
| 1385 | |
| 1386 | #Enable GTK Offload |
| 1387 | ifeq ($(CONFIG_GTK_OFFLOAD), 1) |
| 1388 | CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD |
| 1389 | CDEFINES += -DIGTK_OFFLOAD |
| 1390 | endif |
| 1391 | |
| 1392 | #Enable GTK Offload |
| 1393 | ifeq ($(CONFIG_EXT_WOW), 1) |
| 1394 | CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT |
| 1395 | endif |
| 1396 | |
| 1397 | #Mark it as SMP Kernel |
| 1398 | ifeq ($(CONFIG_SMP),y) |
| 1399 | CDEFINES += -DQCA_CONFIG_SMP |
| 1400 | endif |
| 1401 | |
| 1402 | ifeq ($(CONFIG_WLAN_FEATURE_RX_WAKELOCK), y) |
| 1403 | CDEFINES += -DWLAN_FEATURE_HOLD_RX_WAKELOCK |
| 1404 | endif |
| 1405 | |
Sandeep Puligilla | 2111d3c | 2016-02-03 01:46:15 -0800 | [diff] [blame] | 1406 | #Enable Channel Matrix restriction for all Rome only targets |
| 1407 | ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS))) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1408 | CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION |
Sandeep Puligilla | 2111d3c | 2016-02-03 01:46:15 -0800 | [diff] [blame] | 1409 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1410 | |
Sandeep Puligilla | 0e64b61 | 2016-08-26 13:20:58 -0700 | [diff] [blame] | 1411 | #Enable OBSS feature |
| 1412 | CDEFINES += -DQCA_HT_2040_COEX |
| 1413 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1414 | #features specific to mobile router use case |
| 1415 | ifeq ($(CONFIG_MOBILE_ROUTER), y) |
| 1416 | |
| 1417 | #enable MCC TO SCC switch |
| 1418 | CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH |
| 1419 | |
| 1420 | #enable wlan auto shutdown feature |
| 1421 | CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN |
| 1422 | |
| 1423 | #enable for MBSSID |
| 1424 | CDEFINES += -DWLAN_FEATURE_MBSSID |
| 1425 | |
| 1426 | #enable AP-AP ACS Optimization |
| 1427 | CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE |
| 1428 | |
| 1429 | #Enable 4address scheme |
| 1430 | CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME |
| 1431 | |
| 1432 | #Disable STA-AP Mode DFS support |
| 1433 | CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE |
| 1434 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1435 | else #CONFIG_MOBILE_ROUTER |
| 1436 | |
| 1437 | #Open P2P device interface only for non-Mobile router use cases |
| 1438 | CDEFINES += -DWLAN_OPEN_P2P_INTERFACE |
| 1439 | |
| 1440 | #Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage |
| 1441 | CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY |
| 1442 | |
| 1443 | endif #CONFIG_MOBILE_ROUTER |
| 1444 | |
| 1445 | #Green AP feature |
| 1446 | ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y) |
| 1447 | CDEFINES += -DFEATURE_GREEN_AP |
| 1448 | endif |
| 1449 | |
| 1450 | #Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform" |
| 1451 | ifneq ($(CONFIG_ARCH_MDM9630), y) |
| 1452 | ifeq ($(CONFIG_HIF_PCI), 1) |
| 1453 | CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL |
| 1454 | endif |
| 1455 | endif |
| 1456 | |
Poddar, Siddarth | ef1f302 | 2016-05-10 20:10:43 +0530 | [diff] [blame] | 1457 | #enable Code swap feature |
| 1458 | ifeq ($(CONFIG_CNSS), y) |
| 1459 | ifeq ($(CONFIG_HIF_PCI), 1) |
| 1460 | CDEFINES += -DCONFIG_CODESWAP_FEATURE |
| 1461 | endif |
| 1462 | endif |
| 1463 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1464 | #Enable Signed firmware support for split binary format |
| 1465 | ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1) |
| 1466 | CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT |
| 1467 | endif |
| 1468 | |
| 1469 | #Enable single firmware binary format |
| 1470 | ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1) |
| 1471 | CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT |
| 1472 | endif |
| 1473 | |
| 1474 | #Enable collecting target RAM dump after kernel panic |
| 1475 | ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1) |
| 1476 | CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC |
| 1477 | endif |
| 1478 | |
| 1479 | #Enable/disable secure firmware feature |
| 1480 | ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1) |
| 1481 | CDEFINES += -DFEATURE_SECURE_FIRMWARE |
| 1482 | endif |
| 1483 | |
| 1484 | ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1) |
| 1485 | CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG |
| 1486 | endif |
| 1487 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1488 | # Enable feature support fo Linux version QCMBR |
| 1489 | ifeq ($(CONFIG_LINUX_QCMBR),y) |
| 1490 | CDEFINES += -DLINUX_QCMBR |
| 1491 | endif |
| 1492 | |
Manikandan Mohan | dcc21ba | 2016-03-15 14:31:56 -0700 | [diff] [blame] | 1493 | # Enable featue sync tsf between multi devices |
| 1494 | ifeq ($(CONFIG_WLAN_SYNC_TSF), y) |
| 1495 | CDEFINES += -DWLAN_FEATURE_TSF |
| 1496 | endif |
Rajeev Kumar | e0fd9dd | 2015-11-16 13:33:07 -0800 | [diff] [blame] | 1497 | |
| 1498 | # Enable full rx re-order offload for adrastea |
| 1499 | ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS))) |
| 1500 | CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL |
| 1501 | endif |
| 1502 | |
Rajeev Kumar | 321a19a | 2015-12-08 12:54:46 -0800 | [diff] [blame] | 1503 | # Enable athdiag procfs debug support for adrastea |
| 1504 | ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS))) |
| 1505 | CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
| 1506 | endif |
| 1507 | |
Rajeev Kumar | 9c4809e | 2016-01-13 18:32:40 -0800 | [diff] [blame] | 1508 | # Enable 11AC TX compact feature for adrastea |
| 1509 | ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS))) |
| 1510 | CDEFINES += -DATH_11AC_TXCOMPACT |
| 1511 | endif |
| 1512 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1513 | # NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS |
| 1514 | ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS))) |
| 1515 | CONFIG_HELIUMPLUS := y |
| 1516 | CONFIG_64BIT_PADDR := y |
| 1517 | CONFIG_FEATURE_TSO := y |
| 1518 | CONFIG_FEATURE_TSO_DEBUG := y |
| 1519 | ifeq ($(CONFIG_HELIUMPLUS),y) |
| 1520 | CDEFINES += -DHELIUMPLUS_PADDR64 |
| 1521 | CDEFINES += -DHELIUMPLUS |
Dhanashri Atre | 48c2ae6 | 2015-12-15 18:07:10 -0800 | [diff] [blame] | 1522 | CDEFINES += -DAR900B |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1523 | ifeq ($(CONFIG_64BIT_PADDR),y) |
| 1524 | CDEFINES += -DHTT_PADDR64 |
| 1525 | endif |
| 1526 | endif |
| 1527 | endif |
| 1528 | |
| 1529 | ifeq ($(CONFIG_FEATURE_TSO),y) |
| 1530 | CDEFINES += -DFEATURE_TSO |
| 1531 | endif |
| 1532 | ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y) |
| 1533 | CDEFINES += -DFEATURE_TSO_DEBUG |
| 1534 | endif |
| 1535 | |
| 1536 | ifeq ($(CONFIG_WLAN_LRO), y) |
| 1537 | CDEFINES += -DFEATURE_LRO |
| 1538 | endif |
| 1539 | |
| 1540 | ifeq ($(CONFIG_MOBILE_ROUTER), y) |
| 1541 | CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE |
| 1542 | endif |
| 1543 | |
| 1544 | ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y) |
| 1545 | CDEFINES += -DMPC_UT_FRAMEWORK |
| 1546 | endif |
| 1547 | |
| 1548 | ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y) |
| 1549 | CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS |
| 1550 | endif |
| 1551 | |
| 1552 | ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y) |
| 1553 | CDEFINES += -DWLAN_FEATURE_MEMDUMP |
| 1554 | endif |
| 1555 | |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 1556 | ifeq ($(CONFIG_WLAN_FEATURE_DISA),y) |
| 1557 | CDEFINES += -DWLAN_FEATURE_DISA |
| 1558 | endif |
| 1559 | |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 1560 | ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y) |
| 1561 | CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION |
| 1562 | endif |
| 1563 | |
Chandrasekaran Manishekar | 068e25e | 2016-03-07 11:51:07 +0530 | [diff] [blame] | 1564 | ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y) |
| 1565 | CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH |
| 1566 | endif |
| 1567 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 1568 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 1569 | CDEFINES += -DWLAN_FEATURE_NAN_DATAPATH |
| 1570 | endif |
| 1571 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1572 | KBUILD_CPPFLAGS += $(CDEFINES) |
| 1573 | |
| 1574 | # Currently, for versions of gcc which support it, the kernel Makefile |
| 1575 | # is disabling the maybe-uninitialized warning. Re-enable it for the |
| 1576 | # WLAN driver. Note that we must use EXTRA_CFLAGS here so that it |
| 1577 | # will override the kernel settings. |
| 1578 | ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y) |
| 1579 | EXTRA_CFLAGS += -Wmaybe-uninitialized |
| 1580 | endif |
| 1581 | |
| 1582 | # Module information used by KBuild framework |
| 1583 | obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o |
| 1584 | $(MODNAME)-y := $(OBJS) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1585 | |