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 | |
Leo Chang | 395cbb5 | 2016-11-11 14:35:03 -0800 | [diff] [blame] | 9 | ifeq ($(CONFIG_CNSS_QCA6290), y) |
| 10 | CONFIG_LITHIUM := y |
Krishna Kumaar Natarajan | 639c6ff | 2017-02-13 14:01:04 -0800 | [diff] [blame] | 11 | CONFIG_WLAN_FEATURE_11AX := y |
Leo Chang | 395cbb5 | 2016-11-11 14:35:03 -0800 | [diff] [blame] | 12 | endif |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 13 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 14 | ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y) |
| 15 | CONFIG_QCA_WIFI_SDIO := 1 |
| 16 | endif |
| 17 | |
| 18 | ifeq ($(CONFIG_QCA_WIFI_SDIO), 1) |
| 19 | CONFIG_ROME_IF = sdio |
| 20 | endif |
| 21 | |
Houston Hoffman | 57d10c2 | 2016-03-08 13:04:20 -0800 | [diff] [blame] | 22 | ifdef CONFIG_ICNSS |
| 23 | CONFIG_ROME_IF = snoc |
| 24 | endif |
| 25 | |
Yue Ma | e6a7a32 | 2016-08-31 11:09:23 -0700 | [diff] [blame] | 26 | ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2))) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 27 | ifndef CONFIG_ROME_IF |
| 28 | #use pci as default interface |
| 29 | CONFIG_ROME_IF = pci |
| 30 | endif |
| 31 | endif |
| 32 | |
| 33 | ifeq ($(KERNEL_BUILD),1) |
| 34 | # These are provided in external module based builds |
| 35 | # Need to explicitly define for Kernel-based builds |
| 36 | MODNAME := wlan |
| 37 | WLAN_ROOT := drivers/staging/qcacld-3.0 |
Houston Hoffman | 52ec669 | 2016-04-21 16:36:45 -0700 | [diff] [blame] | 38 | WLAN_COMMON_ROOT := ../qca-wifi-host-cmn |
| 39 | WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 40 | endif |
| 41 | |
| 42 | # Make WLAN as open-source driver by default |
| 43 | WLAN_OPEN_SOURCE := 1 |
| 44 | |
| 45 | ifeq ($(KERNEL_BUILD), 0) |
| 46 | # These are configurable via Kconfig for kernel-based builds |
| 47 | # Need to explicitly configure for Android-based builds |
| 48 | |
| 49 | ifeq ($(CONFIG_ARCH_MDM9630), y) |
| 50 | CONFIG_MOBILE_ROUTER := y |
| 51 | endif |
| 52 | |
| 53 | ifeq ($(CONFIG_ARCH_MDM9640), y) |
| 54 | CONFIG_MOBILE_ROUTER := y |
| 55 | endif |
| 56 | |
bings | 7762da1 | 2017-03-06 07:21:04 +0800 | [diff] [blame] | 57 | ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y) |
| 58 | CONFIG_MOBILE_ROUTER := y |
| 59 | endif |
| 60 | |
Chandrasekaran, Manishekar | b2d9fa1 | 2016-04-07 12:00:10 +0530 | [diff] [blame] | 61 | # As per target team, build is done as follows: |
| 62 | # Defconfig : build with default flags |
| 63 | # Slub : defconfig + CONFIG_SLUB_DEBUG=y + |
| 64 | # CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y |
| 65 | # Perf : Using appropriate msmXXXX-perf_defconfig |
| 66 | # |
| 67 | # Shipment builds (user variants) should not have any debug feature |
| 68 | # enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds |
| 69 | # are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since |
| 70 | # there is no other way to identify defconfig builds, QCOMs internal |
| 71 | # representation of perf builds (identified using the string 'perf'), |
| 72 | # is used to identify if the build is a slub or defconfig one. This |
| 73 | # way no critical debug feature will be enabled for perf and shipment |
| 74 | # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT |
| 75 | # config. |
| 76 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 77 | ifeq ($(CONFIG_LITHIUM), y) |
Ravi Joshi | fc2ed78 | 2016-11-22 17:36:50 -0800 | [diff] [blame] | 78 | CONFIG_FEATURE_PKTLOG := n |
| 79 | else |
| 80 | CONFIG_FEATURE_PKTLOG := y |
| 81 | endif |
Chandrasekaran, Manishekar | b2d9fa1 | 2016-04-07 12:00:10 +0530 | [diff] [blame] | 82 | ifeq ($(CONFIG_SLUB_DEBUG_ON),y) |
Nirav Shah | cc1f1ae | 2016-04-26 11:41:29 +0530 | [diff] [blame] | 83 | CONFIG_FEATURE_DP_TRACE := y |
Chandrasekaran, Manishekar | b2d9fa1 | 2016-04-07 12:00:10 +0530 | [diff] [blame] | 84 | else |
| 85 | ifeq ($(findstring perf,$(KERNEL_DEFCONFIG)),) |
Nirav Shah | cc1f1ae | 2016-04-26 11:41:29 +0530 | [diff] [blame] | 86 | CONFIG_FEATURE_DP_TRACE := y |
Chandrasekaran, Manishekar | b2d9fa1 | 2016-04-07 12:00:10 +0530 | [diff] [blame] | 87 | endif |
| 88 | endif |
| 89 | endif |
| 90 | |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 91 | #Flag to enable Legacy Fast Roaming2(LFR2) |
| 92 | CONFIG_QCACLD_WLAN_LFR2 := y |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 93 | #Flag to enable Legacy Fast Roaming3(LFR3) |
| 94 | CONFIG_QCACLD_WLAN_LFR3 := y |
| 95 | |
Sridhar Selvaraj | dc400d2 | 2016-10-18 17:18:03 +0530 | [diff] [blame] | 96 | #Enable Power debugfs feature only if debug_fs is enabled |
| 97 | ifeq ($(CONFIG_DEBUG_FS), y) |
| 98 | CONFIG_WLAN_POWER_DEBUGFS := y |
| 99 | endif |
| 100 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 101 | # JB kernel has CPU enablement patches, so enable |
| 102 | ifeq ($(CONFIG_ROME_IF),pci) |
| 103 | CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y |
| 104 | endif |
| 105 | ifeq ($(CONFIG_ROME_IF),usb) |
| 106 | CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n |
| 107 | endif |
| 108 | ifeq ($(CONFIG_ROME_IF),sdio) |
| 109 | CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n |
| 110 | endif |
| 111 | |
| 112 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 113 | #Flag to enable TDLS feature |
| 114 | CONFIG_QCOM_TDLS := y |
| 115 | endif |
| 116 | |
| 117 | ifeq ($(CONFIG_MOBILE_ROUTER), y) |
| 118 | CONFIG_QCACLD_FEATURE_GREEN_AP := y |
| 119 | endif |
Ashwini Muduganti | 7964982 | 2016-11-16 11:29:50 -0800 | [diff] [blame] | 120 | ifeq ($(CONFIG_ARCH_MSM8998), y) |
Jeff Johnson | a630025 | 2016-09-28 15:58:55 -0700 | [diff] [blame] | 121 | CONFIG_QCACLD_FEATURE_GREEN_AP := y |
Yun Park | 637d648 | 2016-10-05 10:51:33 -0700 | [diff] [blame] | 122 | CONFIG_QCACLD_FEATURE_METERING := y |
Jeff Johnson | a630025 | 2016-09-28 15:58:55 -0700 | [diff] [blame] | 123 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 124 | |
Poddar, Siddarth | 1bec7ae | 2017-01-24 18:02:31 +0530 | [diff] [blame] | 125 | ifeq ($(CONFIG_ARCH_SDM660), y) |
Ashish Kumar Dhanotiya | 5e6cfc0 | 2017-03-16 16:51:01 +0530 | [diff] [blame] | 126 | CONFIG_QCACLD_FEATURE_GREEN_AP := y |
Poddar, Siddarth | 1bec7ae | 2017-01-24 18:02:31 +0530 | [diff] [blame] | 127 | CONFIG_QCACLD_FEATURE_METERING := y |
| 128 | endif |
| 129 | |
| 130 | ifeq ($(CONFIG_ARCH_SDM630), y) |
| 131 | CONFIG_QCACLD_FEATURE_METERING := y |
| 132 | endif |
| 133 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 134 | #Flag to enable Fast Transition (11r) feature |
| 135 | CONFIG_QCOM_VOWIFI_11R := y |
| 136 | |
| 137 | ifneq ($(CONFIG_QCA_CLD_WLAN),) |
Yue Ma | e6a7a32 | 2016-08-31 11:09:23 -0700 | [diff] [blame] | 138 | ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2) $(CONFIG_ICNSS))) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 139 | #Flag to enable Protected Managment Frames (11w) feature |
| 140 | CONFIG_WLAN_FEATURE_11W := y |
| 141 | #Flag to enable LTE CoEx feature |
| 142 | CONFIG_QCOM_LTE_COEX := y |
| 143 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 144 | #Flag to enable LPSS feature |
| 145 | CONFIG_WLAN_FEATURE_LPSS := y |
| 146 | endif |
| 147 | endif |
| 148 | endif |
| 149 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 150 | #Flag to enable Protected Managment Frames (11w) feature |
| 151 | ifeq ($(CONFIG_ROME_IF),usb) |
| 152 | CONFIG_WLAN_FEATURE_11W := y |
| 153 | endif |
| 154 | ifeq ($(CONFIG_ROME_IF),sdio) |
| 155 | CONFIG_WLAN_FEATURE_11W := y |
| 156 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 157 | |
gbian | e55c956 | 2016-11-01 14:47:47 +0800 | [diff] [blame] | 158 | #Flag to enable the tx desc sanity check |
| 159 | ifeq ($(CONFIG_ROME_IF),usb) |
| 160 | CONFIG_QCA_TXDESC_SANITY_CHECKS := y |
| 161 | endif |
| 162 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 163 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 164 | #Flag to enable NAN |
| 165 | CONFIG_QCACLD_FEATURE_NAN := y |
| 166 | endif |
| 167 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 168 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 169 | #Flag to enable NAN Data path |
| 170 | CONFIG_WLAN_FEATURE_NAN_DATAPATH := y |
Naveen Rawat | 3cb5981 | 2017-03-28 16:59:08 -0700 | [diff] [blame] | 171 | CONFIG_NAN_CONVERGENCE := y |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 172 | endif |
| 173 | |
| 174 | #Flag to enable Linux QCMBR feature as default feature |
| 175 | ifeq ($(CONFIG_ROME_IF),usb) |
| 176 | CONFIG_LINUX_QCMBR :=y |
| 177 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 178 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 179 | CONFIG_MPC_UT_FRAMEWORK := y |
| 180 | |
| 181 | #Flag to enable offload packets feature |
| 182 | CONFIG_WLAN_OFFLOAD_PACKETS := y |
| 183 | |
Manikandan Mohan | 5356c2b | 2016-04-03 15:51:35 -0700 | [diff] [blame] | 184 | #enable TSF get feature |
| 185 | CONFIG_WLAN_SYNC_TSF := y |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 186 | #Enable DSRC feature |
| 187 | |
| 188 | ifeq ($(CONFIG_QCA_WIFI_SDIO), 1) |
| 189 | CONFIG_WLAN_FEATURE_DSRC := y |
| 190 | endif |
Manikandan Mohan | 5356c2b | 2016-04-03 15:51:35 -0700 | [diff] [blame] | 191 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 192 | ifneq ($(CONFIG_ROME_IF),sdio) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 193 | #Flag to enable memdump feature |
Krishna Kumaar Natarajan | e42bb17 | 2016-06-09 18:24:04 -0700 | [diff] [blame] | 194 | CONFIG_WLAN_FEATURE_MEMDUMP := n |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 195 | |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 196 | #Flag to enable DISA |
| 197 | CONFIG_WLAN_FEATURE_DISA := y |
| 198 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 199 | #Flag to enable Fast Path feature |
| 200 | CONFIG_WLAN_FASTPATH := y |
| 201 | |
| 202 | # Flag to enable NAPI |
Leo Chang | 395cbb5 | 2016-11-11 14:35:03 -0800 | [diff] [blame] | 203 | ifeq (y,$(CONFIG_LITHIUM)) |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 204 | CONFIG_WLAN_NAPI := n |
| 205 | CONFIG_WLAN_NAPI_DEBUG := n |
| 206 | else |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 207 | CONFIG_WLAN_NAPI := y |
| 208 | CONFIG_WLAN_NAPI_DEBUG := n |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 209 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 210 | # Flag to enable FW based TX Flow control |
Nirav Shah | 9d7f2e8 | 2015-09-28 11:09:09 -0700 | [diff] [blame] | 211 | ifeq ($(CONFIG_CNSS_EOS),y) |
| 212 | CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y |
| 213 | else |
| 214 | CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n |
| 215 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 216 | |
| 217 | # Flag to enable LRO (Large Receive Offload) |
Manjunathappa Prakash | beeacb1 | 2016-06-17 18:18:32 -0700 | [diff] [blame] | 218 | ifeq ($(CONFIG_INET_LRO), y) |
Tang Yingying | 4c0e83e | 2017-01-19 17:10:39 +0800 | [diff] [blame] | 219 | ifeq ($(VERSION), 4) |
| 220 | CONFIG_WLAN_LRO := y |
| 221 | else |
| 222 | CONFIG_WLAN_LRO := n |
| 223 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 224 | endif |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 225 | endif |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 226 | |
Manjunathappa Prakash | fa34599 | 2016-04-21 16:45:40 -0700 | [diff] [blame] | 227 | ifeq ($(CONFIG_ROME_IF), snoc) |
| 228 | CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y |
| 229 | endif |
| 230 | |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 231 | # Flag to enable LFR Subnet Detection |
| 232 | CONFIG_LFR_SUBNET_DETECTION := y |
Chandrasekaran Manishekar | 068e25e | 2016-03-07 11:51:07 +0530 | [diff] [blame] | 233 | |
| 234 | # Flag to enable MCC to SCC switch feature |
| 235 | CONFIG_MCC_TO_SCC_SWITCH := y |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 236 | |
| 237 | ifeq ($(CONFIG_DEBUG_FS), y) |
| 238 | # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel |
| 239 | # configuration. |
| 240 | CONFIG_WLAN_DEBUGFS := y |
| 241 | endif |
| 242 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 243 | endif |
| 244 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 245 | # If not set, assume, Common driver is with in the build tree |
Yu Wang | c8a6c49 | 2017-02-13 14:20:15 +0800 | [diff] [blame] | 246 | WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 247 | WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT) |
| 248 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 249 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 250 | CONFIG_QCOM_ESE := y |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 251 | endif |
| 252 | |
| 253 | # Feature flags which are not (currently) configurable via Kconfig |
| 254 | |
| 255 | #Whether to build debug version |
| 256 | BUILD_DEBUG_VERSION := 1 |
| 257 | |
| 258 | #Enable this flag to build driver in diag version |
| 259 | BUILD_DIAG_VERSION := 1 |
| 260 | |
| 261 | #Do we panic on bug? default is to warn |
| 262 | PANIC_ON_BUG := 1 |
| 263 | |
| 264 | #Enable OL debug and wmi unified functions |
| 265 | CONFIG_ATH_PERF_PWR_OFFLOAD := 1 |
| 266 | |
| 267 | #Disable packet log |
| 268 | CONFIG_REMOVE_PKT_LOG := 0 |
| 269 | |
| 270 | #Enable 11AC TX |
| 271 | ifeq ($(CONFIG_ROME_IF),pci) |
| 272 | CONFIG_ATH_11AC_TXCOMPACT := 1 |
| 273 | endif |
| 274 | ifeq ($(CONFIG_ROME_IF),usb) |
| 275 | CONFIG_ATH_11AC_TXCOMPACT := 0 |
| 276 | endif |
| 277 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 278 | #Enable OS specific IRQ abstraction |
| 279 | CONFIG_ATH_SUPPORT_SHARED_IRQ := 1 |
| 280 | |
| 281 | #Enable message based HIF instead of RAW access in BMI |
| 282 | ifeq ($(CONFIG_QCA_WIFI_SDIO), 1) |
| 283 | CONFIG_HIF_MESSAGE_BASED := 0 |
| 284 | else |
| 285 | CONFIG_HIF_MESSAGE_BASED := 1 |
| 286 | endif |
| 287 | |
| 288 | #Enable PCI specific APIS (dma, etc) |
| 289 | ifeq ($(CONFIG_ROME_IF),pci) |
| 290 | CONFIG_HIF_PCI := 1 |
| 291 | endif |
| 292 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 293 | #Enable USB specific APIS |
| 294 | ifeq ($(CONFIG_ROME_IF),usb) |
| 295 | CONFIG_HIF_USB := 1 |
Mohit Khanna | e7a4357 | 2016-10-10 17:34:21 -0700 | [diff] [blame] | 296 | CONFIG_PLD_USB_CNSS := y |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 297 | endif |
| 298 | |
Yu Wang | 58e1cad | 2017-02-10 17:43:15 +0800 | [diff] [blame] | 299 | #Enable SDIO specific APIS |
| 300 | ifeq ($(CONFIG_ROME_IF),sdio) |
| 301 | CONFIG_HIF_SDIO := 1 |
| 302 | endif |
| 303 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 304 | #Enable pci read/write config functions |
| 305 | ifeq ($(CONFIG_ROME_IF),pci) |
| 306 | CONFIG_ATH_PCI := 1 |
| 307 | endif |
Houston Hoffman | 52ec669 | 2016-04-21 16:36:45 -0700 | [diff] [blame] | 308 | |
| 309 | ifeq ($(CONFIG_ROME_IF),snoc) |
| 310 | CONFIG_HIF_SNOC:= 1 |
| 311 | endif |
| 312 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 313 | ifneq ($(CONFIG_MOBILE_ROUTER), y) |
| 314 | #Enable IBSS support on CLD |
| 315 | CONFIG_QCA_IBSS_SUPPORT := 1 |
| 316 | endif |
| 317 | |
| 318 | #Enable power management suspend/resume functionality to PCI |
| 319 | CONFIG_ATH_BUS_PM := 1 |
| 320 | |
| 321 | #Enable FLOWMAC module support |
| 322 | CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := 0 |
| 323 | |
| 324 | #Enable spectral support |
| 325 | CONFIG_ATH_SUPPORT_SPECTRAL := 0 |
| 326 | |
| 327 | #Enable HOST statistics support |
| 328 | CONFIG_SUPPORT_HOST_STATISTICS := 0 |
| 329 | |
| 330 | #Enable WDI Event support |
| 331 | CONFIG_WDI_EVENT_ENABLE := 1 |
| 332 | |
| 333 | #Endianess selection |
| 334 | CONFIG_LITTLE_ENDIAN := 1 |
| 335 | |
| 336 | #Enable TX reclaim support |
| 337 | CONFIG_TX_CREDIT_RECLAIM_SUPPORT := 0 |
| 338 | |
| 339 | #Enable FTM support |
| 340 | CONFIG_QCA_WIFI_FTM := 1 |
| 341 | |
| 342 | #Enable Checksum Offload |
| 343 | CONFIG_CHECKSUM_OFFLOAD := 1 |
| 344 | |
| 345 | #Enable GTK offload |
| 346 | CONFIG_GTK_OFFLOAD := 1 |
| 347 | |
| 348 | #Enable EXT WOW |
| 349 | ifeq ($(CONFIG_ROME_IF),pci) |
| 350 | CONFIG_EXT_WOW := 1 |
| 351 | endif |
| 352 | |
| 353 | #Set this to 1 to catch erroneous Target accesses during debug. |
| 354 | CONFIG_ATH_PCIE_ACCESS_DEBUG := 0 |
| 355 | |
| 356 | #Enable IPA offload |
| 357 | ifeq ($(CONFIG_IPA), y) |
| 358 | CONFIG_IPA_OFFLOAD := 1 |
| 359 | endif |
| 360 | |
| 361 | #Enable Signed firmware support for split binary format |
| 362 | CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := 0 |
| 363 | |
| 364 | #Enable single firmware binary format |
| 365 | CONFIG_QCA_SINGLE_BINARY_SUPPORT := 0 |
| 366 | |
| 367 | #Enable collecting target RAM dump after kernel panic |
| 368 | CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := 1 |
| 369 | |
| 370 | #Flag to enable/disable secure firmware feature |
| 371 | CONFIG_FEATURE_SECURE_FIRMWARE := 0 |
| 372 | |
| 373 | #Flag to enable Stats Ext implementation |
| 374 | CONFIG_FEATURE_STATS_EXT := 1 |
| 375 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 376 | ifeq ($(CONFIG_CFG80211),y) |
| 377 | HAVE_CFG80211 := 1 |
| 378 | else |
| 379 | ifeq ($(CONFIG_CFG80211),m) |
| 380 | HAVE_CFG80211 := 1 |
| 381 | else |
| 382 | HAVE_CFG80211 := 0 |
| 383 | endif |
| 384 | endif |
| 385 | |
| 386 | ############ UAPI ############ |
| 387 | UAPI_DIR := uapi |
| 388 | UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux |
| 389 | |
| 390 | ############ COMMON ############ |
| 391 | COMMON_DIR := core/common |
| 392 | COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR) |
| 393 | |
| 394 | ############ HDD ############ |
| 395 | HDD_DIR := core/hdd |
| 396 | HDD_INC_DIR := $(HDD_DIR)/inc |
| 397 | HDD_SRC_DIR := $(HDD_DIR)/src |
| 398 | |
| 399 | HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \ |
| 400 | -I$(WLAN_ROOT)/$(HDD_SRC_DIR) |
| 401 | |
| 402 | HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \ |
| 403 | $(HDD_SRC_DIR)/wlan_hdd_cfg.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 404 | $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \ |
| 405 | $(HDD_SRC_DIR)/wlan_hdd_ftm.o \ |
| 406 | $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \ |
| 407 | $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \ |
| 408 | $(HDD_SRC_DIR)/wlan_hdd_main.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 409 | $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \ |
| 410 | $(HDD_SRC_DIR)/wlan_hdd_power.o \ |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 411 | $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \ |
Jeff Johnson | a2d9bb3 | 2017-01-18 13:23:24 -0800 | [diff] [blame] | 412 | $(HDD_SRC_DIR)/wlan_hdd_request_manager.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 413 | $(HDD_SRC_DIR)/wlan_hdd_scan.o \ |
| 414 | $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \ |
| 415 | $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \ |
| 416 | $(HDD_SRC_DIR)/wlan_hdd_trace.o \ |
| 417 | $(HDD_SRC_DIR)/wlan_hdd_wext.o \ |
| 418 | $(HDD_SRC_DIR)/wlan_hdd_wmm.o \ |
Rajeev Kumar | 699debf | 2017-01-06 14:17:00 -0800 | [diff] [blame] | 419 | $(HDD_SRC_DIR)/wlan_hdd_wowl.o \ |
| 420 | $(HDD_SRC_DIR)/wlan_hdd_object_manager.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 421 | |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 422 | ifeq ($(CONFIG_WLAN_DEBUGFS), y) |
| 423 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o |
| 424 | endif |
| 425 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 426 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 427 | HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o |
| 428 | endif |
Amar Singhal | e4f28ee | 2015-10-21 14:36:56 -0700 | [diff] [blame] | 429 | |
Jeff Johnson | 2b0a7b8 | 2016-05-18 15:08:02 -0700 | [diff] [blame] | 430 | ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y) |
| 431 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o |
| 432 | endif |
| 433 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 434 | ifeq ($(CONFIG_WLAN_LRO), y) |
| 435 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o |
| 436 | endif |
| 437 | |
| 438 | ifeq ($(CONFIG_WLAN_NAPI), y) |
| 439 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o |
| 440 | endif |
| 441 | |
| 442 | ifeq ($(CONFIG_IPA_OFFLOAD), 1) |
| 443 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o |
| 444 | endif |
| 445 | |
| 446 | ifeq ($(HAVE_CFG80211),1) |
| 447 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \ |
| 448 | $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \ |
| 449 | $(HDD_SRC_DIR)/wlan_hdd_stats.o \ |
| 450 | $(HDD_SRC_DIR)/wlan_hdd_p2p.o |
| 451 | endif |
| 452 | |
| 453 | ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y) |
| 454 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_green_ap.o |
| 455 | endif |
| 456 | |
| 457 | ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y) |
| 458 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o |
| 459 | endif |
| 460 | |
| 461 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 462 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o |
| 463 | endif |
| 464 | |
Manikandan Mohan | dcc21ba | 2016-03-15 14:31:56 -0700 | [diff] [blame] | 465 | ifeq ($(CONFIG_WLAN_SYNC_TSF),y) |
| 466 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o |
| 467 | endif |
| 468 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 469 | ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y) |
| 470 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o |
| 471 | endif |
| 472 | |
| 473 | ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y) |
| 474 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_memdump.o |
| 475 | endif |
| 476 | |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 477 | ifeq ($(CONFIG_WLAN_FEATURE_DISA),y) |
| 478 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o |
| 479 | endif |
| 480 | |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 481 | ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y) |
| 482 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o |
| 483 | endif |
| 484 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 485 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 486 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o |
| 487 | endif |
| 488 | |
Krishna Kumaar Natarajan | ed1efd9 | 2016-09-24 18:05:47 -0700 | [diff] [blame] | 489 | ifeq ($(CONFIG_WLAN_FEATURE_11AX),y) |
| 490 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o |
| 491 | endif |
| 492 | |
Ravi Joshi | 1c2cfb6 | 2017-01-18 14:40:08 -0800 | [diff] [blame] | 493 | ifeq ($(CONFIG_LITHIUM), y) |
| 494 | HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o |
| 495 | endif |
| 496 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 497 | ########### HOST DIAG LOG ########### |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 498 | HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 499 | |
| 500 | HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc |
| 501 | HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src |
| 502 | |
| 503 | HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \ |
| 504 | -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR) |
| 505 | |
| 506 | HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o |
| 507 | |
| 508 | ############ EPPING ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 509 | EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 510 | EPPING_INC_DIR := $(EPPING_DIR)/inc |
| 511 | EPPING_SRC_DIR := $(EPPING_DIR)/src |
| 512 | |
| 513 | EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR) |
| 514 | |
| 515 | EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \ |
| 516 | $(EPPING_SRC_DIR)/epping_txrx.o \ |
| 517 | $(EPPING_SRC_DIR)/epping_tx.o \ |
| 518 | $(EPPING_SRC_DIR)/epping_rx.o \ |
| 519 | $(EPPING_SRC_DIR)/epping_helper.o \ |
| 520 | |
| 521 | |
| 522 | ############ MAC ############ |
| 523 | MAC_DIR := core/mac |
| 524 | MAC_INC_DIR := $(MAC_DIR)/inc |
| 525 | MAC_SRC_DIR := $(MAC_DIR)/src |
| 526 | |
| 527 | MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \ |
| 528 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \ |
| 529 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \ |
| 530 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 531 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \ |
| 532 | -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 533 | |
| 534 | MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 535 | $(MAC_SRC_DIR)/cfg/cfg_param_name.o \ |
| 536 | $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \ |
| 537 | $(MAC_SRC_DIR)/cfg/cfg_send_msg.o |
| 538 | |
| 539 | MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o |
| 540 | |
| 541 | MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \ |
| 542 | $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \ |
| 543 | $(MAC_SRC_DIR)/pe/lim/lim_api.o \ |
| 544 | $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 545 | $(MAC_SRC_DIR)/pe/lim/lim_ft.o \ |
| 546 | $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \ |
| 547 | $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \ |
| 548 | $(MAC_SRC_DIR)/pe/lim/lim_p2p.o \ |
| 549 | $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \ |
| 550 | $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \ |
| 551 | $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \ |
| 552 | $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \ |
| 553 | $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \ |
| 554 | $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \ |
| 555 | $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \ |
| 556 | $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \ |
| 557 | $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \ |
| 558 | $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \ |
| 559 | $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \ |
| 560 | $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \ |
| 561 | $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \ |
| 562 | $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \ |
| 563 | $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \ |
| 564 | $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \ |
| 565 | $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \ |
| 566 | $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \ |
| 567 | $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \ |
| 568 | $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \ |
| 569 | $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \ |
| 570 | $(MAC_SRC_DIR)/pe/lim/lim_session.o \ |
| 571 | $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \ |
| 572 | $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \ |
| 573 | $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \ |
| 574 | $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \ |
| 575 | $(MAC_SRC_DIR)/pe/lim/lim_trace.o \ |
| 576 | $(MAC_SRC_DIR)/pe/lim/lim_utils.o |
| 577 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 578 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 579 | MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o |
| 580 | endif |
| 581 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 582 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 583 | MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o |
| 584 | endif |
| 585 | |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 586 | ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y) |
| 587 | MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \ |
| 588 | $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \ |
| 589 | $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \ |
| 590 | $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \ |
| 591 | $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o |
| 592 | endif |
| 593 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 594 | MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \ |
| 595 | $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \ |
| 596 | $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 597 | $(MAC_SRC_DIR)/pe/sch/sch_message.o |
| 598 | |
| 599 | MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o |
| 600 | |
| 601 | MAC_OBJS := $(MAC_CFG_OBJS) \ |
| 602 | $(MAC_DPH_OBJS) \ |
| 603 | $(MAC_LIM_OBJS) \ |
| 604 | $(MAC_SCH_OBJS) \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 605 | $(MAC_RRM_OBJS) \ |
| 606 | $(MAC_NDP_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 607 | |
| 608 | ############ SAP ############ |
| 609 | SAP_DIR := core/sap |
| 610 | SAP_INC_DIR := $(SAP_DIR)/inc |
| 611 | SAP_SRC_DIR := $(SAP_DIR)/src |
| 612 | |
| 613 | SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \ |
| 614 | -I$(WLAN_ROOT)/$(SAP_SRC_DIR) |
| 615 | |
| 616 | SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \ |
| 617 | $(SAP_SRC_DIR)/sap_ch_select.o \ |
| 618 | $(SAP_SRC_DIR)/sap_fsm.o \ |
| 619 | $(SAP_SRC_DIR)/sap_module.o |
| 620 | |
| 621 | ############ DFS ############ 350 |
| 622 | DFS_DIR := $(SAP_DIR)/dfs |
| 623 | DFS_INC_DIR := $(DFS_DIR)/inc |
| 624 | DFS_SRC_DIR := $(DFS_DIR)/src |
| 625 | |
| 626 | DFS_INC := -I$(WLAN_ROOT)/$(DFS_INC_DIR) \ |
| 627 | -I$(WLAN_ROOT)/$(DFS_SRC_DIR) |
| 628 | |
| 629 | DFS_OBJS := $(DFS_SRC_DIR)/dfs_bindetects.o \ |
| 630 | $(DFS_SRC_DIR)/dfs.o \ |
| 631 | $(DFS_SRC_DIR)/dfs_debug.o\ |
| 632 | $(DFS_SRC_DIR)/dfs_fcc_bin5.o\ |
| 633 | $(DFS_SRC_DIR)/dfs_init.o\ |
| 634 | $(DFS_SRC_DIR)/dfs_misc.o\ |
| 635 | $(DFS_SRC_DIR)/dfs_nol.o\ |
| 636 | $(DFS_SRC_DIR)/dfs_phyerr_tlv.o\ |
| 637 | $(DFS_SRC_DIR)/dfs_process_phyerr.o\ |
| 638 | $(DFS_SRC_DIR)/dfs_process_radarevent.o\ |
| 639 | $(DFS_SRC_DIR)/dfs_staggered.o |
| 640 | |
| 641 | ############ SME ############ |
| 642 | SME_DIR := core/sme |
| 643 | SME_INC_DIR := $(SME_DIR)/inc |
| 644 | SME_SRC_DIR := $(SME_DIR)/src |
| 645 | |
| 646 | SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \ |
| 647 | -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr |
| 648 | |
| 649 | SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \ |
| 650 | $(SME_SRC_DIR)/csr/csr_api_scan.o \ |
| 651 | $(SME_SRC_DIR)/csr/csr_cmd_process.o \ |
| 652 | $(SME_SRC_DIR)/csr/csr_link_list.o \ |
| 653 | $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \ |
Varun Reddy Yeturu | 86459d6 | 2016-02-22 10:07:02 -0800 | [diff] [blame] | 654 | $(SME_SRC_DIR)/csr/csr_util.o \ |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 655 | |
| 656 | |
| 657 | ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y) |
| 658 | SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \ |
Varun Reddy Yeturu | 86459d6 | 2016-02-22 10:07:02 -0800 | [diff] [blame] | 659 | $(SME_SRC_DIR)/csr/csr_host_scan_roam.o |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 660 | endif |
| 661 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 662 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 663 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 664 | SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_tdls_process.o |
| 665 | endif |
| 666 | |
| 667 | SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o |
| 668 | |
| 669 | SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \ |
| 670 | $(SME_SRC_DIR)/common/sme_ft_api.o \ |
| 671 | $(SME_SRC_DIR)/common/sme_power_save.o \ |
| 672 | $(SME_SRC_DIR)/common/sme_trace.o |
| 673 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 674 | SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_api.o |
| 675 | |
| 676 | SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o |
| 677 | |
| 678 | ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y) |
| 679 | SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o |
| 680 | endif |
| 681 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 682 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 683 | SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o |
| 684 | endif |
| 685 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 686 | SME_OBJS := $(SME_CMN_OBJS) \ |
| 687 | $(SME_CSR_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 688 | $(SME_P2P_OBJS) \ |
| 689 | $(SME_QOS_OBJS) \ |
| 690 | $(SME_RRM_OBJS) \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 691 | $(SME_NAN_OBJS) \ |
| 692 | $(SME_NDP_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 693 | |
| 694 | ############ NLINK ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 695 | NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 696 | NLINK_INC_DIR := $(NLINK_DIR)/inc |
| 697 | NLINK_SRC_DIR := $(NLINK_DIR)/src |
| 698 | |
| 699 | NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR) |
| 700 | NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o |
| 701 | |
| 702 | ############ PTT ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 703 | PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 704 | PTT_INC_DIR := $(PTT_DIR)/inc |
| 705 | PTT_SRC_DIR := $(PTT_DIR)/src |
| 706 | |
| 707 | PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR) |
| 708 | PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o |
| 709 | |
| 710 | ############ WLAN_LOGGING ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 711 | WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 712 | WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc |
| 713 | WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src |
| 714 | |
| 715 | WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR) |
| 716 | WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o |
| 717 | |
| 718 | ############ SYS ############ |
| 719 | SYS_DIR := core/mac/src/sys |
| 720 | |
| 721 | SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \ |
| 722 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \ |
| 723 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \ |
| 724 | -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc |
| 725 | |
| 726 | SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src |
| 727 | SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src |
| 728 | SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \ |
| 729 | $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \ |
| 730 | $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \ |
| 731 | $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \ |
| 732 | $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \ |
| 733 | $(SYS_LEGACY_SRC_DIR)/utils/src/log_api.o \ |
| 734 | $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \ |
| 735 | $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 736 | $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o |
| 737 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 738 | ############ Qca-wifi-host-cmn ############ |
| 739 | QDF_OS_DIR := qdf |
| 740 | QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc |
| 741 | QDF_OS_SRC_DIR := $(QDF_OS_DIR)/linux/src |
| 742 | QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 743 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 744 | QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \ |
| 745 | -I$(WLAN_COMMON_INC)/$(QDF_OS_SRC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 746 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 747 | QDF_OBJS := $(QDF_OBJ_DIR)/qdf_defer.o \ |
| 748 | $(QDF_OBJ_DIR)/qdf_event.o \ |
| 749 | $(QDF_OBJ_DIR)/qdf_list.o \ |
| 750 | $(QDF_OBJ_DIR)/qdf_lock.o \ |
| 751 | $(QDF_OBJ_DIR)/qdf_mc_timer.o \ |
| 752 | $(QDF_OBJ_DIR)/qdf_mem.o \ |
| 753 | $(QDF_OBJ_DIR)/qdf_nbuf.o \ |
| 754 | $(QDF_OBJ_DIR)/qdf_threads.o \ |
| 755 | $(QDF_OBJ_DIR)/qdf_trace.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 756 | |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 757 | ifeq ($(CONFIG_WLAN_DEBUGFS), y) |
| 758 | QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debugfs.o |
| 759 | endif |
| 760 | |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 761 | |
| 762 | ##########OS_IF ####### |
| 763 | OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if |
| 764 | |
| 765 | OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux \ |
| 766 | -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \ |
| 767 | -I$(WLAN_COMMON_INC)/os_if/linux/p2p/inc |
| 768 | |
| 769 | OS_IF_OBJ := $(OS_IF_DIR)/linux/p2p/src/wlan_cfg80211_p2p.o |
Sandeep Puligilla | fdd201e | 2017-02-02 18:43:46 -0800 | [diff] [blame] | 770 | |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 771 | ############ UMAC_DISP ############ |
| 772 | UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if |
| 773 | UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc |
| 774 | UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src |
| 775 | UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR) |
| 776 | |
| 777 | UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR) |
| 778 | |
| 779 | UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o |
| 780 | |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 781 | ############# UMAC_SCAN ############ |
| 782 | UMAC_SCAN_DIR := umac/scan |
| 783 | UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc |
| 784 | UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src |
| 785 | UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src |
Abhishek Singh | 8dfbd69 | 2017-02-21 11:11:10 +0530 | [diff] [blame] | 786 | UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 787 | |
| 788 | UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR) |
| 789 | UMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \ |
| 790 | $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db_ops.o \ |
| 791 | $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \ |
| 792 | $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \ |
| 793 | $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \ |
| 794 | $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \ |
Abhishek Singh | 310503c | 2017-03-07 11:19:10 +0530 | [diff] [blame] | 795 | $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \ |
| 796 | $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \ |
| 797 | $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \ |
| 798 | $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 799 | |
| 800 | ############# UMAC_CMN_SERVICES ############ |
Abhishek Singh | 8dfbd69 | 2017-02-21 11:11:10 +0530 | [diff] [blame] | 801 | UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \ |
| 802 | -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc |
| 803 | UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 804 | |
Dhanashri Atre | 170855e | 2016-12-15 13:26:54 -0800 | [diff] [blame] | 805 | ifeq ($(CONFIG_WLAN_LRO), y) |
| 806 | QDF_OBJS += $(QDF_OBJ_DIR)/qdf_lro.o |
| 807 | endif |
| 808 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 809 | ############ CDS (Connectivity driver services) ############ |
| 810 | CDS_DIR := core/cds |
| 811 | CDS_INC_DIR := $(CDS_DIR)/inc |
| 812 | CDS_SRC_DIR := $(CDS_DIR)/src |
| 813 | |
| 814 | CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \ |
| 815 | -I$(WLAN_ROOT)/$(CDS_SRC_DIR) |
| 816 | |
| 817 | CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 818 | $(CDS_SRC_DIR)/cds_reg_service.o \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 819 | $(CDS_SRC_DIR)/cds_packet.o \ |
| 820 | $(CDS_SRC_DIR)/cds_regdomain.o \ |
| 821 | $(CDS_SRC_DIR)/cds_sched.o \ |
Krunal Soni | d32c6bc | 2016-10-18 18:00:21 -0700 | [diff] [blame] | 822 | $(CDS_SRC_DIR)/cds_utils.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 823 | |
| 824 | |
Selvaraj, Sridhar | 0672a12 | 2016-12-29 16:11:48 +0530 | [diff] [blame] | 825 | ###### UMAC OBJMGR ######## |
| 826 | UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr |
| 827 | |
| 828 | UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \ |
| 829 | -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \ |
| 830 | -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \ |
| 831 | -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc |
| 832 | |
| 833 | UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \ |
| 834 | $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \ |
| 835 | $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \ |
| 836 | $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \ |
Rajeev Kumar | b32b8a9 | 2017-02-01 14:35:54 -0800 | [diff] [blame] | 837 | $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_service_ready_api.o \ |
Selvaraj, Sridhar | 0672a12 | 2016-12-29 16:11:48 +0530 | [diff] [blame] | 838 | $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o |
| 839 | |
Himanshu Agarwal | 2fdf77a | 2016-12-29 11:41:00 +0530 | [diff] [blame] | 840 | ########### UMAC MGMT TXRX ########## |
| 841 | UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx |
| 842 | |
Himanshu Agarwal | 795b7f7 | 2017-01-17 21:19:43 +0530 | [diff] [blame] | 843 | UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \ |
Himanshu Agarwal | 2fdf77a | 2016-12-29 11:41:00 +0530 | [diff] [blame] | 844 | |
| 845 | UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \ |
| 846 | $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \ |
| 847 | $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o |
| 848 | |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 849 | ########## POWER MANAGEMENT OFFLOADS (PMO) ########## |
| 850 | PMO_DIR := $(WLAN_COMMON_ROOT)/power_management_offloads |
| 851 | PMO_INC := -I$(WLAN_COMMON_INC)/power_management_offloads/core/inc \ |
| 852 | -I$(WLAN_COMMON_INC)/power_management_offloads/dispatcher/inc \ |
| 853 | -I$(WLAN_COMMON_INC)/power_management_offloads/core/src \ |
| 854 | -I$(WLAN_COMMON_INC)/power_management_offloads/dispatcher/src |
| 855 | |
| 856 | PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \ |
| 857 | $(PMO_DIR)/core/src/wlan_pmo_arp.o \ |
| 858 | $(PMO_DIR)/core/src/wlan_pmo_ns.o \ |
| 859 | $(PMO_DIR)/core/src/wlan_pmo_gtk.o \ |
| 860 | $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \ |
| 861 | $(PMO_DIR)/core/src/wlan_pmo_static_config.o \ |
| 862 | $(PMO_DIR)/core/src/wlan_pmo_wow.o \ |
Mukul Sharma | 4c60a7e | 2017-03-06 19:42:18 +0530 | [diff] [blame] | 863 | $(PMO_DIR)/core/src/wlan_pmo_lphb.o \ |
| 864 | $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \ |
Ravi Kumar Bokka | 794fd71 | 2017-03-21 20:52:46 +0530 | [diff] [blame] | 865 | $(PMO_DIR)/core/src/wlan_pmo_hw_bcast_fltr.o \ |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 866 | $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \ |
| 867 | $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \ |
| 868 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \ |
| 869 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o \ |
| 870 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \ |
| 871 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \ |
| 872 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \ |
Mukul Sharma | 4c60a7e | 2017-03-06 19:42:18 +0530 | [diff] [blame] | 873 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \ |
| 874 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \ |
Ravi Kumar Bokka | 794fd71 | 2017-03-21 20:52:46 +0530 | [diff] [blame] | 875 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \ |
| 876 | $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_non_arp_bcast_fltr.o |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 877 | |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 878 | ############## UMAC P2P ########### |
| 879 | P2P_DIR := umac/p2p |
| 880 | P2P_CORE_DIR := $(P2P_DIR)/core |
| 881 | P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src |
| 882 | P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR) |
| 883 | P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher |
| 884 | P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc |
| 885 | P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src |
| 886 | P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR) |
| 887 | UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \ |
| 888 | -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc |
| 889 | UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \ |
| 890 | $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \ |
| 891 | $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \ |
| 892 | $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \ |
| 893 | $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o |
| 894 | |
Tushnim Bhattacharyya | 44939d4 | 2017-02-15 17:08:12 -0800 | [diff] [blame] | 895 | ###### UMAC POLICY MGR ######## |
| 896 | UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr |
| 897 | |
| 898 | UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \ |
| 899 | -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src |
| 900 | |
| 901 | UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \ |
| 902 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \ |
| 903 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \ |
| 904 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \ |
| 905 | $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \ |
| 906 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 907 | ########### BMI ########### |
| 908 | BMI_DIR := core/bmi |
| 909 | |
| 910 | BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc |
| 911 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 912 | BMI_OBJS := $(BMI_DIR)/src/bmi.o \ |
Poddar, Siddarth | ef1f302 | 2016-05-10 20:10:43 +0530 | [diff] [blame] | 913 | $(BMI_DIR)/src/ol_fw.o \ |
| 914 | $(BMI_DIR)/src/ol_fw_common.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 915 | BMI_OBJS += $(BMI_DIR)/src/bmi_1.o |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 916 | |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 917 | ########## TARGET_IF ####### |
| 918 | TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if |
| 919 | |
| 920 | TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \ |
Rajeev Kumar | da2444c | 2017-01-10 22:42:07 -0800 | [diff] [blame] | 921 | -I$(WLAN_COMMON_INC)/target_if/core/src \ |
Mukul Sharma | 0cdf8b3 | 2017-02-04 14:27:56 +0530 | [diff] [blame] | 922 | -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \ |
| 923 | -I$(WLAN_COMMON_INC)/target_if/pmo/inc \ |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 924 | -I$(WLAN_COMMON_INC)/target_if/pmo/src \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 925 | -I$(WLAN_COMMON_INC)/target_if/p2p/inc \ |
| 926 | -I$(WLAN_COMMON_INC)/target_if/regulatory/inc |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 927 | |
Rajeev Kumar | da2444c | 2017-01-10 22:42:07 -0800 | [diff] [blame] | 928 | TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \ |
Mukul Sharma | 0cdf8b3 | 2017-02-04 14:27:56 +0530 | [diff] [blame] | 929 | $(TARGET_IF_DIR)/init_deinit/src/service_ready_event_handler.o \ |
| 930 | $(TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \ |
| 931 | $(TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \ |
| 932 | $(TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o \ |
| 933 | $(TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \ |
| 934 | $(TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o \ |
Ravi Kumar Bokka | 794fd71 | 2017-03-21 20:52:46 +0530 | [diff] [blame] | 935 | $(TARGET_IF_DIR)/pmo/src/target_if_pmo_non_arp_bcast_fltr.o \ |
Mukul Sharma | 0cdf8b3 | 2017-02-04 14:27:56 +0530 | [diff] [blame] | 936 | $(TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \ |
Mukul Sharma | 4c60a7e | 2017-03-06 19:42:18 +0530 | [diff] [blame] | 937 | $(TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \ |
| 938 | $(TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \ |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 939 | $(TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 940 | $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \ |
| 941 | $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 942 | |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 943 | ########### GLOBAL_LMAC_IF ########## |
| 944 | GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if |
| 945 | |
| 946 | GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \ |
| 947 | -I$(WLAN_COMMON_INC)/global_lmac_if/src |
| 948 | |
| 949 | GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o |
| 950 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 951 | ########### WMI ########### |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 952 | WMI_ROOT_DIR := wmi |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 953 | |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 954 | WMI_SRC_DIR := $(WMI_ROOT_DIR)/src |
| 955 | WMI_INC_DIR := $(WMI_ROOT_DIR)/inc |
| 956 | WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 957 | |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 958 | WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR) |
| 959 | |
| 960 | WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \ |
| 961 | $(WMI_OBJ_DIR)/wmi_tlv_helper.o \ |
| 962 | $(WMI_OBJ_DIR)/wmi_unified_tlv.o \ |
| 963 | $(WMI_OBJ_DIR)/wmi_unified_api.o \ |
Mukul Sharma | 0cdf8b3 | 2017-02-04 14:27:56 +0530 | [diff] [blame] | 964 | $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 965 | $(WMI_OBJ_DIR)/wmi_unified_reg_api.o \ |
Govind Singh | 0fea23a | 2016-03-18 12:59:27 +0530 | [diff] [blame] | 966 | $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 967 | |
| 968 | ########### FWLOG ########### |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 969 | FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 970 | |
| 971 | FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR) |
| 972 | |
| 973 | FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o |
| 974 | |
| 975 | ############ TXRX ############ |
| 976 | TXRX_DIR := core/dp/txrx |
| 977 | TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR) |
| 978 | |
| 979 | TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \ |
| 980 | $(TXRX_DIR)/ol_cfg.o \ |
| 981 | $(TXRX_DIR)/ol_rx.o \ |
| 982 | $(TXRX_DIR)/ol_rx_fwd.o \ |
| 983 | $(TXRX_DIR)/ol_txrx.o \ |
| 984 | $(TXRX_DIR)/ol_rx_defrag.o \ |
| 985 | $(TXRX_DIR)/ol_tx_desc.o \ |
| 986 | $(TXRX_DIR)/ol_tx.o \ |
| 987 | $(TXRX_DIR)/ol_rx_reorder_timeout.o \ |
| 988 | $(TXRX_DIR)/ol_rx_reorder.o \ |
| 989 | $(TXRX_DIR)/ol_rx_pn.o \ |
| 990 | $(TXRX_DIR)/ol_tx_queue.o \ |
| 991 | $(TXRX_DIR)/ol_txrx_peer_find.o \ |
| 992 | $(TXRX_DIR)/ol_txrx_event.o \ |
| 993 | $(TXRX_DIR)/ol_txrx_encap.o \ |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 994 | $(TXRX_DIR)/ol_tx_send.o \ |
| 995 | $(TXRX_DIR)/ol_tx_sched.o \ |
| 996 | $(TXRX_DIR)/ol_tx_classify.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 997 | |
| 998 | ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y) |
| 999 | TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o |
| 1000 | endif |
| 1001 | |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1002 | ifeq ($(CONFIG_LITHIUM), y) |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1003 | ############ DP 3.0 ############ |
| 1004 | DP_INC := -I$(WLAN_COMMON_ROOT)/dp/inc \ |
| 1005 | -I$(WLAN_COMMON_ROOT)/dp/wifi3.0 |
| 1006 | |
| 1007 | DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0 |
| 1008 | DP_OBJS := $(DP_SRC)/dp_main.o \ |
| 1009 | $(DP_SRC)/dp_tx.o \ |
| 1010 | $(DP_SRC)/dp_tx_desc.o \ |
| 1011 | $(DP_SRC)/dp_rx.o \ |
| 1012 | $(DP_SRC)/dp_rx_err.o \ |
| 1013 | $(DP_SRC)/dp_htt.o \ |
| 1014 | $(DP_SRC)/dp_peer.o \ |
Debashis Dutt | 237c614 | 2017-01-04 11:28:59 -0800 | [diff] [blame] | 1015 | $(DP_SRC)/dp_rx_desc.o \ |
Ravi Joshi | 12665a0 | 2017-03-08 16:35:04 -0800 | [diff] [blame] | 1016 | $(DP_SRC)/dp_reo.o \ |
| 1017 | $(DP_SRC)/dp_rx_mon_dest.o \ |
| 1018 | $(DP_SRC)/dp_rx_mon_status.o |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1019 | endif |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1020 | |
| 1021 | ############ CFG ############ |
Ravi Joshi | d55b18a | 2017-02-17 10:48:14 -0800 | [diff] [blame] | 1022 | WCFG_DIR := wlan_cfg |
| 1023 | WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR) |
| 1024 | WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR) |
| 1025 | WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1026 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1027 | ############ OL ############ |
| 1028 | OL_DIR := core/dp/ol |
| 1029 | OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc |
| 1030 | |
Dhanashri Atre | 12a0839 | 2016-02-17 13:10:34 -0800 | [diff] [blame] | 1031 | ############ CDP ############ |
| 1032 | CDP_ROOT_DIR := dp |
| 1033 | CDP_INC_DIR := $(CDP_ROOT_DIR)/inc |
| 1034 | CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR) |
| 1035 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1036 | ############ PKTLOG ############ |
Srinivas Girigowda | c1bb1bd | 2017-01-10 16:56:54 -0800 | [diff] [blame] | 1037 | PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1038 | PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include |
| 1039 | |
| 1040 | PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \ |
| 1041 | $(PKTLOG_DIR)/pktlog_internal.o \ |
| 1042 | $(PKTLOG_DIR)/linux_ac.o |
| 1043 | |
| 1044 | ############ HTT ############ |
| 1045 | HTT_DIR := core/dp/htt |
| 1046 | HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR) |
| 1047 | |
| 1048 | HTT_OBJS := $(HTT_DIR)/htt_tx.o \ |
| 1049 | $(HTT_DIR)/htt.o \ |
| 1050 | $(HTT_DIR)/htt_t2h.o \ |
| 1051 | $(HTT_DIR)/htt_h2t.o \ |
| 1052 | $(HTT_DIR)/htt_fw_stats.o \ |
| 1053 | $(HTT_DIR)/htt_rx.o |
| 1054 | |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1055 | |
| 1056 | ############## INIT-DEINIT ########### |
| 1057 | INIT_DEINIT_DIR := init_deinit/dispatcher |
| 1058 | INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc |
| 1059 | INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src |
| 1060 | INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR) |
| 1061 | INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR) |
| 1062 | INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o |
| 1063 | |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 1064 | ############## REGULATORY ########### |
| 1065 | REGULATORY_DIR := umac/regulatory |
| 1066 | REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc |
| 1067 | REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src |
| 1068 | REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc |
| 1069 | REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src |
| 1070 | REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR) |
| 1071 | REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR) |
| 1072 | REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR) |
| 1073 | REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR) |
| 1074 | REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \ |
| 1075 | $(REG_CORE_OBJ_DIR)/reg_services.o \ |
| 1076 | $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \ |
| 1077 | $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \ |
| 1078 | $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o |
| 1079 | |
Rajeev Kumar | 1705fc2 | 2016-11-30 16:12:16 -0800 | [diff] [blame] | 1080 | ############## Control path common scheduler ########## |
Rajeev Kumar | ebb0a73 | 2016-12-24 19:05:44 -0800 | [diff] [blame] | 1081 | SCHEDULER_DIR := scheduler |
| 1082 | SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc |
| 1083 | SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src |
| 1084 | SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR) |
| 1085 | SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR) |
| 1086 | SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \ |
| 1087 | $(SCHEDULER_OBJ_DIR)/scheduler_core.o |
Rajeev Kumar | 1705fc2 | 2016-11-30 16:12:16 -0800 | [diff] [blame] | 1088 | |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1089 | ###### UMAC SERIALIZATION ######## |
| 1090 | UMAC_SER_DIR := umac/cmn_services/serialization |
| 1091 | UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc |
| 1092 | UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src |
| 1093 | UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR) |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1094 | |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1095 | UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR) |
| 1096 | UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_dequeue.o \ |
| 1097 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_enqueue.o \ |
| 1098 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \ |
| 1099 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \ |
| 1100 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \ |
Varun Reddy Yeturu | 35c07f9 | 2017-02-28 10:35:00 -0800 | [diff] [blame] | 1101 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \ |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1102 | $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1103 | |
| 1104 | ###### WIFI POS ######## |
Naveen Rawat | 91a27b7 | 2017-03-20 18:49:57 -0700 | [diff] [blame] | 1105 | CONFIG_WIFI_POS_CONVERGED := y |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1106 | |
| 1107 | WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src |
| 1108 | WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc |
| 1109 | WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src |
| 1110 | WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc |
| 1111 | WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src |
| 1112 | WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc |
| 1113 | |
| 1114 | |
| 1115 | ifeq ($(CONFIG_WIFI_POS_CONVERGED), y) |
| 1116 | WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \ |
| 1117 | $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \ |
| 1118 | $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \ |
| 1119 | $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \ |
| 1120 | $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \ |
| 1121 | $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o |
| 1122 | endif |
| 1123 | |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 1124 | ######################### NAN ######################### |
| 1125 | NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src |
| 1126 | NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc |
| 1127 | NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src |
| 1128 | NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc |
| 1129 | NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src |
| 1130 | NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc |
| 1131 | NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src |
| 1132 | NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc |
| 1133 | |
| 1134 | ifeq ($(CONFIG_NAN_CONVERGENCE), y) |
| 1135 | WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \ |
| 1136 | $(NAN_CORE_DIR)/nan_api.o \ |
| 1137 | $(NAN_CORE_DIR)/nan_utils.o \ |
| 1138 | $(NAN_UCFG_DIR)/nan_ucfg_api.o \ |
| 1139 | $(NAN_TGT_DIR)/target_if_nan.o \ |
| 1140 | $(NAN_OS_IF_DIR)/os_if_nan.o |
| 1141 | endif |
| 1142 | ####################################################### |
| 1143 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1144 | ############## HTC ########## |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1145 | HTC_DIR := htc |
| 1146 | HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1147 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1148 | HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \ |
| 1149 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \ |
| 1150 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \ |
| 1151 | $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1152 | |
| 1153 | ########### HIF ########### |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1154 | HIF_DIR := hif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1155 | HIF_CE_DIR := $(HIF_DIR)/src/ce |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1156 | |
| 1157 | HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher |
| 1158 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1159 | HIF_PCIE_DIR := $(HIF_DIR)/src/pcie |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1160 | HIF_SNOC_DIR := $(HIF_DIR)/src/snoc |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1161 | HIF_USB_DIR := $(HIF_DIR)/src/usb |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1162 | HIF_SDIO_DIR := $(HIF_DIR)/src/sdio |
| 1163 | |
| 1164 | HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio |
| 1165 | HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include |
| 1166 | HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1167 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1168 | HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \ |
| 1169 | -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src \ |
Yuanyuan Liu | 9135361 | 2016-05-04 12:02:00 -0700 | [diff] [blame] | 1170 | -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1171 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1172 | ifeq ($(CONFIG_HIF_PCI), 1) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1173 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1174 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1175 | endif |
| 1176 | |
| 1177 | ifeq ($(CONFIG_HIF_SNOC), 1) |
| 1178 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1179 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1180 | endif |
| 1181 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1182 | ifeq ($(CONFIG_HIF_USB), 1) |
| 1183 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
| 1184 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR) |
| 1185 | endif |
| 1186 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1187 | ifeq ($(CONFIG_HIF_SDIO), 1) |
| 1188 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR) |
| 1189 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR) |
| 1190 | HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR) |
| 1191 | endif |
| 1192 | |
| 1193 | HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \ |
| 1194 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \ |
| 1195 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o |
| 1196 | |
| 1197 | HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o \ |
| 1198 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \ |
| 1199 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \ |
| 1200 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \ |
| 1201 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \ |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1202 | $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1203 | |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1204 | ifeq ($(CONFIG_LITHIUM), y) |
| 1205 | HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o \ |
| 1206 | $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o |
Houston Hoffman | a0f9349 | 2016-11-18 13:42:12 -0800 | [diff] [blame] | 1207 | endif |
| 1208 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1209 | HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \ |
| 1210 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \ |
| 1211 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \ |
| 1212 | $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o |
| 1213 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1214 | HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_send.o \ |
| 1215 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o \ |
| 1216 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \ |
| 1217 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \ |
| 1218 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \ |
| 1219 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_recv.o \ |
| 1220 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o |
| 1221 | |
| 1222 | HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \ |
| 1223 | $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1224 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1225 | ifeq ($(CONFIG_WLAN_NAPI), y) |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1226 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1227 | endif |
| 1228 | |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1229 | HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1230 | HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1231 | HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1232 | |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1233 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o |
Houston Hoffman | b61b9b1 | 2016-03-03 20:04:16 -0800 | [diff] [blame] | 1234 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1235 | |
| 1236 | ifeq ($(CONFIG_HIF_PCI), 1) |
| 1237 | HIF_OBJS += $(HIF_PCIE_OBJS) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1238 | HIF_OBJS += $(HIF_COMMON_OBJS) |
| 1239 | HIF_OBJS += $(HIF_CE_OBJS) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1240 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o |
| 1241 | endif |
| 1242 | |
| 1243 | ifeq ($(CONFIG_HIF_SNOC), 1) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1244 | HIF_OBJS += $(HIF_SNOC_OBJS) |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1245 | HIF_OBJS += $(HIF_COMMON_OBJS) |
| 1246 | HIF_OBJS += $(HIF_CE_OBJS) |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1247 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1248 | endif |
| 1249 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1250 | ifeq ($(CONFIG_HIF_SDIO), 1) |
| 1251 | HIF_OBJS += $(HIF_SDIO_OBJS) |
| 1252 | HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS) |
| 1253 | HIF_OBJS += $(HIF_COMMON_OBJS) |
| 1254 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o |
| 1255 | endif |
| 1256 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1257 | ifeq ($(CONFIG_HIF_USB), 1) |
| 1258 | HIF_OBJS += $(HIF_USB_OBJS) |
| 1259 | HIF_OBJS += $(HIF_COMMON_OBJS) |
| 1260 | HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o |
| 1261 | endif |
| 1262 | |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1263 | ifeq ($(CONFIG_LITHIUM), y) |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1264 | ############ HAL ############ |
| 1265 | HAL_DIR := hal |
| 1266 | HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \ |
| 1267 | -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0 |
| 1268 | |
| 1269 | HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \ |
| 1270 | $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \ |
Debashis Dutt | 237c614 | 2017-01-04 11:28:59 -0800 | [diff] [blame] | 1271 | $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \ |
| 1272 | $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1273 | endif |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1274 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1275 | ############ WMA ############ |
| 1276 | WMA_DIR := core/wma |
| 1277 | |
| 1278 | WMA_INC_DIR := $(WMA_DIR)/inc |
| 1279 | WMA_SRC_DIR := $(WMA_DIR)/src |
| 1280 | |
| 1281 | WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \ |
| 1282 | -I$(WLAN_ROOT)/$(WMA_SRC_DIR) |
| 1283 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 1284 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 1285 | WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o |
| 1286 | endif |
| 1287 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1288 | WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \ |
| 1289 | $(WMA_SRC_DIR)/wma_scan_roam.o \ |
| 1290 | $(WMA_SRC_DIR)/wma_dev_if.o \ |
| 1291 | $(WMA_SRC_DIR)/wma_mgmt.o \ |
| 1292 | $(WMA_SRC_DIR)/wma_power.o \ |
| 1293 | $(WMA_SRC_DIR)/wma_data.o \ |
| 1294 | $(WMA_SRC_DIR)/wma_utils.o \ |
| 1295 | $(WMA_SRC_DIR)/wma_features.o \ |
| 1296 | $(WMA_SRC_DIR)/wma_dfs_interface.o \ |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 1297 | $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\ |
| 1298 | $(WMA_NDP_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1299 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1300 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
Jeff Johnson | b90ab57 | 2017-01-31 15:57:35 -0800 | [diff] [blame] | 1301 | WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1302 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1303 | ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y) |
| 1304 | WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o |
| 1305 | endif |
Krishna Kumaar Natarajan | d0bbb3c | 2017-03-13 17:04:58 -0700 | [diff] [blame] | 1306 | ifeq ($(CONFIG_WLAN_FEATURE_11AX), y) |
| 1307 | WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o |
| 1308 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1309 | |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1310 | ############## PLD ########## |
| 1311 | PLD_DIR := core/pld |
| 1312 | PLD_INC_DIR := $(PLD_DIR)/inc |
| 1313 | PLD_SRC_DIR := $(PLD_DIR)/src |
| 1314 | |
| 1315 | PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \ |
| 1316 | -I$(WLAN_ROOT)/$(PLD_SRC_DIR) |
| 1317 | |
| 1318 | PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o |
| 1319 | |
| 1320 | ifeq ($(CONFIG_PCI), y) |
| 1321 | PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o |
| 1322 | endif |
| 1323 | ifeq ($(CONFIG_ICNSS),y) |
| 1324 | PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o |
| 1325 | endif |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1326 | ifeq ($(CONFIG_CNSS_SDIO),y) |
| 1327 | PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o |
| 1328 | endif |
Mohit Khanna | e7a4357 | 2016-10-10 17:34:21 -0700 | [diff] [blame] | 1329 | ifeq ($(CONFIG_PLD_USB_CNSS), y) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1330 | PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o |
| 1331 | endif |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1332 | |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1333 | TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v1 \ |
| 1334 | -I$(WLAN_ROOT)/../fw-api/fw |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1335 | |
| 1336 | LINUX_INC := -Iinclude/linux |
| 1337 | |
| 1338 | INCS := $(HDD_INC) \ |
| 1339 | $(EPPING_INC) \ |
| 1340 | $(LINUX_INC) \ |
| 1341 | $(MAC_INC) \ |
| 1342 | $(SAP_INC) \ |
| 1343 | $(SME_INC) \ |
| 1344 | $(SYS_INC) \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1345 | $(QDF_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1346 | $(CDS_INC) \ |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 1347 | $(DFS_INC) \ |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 1348 | $(TARGET_IF_INC) \ |
Sandeep Puligilla | fdd201e | 2017-02-02 18:43:46 -0800 | [diff] [blame] | 1349 | $(OS_IF_INC) \ |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 1350 | $(GLOBAL_LMAC_IF_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1351 | |
| 1352 | INCS += $(WMA_INC) \ |
| 1353 | $(UAPI_INC) \ |
| 1354 | $(COMMON_INC) \ |
| 1355 | $(WMI_INC) \ |
| 1356 | $(FWLOG_INC) \ |
| 1357 | $(TXRX_INC) \ |
| 1358 | $(OL_INC) \ |
Dhanashri Atre | 12a0839 | 2016-02-17 13:10:34 -0800 | [diff] [blame] | 1359 | $(CDP_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1360 | $(PKTLOG_INC) \ |
| 1361 | $(HTT_INC) \ |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1362 | $(INIT_DEINIT_INC) \ |
Rajeev Kumar | ebb0a73 | 2016-12-24 19:05:44 -0800 | [diff] [blame] | 1363 | $(SCHEDULER_INC) \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 1364 | $(REGULATORY_INC) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1365 | $(HTC_INC) \ |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1366 | $(DFS_INC) \ |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1367 | $(WCFG_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1368 | |
| 1369 | INCS += $(HIF_INC) \ |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1370 | $(BMI_INC) |
| 1371 | |
| 1372 | ifeq ($(CONFIG_LITHIUM), y) |
| 1373 | INCS += $(HAL_INC) \ |
| 1374 | $(DP_INC) |
| 1375 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1376 | |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1377 | ################ WIFI POS ################ |
| 1378 | INCS += $(WIFI_POS_API_INC) |
| 1379 | INCS += $(WIFI_POS_TGT_INC) |
| 1380 | INCS += $(WIFI_POS_OS_IF_INC) |
| 1381 | ########################################## |
| 1382 | |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 1383 | ################ NAN POS ################ |
| 1384 | INCS += $(NAN_CORE_INC) |
| 1385 | INCS += $(NAN_UCFG_INC) |
| 1386 | INCS += $(NAN_TGT_INC) |
| 1387 | INCS += $(NAN_OS_IF_INC) |
| 1388 | ########################################## |
Selvaraj, Sridhar | 0672a12 | 2016-12-29 16:11:48 +0530 | [diff] [blame] | 1389 | INCS += $(UMAC_OBJMGR_INC) |
Himanshu Agarwal | 2fdf77a | 2016-12-29 11:41:00 +0530 | [diff] [blame] | 1390 | INCS += $(UMAC_MGMT_TXRX_INC) |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 1391 | INCS += $(PMO_INC) |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 1392 | INCS += $(UMAC_P2P_INC) |
Tushnim Bhattacharyya | 44939d4 | 2017-02-15 17:08:12 -0800 | [diff] [blame] | 1393 | INCS += $(UMAC_POLICY_MGR_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1394 | INCS += $(TARGET_INC) |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1395 | INCS += $(UMAC_SER_INC) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1396 | INCS += $(NLINK_INC) \ |
| 1397 | $(PTT_INC) \ |
| 1398 | $(WLAN_LOGGING_INC) |
| 1399 | |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1400 | INCS += $(PLD_INC) |
| 1401 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1402 | ifeq ($(CONFIG_REMOVE_PKT_LOG), 0) |
| 1403 | INCS += $(PKTLOG_INC) |
| 1404 | endif |
| 1405 | |
| 1406 | ifeq ($(BUILD_DIAG_VERSION), 1) |
| 1407 | INCS += $(HOST_DIAG_LOG_INC) |
| 1408 | endif |
| 1409 | |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 1410 | INCS += $(UMAC_DISP_INC) |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 1411 | INCS += $(UMAC_SCAN_INC) |
Abhishek Singh | 8dfbd69 | 2017-02-21 11:11:10 +0530 | [diff] [blame] | 1412 | INCS += $(UMAC_TARGET_SCAN_INC) |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 1413 | INCS += $(UMAC_COMMON_INC) |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 1414 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1415 | OBJS := $(HDD_OBJS) \ |
| 1416 | $(EPPING_OBJS) \ |
| 1417 | $(MAC_OBJS) \ |
| 1418 | $(SAP_OBJS) \ |
| 1419 | $(SME_OBJS) \ |
| 1420 | $(SYS_OBJS) \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1421 | $(QDF_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1422 | $(CDS_OBJS) \ |
| 1423 | $(DFS_OBJS) |
| 1424 | |
| 1425 | OBJS += $(WMA_OBJS) \ |
| 1426 | $(TXRX_OBJS) \ |
| 1427 | $(WMI_OBJS) \ |
| 1428 | $(FWLOG_OBJS) \ |
| 1429 | $(HTC_OBJS) \ |
Rajeev Kumar | 97767a0 | 2016-11-30 11:20:40 -0800 | [diff] [blame] | 1430 | $(INIT_DEINIT_OBJS) \ |
Rajeev Kumar | ebb0a73 | 2016-12-24 19:05:44 -0800 | [diff] [blame] | 1431 | $(SCHEDULER_OBJS) \ |
Kiran Kumar Lokere | 3fbafbc | 2017-01-10 12:57:52 -0800 | [diff] [blame] | 1432 | $(REGULATORY_OBJS) \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1433 | $(DFS_OBJS) |
| 1434 | |
| 1435 | OBJS += $(HIF_OBJS) \ |
| 1436 | $(BMI_OBJS) \ |
Mukul Sharma | c3e7a78 | 2017-02-03 12:16:11 +0530 | [diff] [blame] | 1437 | $(HTT_OBJS) \ |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 1438 | $(OS_IF_OBJ) \ |
Mukul Sharma | dad267e | 2017-02-04 13:25:34 +0530 | [diff] [blame] | 1439 | $(TARGET_IF_OBJ) \ |
| 1440 | $(GLOBAL_LMAC_IF_OBJ) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1441 | |
| 1442 | ifeq ($(CONFIG_LITHIUM), y) |
| 1443 | OBJS += $(HAL_OBJS) |
| 1444 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1445 | |
Selvaraj, Sridhar | 0672a12 | 2016-12-29 16:11:48 +0530 | [diff] [blame] | 1446 | OBJS += $(UMAC_OBJMGR_OBJS) |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1447 | OBJS += $(WIFI_POS_OBJS) |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 1448 | OBJS += $(WLAN_NAN_OBJS) |
Himanshu Agarwal | 2fdf77a | 2016-12-29 11:41:00 +0530 | [diff] [blame] | 1449 | OBJS += $(UMAC_MGMT_TXRX_OBJS) |
Mukul Sharma | c5de677 | 2017-01-05 14:32:36 +0530 | [diff] [blame] | 1450 | OBJS += $(PMO_OBJS) |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 1451 | OBJS += $(UMAC_P2P_OBJS) |
Tushnim Bhattacharyya | 44939d4 | 2017-02-15 17:08:12 -0800 | [diff] [blame] | 1452 | OBJS += $(UMAC_POLICY_MGR_OBJS) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1453 | OBJS += $(WLAN_LOGGING_OBJS) |
| 1454 | OBJS += $(NLINK_OBJS) |
| 1455 | OBJS += $(PTT_OBJS) |
Varun Reddy Yeturu | 269eca1 | 2017-01-03 06:32:07 -0800 | [diff] [blame] | 1456 | OBJS += $(UMAC_SER_OBJS) |
Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame] | 1457 | OBJS += $(PLD_OBJS) |
| 1458 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1459 | ifeq ($(CONFIG_REMOVE_PKT_LOG), 0) |
| 1460 | OBJS += $(PKTLOG_OBJS) |
| 1461 | endif |
| 1462 | |
| 1463 | ifeq ($(BUILD_DIAG_VERSION), 1) |
| 1464 | OBJS += $(HOST_DIAG_LOG_OBJS) |
| 1465 | endif |
| 1466 | |
Frank Liu | 65b17d9 | 2016-11-23 15:58:44 +0800 | [diff] [blame] | 1467 | OBJS += $(UMAC_DISP_OBJS) |
Abhishek Singh | 9be07e2 | 2017-02-21 10:59:57 +0530 | [diff] [blame] | 1468 | OBJS += $(UMAC_SCAN_OBJS) |
Abhishek Singh | 8dfbd69 | 2017-02-21 11:11:10 +0530 | [diff] [blame] | 1469 | OBJS += $(UMAC_COMMON_OBJS) |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 1470 | OBJS += $(WCFG_OBJS) |
| 1471 | |
| 1472 | ifeq ($(CONFIG_LITHIUM), y) |
| 1473 | OBJS += $(DP_OBJS) |
| 1474 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1475 | |
| 1476 | EXTRA_CFLAGS += $(INCS) |
| 1477 | |
| 1478 | CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \ |
| 1479 | -DANI_LITTLE_BIT_ENDIAN \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1480 | -DDOT11F_LITTLE_ENDIAN_HOST \ |
| 1481 | -DANI_COMPILER_TYPE_GCC \ |
| 1482 | -DANI_OS_TYPE_ANDROID=6 \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1483 | -DPTT_SOCK_SVC_ENABLE \ |
| 1484 | -Wall\ |
| 1485 | -Werror\ |
| 1486 | -D__linux__ \ |
| 1487 | -DHAL_SELF_STA_PER_BSS=1 \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1488 | -DFEATURE_WLAN_WAPI \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1489 | -DSOFTAP_CHANNEL_RANGE \ |
| 1490 | -DWLAN_AP_STA_CONCURRENCY \ |
| 1491 | -DFEATURE_WLAN_SCAN_PNO \ |
| 1492 | -DWLAN_FEATURE_PACKET_FILTERING \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1493 | -DWLAN_FEATURE_P2P_DEBUG \ |
| 1494 | -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \ |
| 1495 | -DWLANTL_DEBUG\ |
| 1496 | -DWLAN_NS_OFFLOAD \ |
| 1497 | -DWLAN_SOFTAP_VSTA_FEATURE \ |
| 1498 | -DWLAN_FEATURE_GTK_OFFLOAD \ |
| 1499 | -DWLAN_WAKEUP_EVENTS \ |
| 1500 | -DFEATURE_WLAN_RA_FILTERING\ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1501 | -DWLAN_NL80211_TESTMODE \ |
| 1502 | -DFEATURE_WLAN_LPHB \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1503 | -DQCA_SUPPORT_TX_THROTTLE \ |
| 1504 | -DWMI_INTERFACE_EVENT_LOGGING \ |
| 1505 | -DATH_SUPPORT_WAPI \ |
| 1506 | -DWLAN_FEATURE_LINK_LAYER_STATS \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1507 | -DFEATURE_WLAN_EXTSCAN \ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1508 | -DWLAN_FEATURE_MBSSID \ |
Prashanth Bhatta | 7e58dd3 | 2016-02-16 15:46:46 -0800 | [diff] [blame] | 1509 | -DCONFIG_160MHZ_SUPPORT \ |
Mukul Sharma | 0cdf8b3 | 2017-02-04 14:27:56 +0530 | [diff] [blame] | 1510 | -DCONFIG_MCL \ |
Sandeep Puligilla | 1fcdb77 | 2017-02-22 21:14:59 -0800 | [diff] [blame] | 1511 | -DNAPIER_SCAN \ |
Wu Gao | 64b3148 | 2017-03-10 15:16:10 +0800 | [diff] [blame] | 1512 | -DWLAN_PMO_ENABLE \ |
Wu Gao | 5491e52 | 2017-03-20 20:32:32 +0800 | [diff] [blame] | 1513 | -DCONVERGED_P2P_ENABLE \ |
Krishna Kumaar Natarajan | 4f1d772 | 2017-03-03 21:12:51 -0800 | [diff] [blame] | 1514 | -DWLAN_POLICY_MGR_ENABLE \ |
| 1515 | -DSUPPORT_11AX |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1516 | |
Naveen Rawat | 4e2c256 | 2017-03-06 10:47:02 -0800 | [diff] [blame] | 1517 | |
| 1518 | ############ WIFI POS ############## |
| 1519 | ifeq ($(CONFIG_WIFI_POS_CONVERGED), y) |
| 1520 | CDEFINES += -DWIFI_POS_CONVERGED |
| 1521 | else |
| 1522 | CDEFINES += -DFEATURE_OEM_DATA_SUPPORT |
| 1523 | endif |
| 1524 | #################################### |
| 1525 | |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1526 | ifneq ($(CONFIG_HIF_USB), 1) |
| 1527 | CDEFINES += -DWLAN_LOGGING_SOCK_SVC_ENABLE |
| 1528 | endif |
| 1529 | |
Yuanyuan Liu | 11f526a | 2016-05-18 10:22:07 -0700 | [diff] [blame] | 1530 | ifeq ($(CONFIG_CNSS), y) |
| 1531 | ifeq ($(CONFIG_CNSS_SDIO), y) |
| 1532 | CDEFINES += -DCONFIG_PLD_SDIO_CNSS |
| 1533 | else |
| 1534 | CDEFINES += -DCONFIG_PLD_PCIE_CNSS |
| 1535 | endif |
| 1536 | endif |
| 1537 | |
Yue Ma | e6a7a32 | 2016-08-31 11:09:23 -0700 | [diff] [blame] | 1538 | ifeq ($(CONFIG_CNSS2), y) |
| 1539 | CDEFINES += -DCONFIG_PLD_PCIE_CNSS |
Houston Hoffman | 435cd44 | 2016-11-23 14:20:42 -0800 | [diff] [blame] | 1540 | CDEFINES += -DCONFIG_PLD_PCIE_INIT |
Yue Ma | e6a7a32 | 2016-08-31 11:09:23 -0700 | [diff] [blame] | 1541 | endif |
| 1542 | |
Yue Ma | 2b09131 | 2017-02-15 15:56:47 -0800 | [diff] [blame] | 1543 | # Flag to enable bus auto suspend |
| 1544 | ifeq ($(CONFIG_ROME_IF),pci) |
| 1545 | ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y) |
| 1546 | CDEFINES += -DFEATURE_RUNTIME_PM |
| 1547 | endif |
| 1548 | endif |
| 1549 | |
Yuanyuan Liu | 11f526a | 2016-05-18 10:22:07 -0700 | [diff] [blame] | 1550 | ifeq ($(CONFIG_ICNSS), y) |
| 1551 | CDEFINES += -DCONFIG_PLD_SNOC_ICNSS |
| 1552 | endif |
| 1553 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1554 | ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS))) |
| 1555 | CDEFINES += -DQCA_WIFI_3_0 |
| 1556 | CDEFINES += -DQCA_WIFI_3_0_EMU |
| 1557 | endif |
| 1558 | |
| 1559 | ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS))) |
| 1560 | CDEFINES += -DQCA_WIFI_3_0_ADRASTEA |
| 1561 | CDEFINES += -DADRASTEA_SHADOW_REGISTERS |
Sanjay Devnani | cdab59e | 2015-11-12 14:43:58 -0800 | [diff] [blame] | 1562 | CDEFINES += -DADRASTEA_RRI_ON_DDR |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1563 | endif |
| 1564 | |
| 1565 | ifeq ($(CONFIG_WLAN_FASTPATH), y) |
| 1566 | CDEFINES += -DWLAN_FEATURE_FASTPATH |
| 1567 | endif |
| 1568 | |
Poddar, Siddarth | eefe348 | 2016-09-21 18:12:59 +0530 | [diff] [blame] | 1569 | ifeq ($(CONFIG_FEATURE_PKTLOG), y) |
| 1570 | CDEFINES += -DFEATURE_PKTLOG |
| 1571 | endif |
| 1572 | |
Nirav Shah | cc1f1ae | 2016-04-26 11:41:29 +0530 | [diff] [blame] | 1573 | ifeq ($(CONFIG_FEATURE_DP_TRACE), y) |
| 1574 | CDEFINES += -DFEATURE_DP_TRACE |
| 1575 | endif |
| 1576 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1577 | ifeq ($(CONFIG_WLAN_NAPI), y) |
| 1578 | CDEFINES += -DFEATURE_NAPI |
| 1579 | ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y) |
| 1580 | CDEFINES += -DFEATURE_NAPI_DEBUG |
| 1581 | endif |
| 1582 | endif |
| 1583 | |
Yue Ma | df224b8 | 2016-04-21 12:46:04 -0700 | [diff] [blame] | 1584 | ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM))) |
Yuanyuan Liu | 5af4436 | 2016-04-01 21:57:06 -0700 | [diff] [blame] | 1585 | CDEFINES += -DMSM_PLATFORM |
| 1586 | endif |
| 1587 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1588 | CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID |
| 1589 | |
| 1590 | ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y) |
| 1591 | CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2 |
| 1592 | CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL |
| 1593 | else |
| 1594 | ifeq ($(CONFIG_ROME_IF),pci) |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1595 | ifneq ($(CONFIG_LITHIUM),y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1596 | CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL |
| 1597 | endif |
| 1598 | endif |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 1599 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1600 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1601 | ifneq ($(CONFIG_QCA_CLD_WLAN),) |
| 1602 | CDEFINES += -DWCN_PRONTO |
| 1603 | CDEFINES += -DWCN_PRONTO_V1 |
| 1604 | endif |
| 1605 | |
| 1606 | ifeq ($(BUILD_DEBUG_VERSION),1) |
| 1607 | CDEFINES += -DWLAN_DEBUG \ |
| 1608 | -DTRACE_RECORD \ |
| 1609 | -DLIM_TRACE_RECORD \ |
| 1610 | -DSME_TRACE_RECORD \ |
| 1611 | -DHDD_TRACE_RECORD \ |
| 1612 | -DPE_DEBUG_LOGW \ |
Srinivas Girigowda | 6147c58 | 2016-10-18 12:26:15 -0700 | [diff] [blame] | 1613 | -DPE_DEBUG_LOGE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1614 | endif |
| 1615 | |
| 1616 | ifeq ($(CONFIG_SLUB_DEBUG_ON),y) |
| 1617 | CDEFINES += -DTIMER_MANAGER |
| 1618 | CDEFINES += -DMEMORY_DEBUG |
Rajeev Kumar | 0422305 | 2017-04-07 20:44:15 -0700 | [diff] [blame] | 1619 | CDEFINES += -DCONFIG_HALT_KMEMLEAK |
Dustin Brown | 8b28e08 | 2016-12-06 15:37:34 -0800 | [diff] [blame] | 1620 | CDEFINES += -DWLAN_SUSPEND_RESUME_TEST |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1621 | endif |
| 1622 | |
| 1623 | ifeq ($(HAVE_CFG80211),1) |
| 1624 | CDEFINES += -DWLAN_FEATURE_P2P |
| 1625 | CDEFINES += -DWLAN_FEATURE_WFD |
| 1626 | ifeq ($(CONFIG_QCOM_VOWIFI_11R),y) |
| 1627 | CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211 |
| 1628 | CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC |
| 1629 | endif |
| 1630 | endif |
| 1631 | |
| 1632 | ifeq ($(CONFIG_QCOM_ESE),y) |
| 1633 | CDEFINES += -DFEATURE_WLAN_ESE |
| 1634 | CDEFINES += -DQCA_COMPUTE_TX_DELAY |
| 1635 | CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1636 | endif |
| 1637 | |
| 1638 | #normally, TDLS negative behavior is not needed |
| 1639 | ifeq ($(CONFIG_QCOM_TDLS),y) |
| 1640 | CDEFINES += -DFEATURE_WLAN_TDLS |
| 1641 | endif |
| 1642 | |
| 1643 | ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y) |
| 1644 | CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD |
| 1645 | endif |
| 1646 | |
Selvaraj, Sridhar | 046d77d | 2017-03-07 14:53:13 +0530 | [diff] [blame] | 1647 | ifeq ($(CONFIG_CNSS_GENL), y) |
| 1648 | CDEFINES += -DCNSS_GENL |
| 1649 | endif |
| 1650 | |
Varun Reddy Yeturu | bbbbe23 | 2016-02-29 14:01:57 -0800 | [diff] [blame] | 1651 | ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y) |
| 1652 | CDEFINES += -DWLAN_FEATURE_HOST_ROAM |
| 1653 | endif |
| 1654 | |
Sridhar Selvaraj | dc400d2 | 2016-10-18 17:18:03 +0530 | [diff] [blame] | 1655 | ifeq ($(CONFIG_WLAN_POWER_DEBUGFS), y) |
| 1656 | CDEFINES += -DWLAN_POWER_DEBUGFS |
| 1657 | endif |
| 1658 | |
Rajeev Kumar | 69d7d49 | 2017-02-13 21:48:16 -0800 | [diff] [blame] | 1659 | # Enable object manager reference count debug infrastructure |
| 1660 | CDEFINES += -DWLAN_OBJMGR_DEBUG |
| 1661 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1662 | ifeq ($(BUILD_DIAG_VERSION),1) |
| 1663 | CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT |
| 1664 | CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR |
| 1665 | CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM |
| 1666 | ifeq ($(CONFIG_HIF_PCI), 1) |
| 1667 | CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
| 1668 | endif |
| 1669 | endif |
| 1670 | |
| 1671 | ifeq ($(CONFIG_HIF_USB), 1) |
| 1672 | CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
| 1673 | CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT |
| 1674 | 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] | 1675 | endif |
| 1676 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1677 | ifeq ($(CONFIG_WLAN_FEATURE_11W),y) |
| 1678 | CDEFINES += -DWLAN_FEATURE_11W |
| 1679 | endif |
| 1680 | |
gbian | e55c956 | 2016-11-01 14:47:47 +0800 | [diff] [blame] | 1681 | ifeq ($(CONFIG_QCA_TXDESC_SANITY_CHECKS), 1) |
| 1682 | CDEFINES += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS |
| 1683 | endif |
| 1684 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1685 | ifeq ($(CONFIG_QCOM_LTE_COEX),y) |
| 1686 | CDEFINES += -DFEATURE_WLAN_CH_AVOID |
| 1687 | endif |
| 1688 | |
| 1689 | ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y) |
| 1690 | CDEFINES += -DWLAN_FEATURE_LPSS |
| 1691 | endif |
| 1692 | |
Nirav Shah | 7629196 | 2016-04-25 10:50:37 +0530 | [diff] [blame] | 1693 | ifneq ($(TARGET_BUILD_VARIANT),user) |
| 1694 | CDEFINES += -DDESC_DUP_DETECT_DEBUG |
Manjunathappa Prakash | c8e7564 | 2016-06-03 19:32:27 -0700 | [diff] [blame] | 1695 | CDEFINES += -DDEBUG_RX_RING_BUFFER |
Nirav Shah | 7629196 | 2016-04-25 10:50:37 +0530 | [diff] [blame] | 1696 | endif |
| 1697 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1698 | ifeq ($(PANIC_ON_BUG),1) |
| 1699 | CDEFINES += -DPANIC_ON_BUG |
| 1700 | endif |
| 1701 | |
| 1702 | ifeq ($(WLAN_OPEN_SOURCE), 1) |
| 1703 | CDEFINES += -DWLAN_OPEN_SOURCE |
| 1704 | endif |
| 1705 | |
| 1706 | ifeq ($(CONFIG_FEATURE_STATS_EXT), 1) |
| 1707 | CDEFINES += -DWLAN_FEATURE_STATS_EXT |
| 1708 | endif |
| 1709 | |
| 1710 | ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y) |
| 1711 | CDEFINES += -DWLAN_FEATURE_NAN |
| 1712 | endif |
| 1713 | |
| 1714 | ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1) |
| 1715 | CDEFINES += -DQCA_IBSS_SUPPORT |
| 1716 | endif |
| 1717 | |
| 1718 | #Enable OL debug and wmi unified functions |
| 1719 | ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1) |
| 1720 | CDEFINES += -DATH_PERF_PWR_OFFLOAD |
| 1721 | endif |
| 1722 | |
| 1723 | #Disable packet log |
| 1724 | ifeq ($(CONFIG_REMOVE_PKT_LOG), 1) |
| 1725 | CDEFINES += -DREMOVE_PKT_LOG |
| 1726 | endif |
| 1727 | |
| 1728 | #Enable 11AC TX |
| 1729 | ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1) |
| 1730 | CDEFINES += -DATH_11AC_TXCOMPACT |
| 1731 | endif |
| 1732 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1733 | #Enable OS specific IRQ abstraction |
| 1734 | ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1) |
| 1735 | CDEFINES += -DATH_SUPPORT_SHARED_IRQ |
| 1736 | endif |
| 1737 | |
| 1738 | #Enable message based HIF instead of RAW access in BMI |
| 1739 | ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1) |
| 1740 | CDEFINES += -DHIF_MESSAGE_BASED |
| 1741 | endif |
| 1742 | |
| 1743 | #Enable PCI specific APIS (dma, etc) |
| 1744 | ifeq ($(CONFIG_HIF_PCI), 1) |
| 1745 | CDEFINES += -DHIF_PCI |
| 1746 | endif |
| 1747 | |
Houston Hoffman | 1edffd3 | 2016-01-27 16:30:34 -0800 | [diff] [blame] | 1748 | ifeq ($(CONFIG_HIF_SNOC), 1) |
| 1749 | CDEFINES += -DHIF_SNOC |
| 1750 | endif |
| 1751 | |
Poddar, Siddarth | 29296fb | 2016-05-16 18:06:30 +0530 | [diff] [blame] | 1752 | #Enable High Latency related Flags |
| 1753 | ifeq ($(CONFIG_QCA_WIFI_SDIO), 1) |
| 1754 | CDEFINES += -DCONFIG_HL_SUPPORT \ |
| 1755 | -DCONFIG_AR6320_SUPPORT \ |
| 1756 | -DSDIO_3_0 \ |
| 1757 | -DHIF_SDIO \ |
| 1758 | -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \ |
| 1759 | -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \ |
| 1760 | -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \ |
| 1761 | -DHIF_MBOX_SLEEP_WAR \ |
| 1762 | -DDEBUG_HL_LOGGING \ |
| 1763 | -DQCA_BAD_PEER_TX_FLOW_CL \ |
| 1764 | -DCONFIG_TX_DESC_HI_PRIO_RESERVE \ |
| 1765 | -DCONFIG_PER_VDEV_TX_DESC_POOL \ |
| 1766 | -DCONFIG_SDIO \ |
| 1767 | -DFEATURE_WLAN_FORCE_SAP_SCC |
| 1768 | endif |
| 1769 | |
Agrawal Ashish | b141b09 | 2016-09-02 19:59:26 +0530 | [diff] [blame] | 1770 | ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y) |
| 1771 | CDEFINES += -DWLAN_FEATURE_DSRC |
| 1772 | endif |
| 1773 | |
bings | 7762da1 | 2017-03-06 07:21:04 +0800 | [diff] [blame] | 1774 | ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y) |
| 1775 | ifeq ($(CONFIG_QCA_WIFI_SDIO), 1) |
| 1776 | ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y) |
| 1777 | CDEFINES += -DFEATURE_SKB_PRE_ALLOC |
| 1778 | endif |
| 1779 | endif |
| 1780 | endif |
| 1781 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1782 | #Enable USB specific APIS |
| 1783 | ifeq ($(CONFIG_HIF_USB), 1) |
Mohit Khanna | da4f443 | 2016-05-17 15:02:09 -0700 | [diff] [blame] | 1784 | CDEFINES += -DHIF_USB \ |
Mohit Khanna | e7a4357 | 2016-10-10 17:34:21 -0700 | [diff] [blame] | 1785 | -DCONFIG_PLD_USB_CNSS \ |
| 1786 | -DCONFIG_HL_SUPPORT |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1787 | endif |
| 1788 | |
| 1789 | #Enable FW logs through ini |
| 1790 | CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI |
| 1791 | |
| 1792 | #Enable pci read/write config functions |
| 1793 | ifeq ($(CONFIG_ATH_PCI), 1) |
| 1794 | CDEFINES += -DATH_PCI |
| 1795 | endif |
| 1796 | |
| 1797 | #Enable power management suspend/resume functionality |
| 1798 | ifeq ($(CONFIG_ATH_BUS_PM), 1) |
| 1799 | CDEFINES += -DATH_BUS_PM |
| 1800 | endif |
| 1801 | |
| 1802 | #Enable FLOWMAC module support |
| 1803 | ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1) |
| 1804 | CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE |
| 1805 | endif |
| 1806 | |
| 1807 | #Enable spectral support |
| 1808 | ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1) |
| 1809 | CDEFINES += -DATH_SUPPORT_SPECTRAL |
| 1810 | endif |
| 1811 | |
| 1812 | #Enable WDI Event support |
| 1813 | ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1) |
| 1814 | CDEFINES += -DWDI_EVENT_ENABLE |
| 1815 | endif |
| 1816 | |
| 1817 | #Endianess selection |
| 1818 | ifeq ($(CONFIG_LITTLE_ENDIAN), 1) |
| 1819 | AH_LITTLE_ENDIAN=1234 |
| 1820 | CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN) |
| 1821 | else |
| 1822 | AH_BIG_ENDIAN=4321 |
| 1823 | CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN) |
| 1824 | CDEFINES += -DBIG_ENDIAN_HOST |
| 1825 | endif |
| 1826 | |
| 1827 | #Enable TX reclaim support |
| 1828 | ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1) |
| 1829 | CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT |
| 1830 | endif |
| 1831 | |
| 1832 | #Enable FTM support |
| 1833 | ifeq ($(CONFIG_QCA_WIFI_FTM), 1) |
| 1834 | CDEFINES += -DQCA_WIFI_FTM |
| 1835 | endif |
| 1836 | |
| 1837 | #Enable Checksum Offload support |
| 1838 | ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1) |
| 1839 | CDEFINES += -DCHECKSUM_OFFLOAD |
| 1840 | endif |
| 1841 | |
| 1842 | #Enable Checksum Offload support |
| 1843 | ifeq ($(CONFIG_IPA_OFFLOAD), 1) |
| 1844 | CDEFINES += -DIPA_OFFLOAD |
| 1845 | endif |
| 1846 | |
bings | 7762da1 | 2017-03-06 07:21:04 +0800 | [diff] [blame] | 1847 | ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y) |
| 1848 | CDEFINES += -DSYNC_IPA_READY |
| 1849 | endif |
| 1850 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1851 | #Enable GTK Offload |
| 1852 | ifeq ($(CONFIG_GTK_OFFLOAD), 1) |
| 1853 | CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD |
| 1854 | CDEFINES += -DIGTK_OFFLOAD |
| 1855 | endif |
| 1856 | |
| 1857 | #Enable GTK Offload |
| 1858 | ifeq ($(CONFIG_EXT_WOW), 1) |
| 1859 | CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT |
| 1860 | endif |
| 1861 | |
| 1862 | #Mark it as SMP Kernel |
| 1863 | ifeq ($(CONFIG_SMP),y) |
| 1864 | CDEFINES += -DQCA_CONFIG_SMP |
| 1865 | endif |
| 1866 | |
Sandeep Puligilla | 2111d3c | 2016-02-03 01:46:15 -0800 | [diff] [blame] | 1867 | #Enable Channel Matrix restriction for all Rome only targets |
| 1868 | ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS))) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1869 | CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION |
Sandeep Puligilla | 2111d3c | 2016-02-03 01:46:15 -0800 | [diff] [blame] | 1870 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1871 | |
Sandeep Puligilla | 0e64b61 | 2016-08-26 13:20:58 -0700 | [diff] [blame] | 1872 | #Enable OBSS feature |
| 1873 | CDEFINES += -DQCA_HT_2040_COEX |
| 1874 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1875 | #features specific to mobile router use case |
| 1876 | ifeq ($(CONFIG_MOBILE_ROUTER), y) |
| 1877 | |
| 1878 | #enable MCC TO SCC switch |
| 1879 | CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH |
| 1880 | |
| 1881 | #enable wlan auto shutdown feature |
| 1882 | CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN |
| 1883 | |
| 1884 | #enable for MBSSID |
| 1885 | CDEFINES += -DWLAN_FEATURE_MBSSID |
| 1886 | |
| 1887 | #enable AP-AP ACS Optimization |
| 1888 | CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE |
| 1889 | |
| 1890 | #Enable 4address scheme |
| 1891 | CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME |
| 1892 | |
| 1893 | #Disable STA-AP Mode DFS support |
| 1894 | CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE |
| 1895 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1896 | else #CONFIG_MOBILE_ROUTER |
| 1897 | |
| 1898 | #Open P2P device interface only for non-Mobile router use cases |
| 1899 | CDEFINES += -DWLAN_OPEN_P2P_INTERFACE |
| 1900 | |
| 1901 | #Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage |
| 1902 | CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY |
| 1903 | |
| 1904 | endif #CONFIG_MOBILE_ROUTER |
| 1905 | |
| 1906 | #Green AP feature |
| 1907 | ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y) |
| 1908 | CDEFINES += -DFEATURE_GREEN_AP |
| 1909 | endif |
| 1910 | |
Yun Park | 637d648 | 2016-10-05 10:51:33 -0700 | [diff] [blame] | 1911 | #Stats & Quota Metering feature |
| 1912 | ifeq ($(CONFIG_QCACLD_FEATURE_METERING),y) |
| 1913 | CDEFINES += -DFEATURE_METERING |
| 1914 | endif |
| 1915 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1916 | #Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform" |
| 1917 | ifneq ($(CONFIG_ARCH_MDM9630), y) |
| 1918 | ifeq ($(CONFIG_HIF_PCI), 1) |
| 1919 | CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL |
| 1920 | endif |
| 1921 | endif |
| 1922 | |
Yu Wang | 66e4ff2 | 2017-02-15 19:09:24 +0800 | [diff] [blame] | 1923 | ifeq ($(CONFIG_ARCH_MDM9607), y) |
| 1924 | CDEFINES += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT |
| 1925 | endif |
| 1926 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1927 | #Enable Signed firmware support for split binary format |
| 1928 | ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1) |
| 1929 | CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT |
| 1930 | endif |
| 1931 | |
| 1932 | #Enable single firmware binary format |
| 1933 | ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1) |
| 1934 | CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT |
| 1935 | endif |
| 1936 | |
| 1937 | #Enable collecting target RAM dump after kernel panic |
| 1938 | ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1) |
| 1939 | CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC |
| 1940 | endif |
| 1941 | |
| 1942 | #Enable/disable secure firmware feature |
| 1943 | ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1) |
| 1944 | CDEFINES += -DFEATURE_SECURE_FIRMWARE |
| 1945 | endif |
| 1946 | |
| 1947 | ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1) |
| 1948 | CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG |
| 1949 | endif |
| 1950 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1951 | # Enable feature support fo Linux version QCMBR |
| 1952 | ifeq ($(CONFIG_LINUX_QCMBR),y) |
| 1953 | CDEFINES += -DLINUX_QCMBR |
| 1954 | endif |
| 1955 | |
Manikandan Mohan | dcc21ba | 2016-03-15 14:31:56 -0700 | [diff] [blame] | 1956 | # Enable featue sync tsf between multi devices |
| 1957 | ifeq ($(CONFIG_WLAN_SYNC_TSF), y) |
| 1958 | CDEFINES += -DWLAN_FEATURE_TSF |
| 1959 | endif |
Rajeev Kumar | e0fd9dd | 2015-11-16 13:33:07 -0800 | [diff] [blame] | 1960 | |
| 1961 | # Enable full rx re-order offload for adrastea |
| 1962 | ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS))) |
| 1963 | CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL |
| 1964 | endif |
| 1965 | |
Rajeev Kumar | 321a19a | 2015-12-08 12:54:46 -0800 | [diff] [blame] | 1966 | # Enable athdiag procfs debug support for adrastea |
| 1967 | ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS))) |
| 1968 | CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT |
| 1969 | endif |
| 1970 | |
Rajeev Kumar | 9c4809e | 2016-01-13 18:32:40 -0800 | [diff] [blame] | 1971 | # Enable 11AC TX compact feature for adrastea |
| 1972 | ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS))) |
| 1973 | CDEFINES += -DATH_11AC_TXCOMPACT |
| 1974 | endif |
| 1975 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1976 | # NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS |
| 1977 | ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS))) |
| 1978 | CONFIG_HELIUMPLUS := y |
| 1979 | CONFIG_64BIT_PADDR := y |
| 1980 | CONFIG_FEATURE_TSO := y |
| 1981 | CONFIG_FEATURE_TSO_DEBUG := y |
| 1982 | ifeq ($(CONFIG_HELIUMPLUS),y) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1983 | CDEFINES += -DHELIUMPLUS |
Dhanashri Atre | 48c2ae6 | 2015-12-15 18:07:10 -0800 | [diff] [blame] | 1984 | CDEFINES += -DAR900B |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1985 | ifeq ($(CONFIG_64BIT_PADDR),y) |
| 1986 | CDEFINES += -DHTT_PADDR64 |
| 1987 | endif |
| 1988 | endif |
| 1989 | endif |
| 1990 | |
| 1991 | ifeq ($(CONFIG_FEATURE_TSO),y) |
| 1992 | CDEFINES += -DFEATURE_TSO |
| 1993 | endif |
| 1994 | ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y) |
| 1995 | CDEFINES += -DFEATURE_TSO_DEBUG |
| 1996 | endif |
| 1997 | |
| 1998 | ifeq ($(CONFIG_WLAN_LRO), y) |
| 1999 | CDEFINES += -DFEATURE_LRO |
| 2000 | endif |
| 2001 | |
| 2002 | ifeq ($(CONFIG_MOBILE_ROUTER), y) |
| 2003 | CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE |
| 2004 | endif |
| 2005 | |
| 2006 | ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y) |
| 2007 | CDEFINES += -DMPC_UT_FRAMEWORK |
| 2008 | endif |
| 2009 | |
| 2010 | ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y) |
| 2011 | CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS |
| 2012 | endif |
| 2013 | |
| 2014 | ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y) |
| 2015 | CDEFINES += -DWLAN_FEATURE_MEMDUMP |
| 2016 | endif |
| 2017 | |
Padma, Santhosh Kumar | d7cc079 | 2016-06-28 18:54:12 +0530 | [diff] [blame] | 2018 | ifeq ($(CONFIG_WLAN_FEATURE_DISA),y) |
| 2019 | CDEFINES += -DWLAN_FEATURE_DISA |
| 2020 | endif |
| 2021 | |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 2022 | ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y) |
| 2023 | CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION |
| 2024 | endif |
| 2025 | |
Chandrasekaran Manishekar | 068e25e | 2016-03-07 11:51:07 +0530 | [diff] [blame] | 2026 | ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y) |
| 2027 | CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH |
| 2028 | endif |
| 2029 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 2030 | ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y) |
| 2031 | CDEFINES += -DWLAN_FEATURE_NAN_DATAPATH |
| 2032 | endif |
| 2033 | |
Naveen Rawat | 6d2bf18 | 2017-03-22 10:18:00 -0700 | [diff] [blame] | 2034 | ifeq ($(CONFIG_NAN_CONVERGENCE), y) |
| 2035 | CDEFINES += -DWLAN_FEATURE_NAN_CONVERGENCE |
| 2036 | endif |
| 2037 | |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2038 | ifeq ($(CONFIG_LITHIUM),y) |
Houston Hoffman | 06fd566 | 2017-02-08 21:41:20 -0800 | [diff] [blame] | 2039 | CDEFINES += -DCONFIG_SHADOW_V2 |
Aravind Narasimhan | 4ed314d | 2016-11-14 16:56:42 -0800 | [diff] [blame] | 2040 | CDEFINES += -DQCA6290_HEADERS_DEF |
Venkata Sharath Chandra Manchala | 5d714d8 | 2017-01-18 14:56:32 -0800 | [diff] [blame] | 2041 | CDEFINES += -DQCA_WIFI_QCA6290 |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2042 | CDEFINES += -DQCA_WIFI_QCA8074 |
Leo Chang | 395cbb5 | 2016-11-11 14:35:03 -0800 | [diff] [blame] | 2043 | CDEFINES += -DQCA_WIFI_NAPIER_EMULATION |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2044 | CDEFINES += -DQCA_WIFI_QCA8074_VP |
Ravi Joshi | fc2ed78 | 2016-11-22 17:36:50 -0800 | [diff] [blame] | 2045 | CDEFINES += -DDP_INTR_POLL_BASED |
Ravi Joshi | fa5536f | 2017-02-14 12:25:09 -0800 | [diff] [blame] | 2046 | CDEFINES += -DTX_PER_PDEV_DESC_POOL |
Dhanashri Atre | 2f507a7 | 2017-03-28 13:52:29 -0700 | [diff] [blame] | 2047 | CDEFINES += -DWLAN_RX_HASH |
Pramod Simha | 707a356 | 2017-03-22 13:15:37 -0700 | [diff] [blame] | 2048 | CDEFINES += -DDP_LFR |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2049 | endif |
| 2050 | |
Krishna Kumaar Natarajan | 639c6ff | 2017-02-13 14:01:04 -0800 | [diff] [blame] | 2051 | ifeq ($(CONFIG_WLAN_FEATURE_11AX),y) |
| 2052 | CDEFINES += -DWLAN_FEATURE_11AX |
| 2053 | endif |
| 2054 | |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2055 | # Dummy flag for WIN/MCL converged data path compilation |
| 2056 | CDEFINES += -DDP_PRINT_ENABLE=0 |
| 2057 | CDEFINES += -DATH_SUPPORT_WRAP=0 |
Dhanashri Atre | 33e147e | 2017-01-20 14:52:18 -0800 | [diff] [blame] | 2058 | CDEFINES += -DQCA_HOST2FW_RXBUF_RING |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2059 | #endof dummy flags |
| 2060 | |
Mahesh Kumar Kalikot Veetil | c0233a7 | 2016-10-27 15:06:05 -0700 | [diff] [blame] | 2061 | ifeq ($(CONFIG_WLAN_DEBUGFS), y) |
| 2062 | CDEFINES += -DWLAN_DEBUGFS |
| 2063 | endif |
| 2064 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2065 | KBUILD_CPPFLAGS += $(CDEFINES) |
| 2066 | |
| 2067 | # Currently, for versions of gcc which support it, the kernel Makefile |
| 2068 | # is disabling the maybe-uninitialized warning. Re-enable it for the |
| 2069 | # WLAN driver. Note that we must use EXTRA_CFLAGS here so that it |
| 2070 | # will override the kernel settings. |
| 2071 | ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y) |
| 2072 | EXTRA_CFLAGS += -Wmaybe-uninitialized |
Leo Chang | 5f7a1e0 | 2016-11-04 14:04:26 -0700 | [diff] [blame] | 2073 | ifneq (y,$(CONFIG_ARCH_MSM)) |
| 2074 | EXTRA_CFLAGS += -Wframe-larger-than=4096 |
| 2075 | endif |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2076 | endif |
Jeff Johnson | 522db00 | 2016-10-05 16:30:41 -0700 | [diff] [blame] | 2077 | EXTRA_CFLAGS += -Wmissing-prototypes |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2078 | |
Srinivas Girigowda | 0a85ccd | 2016-12-01 14:58:08 -0800 | [diff] [blame] | 2079 | ifeq ($(call cc-option-yn, -Wheader-guard),y) |
| 2080 | EXTRA_CFLAGS += -Wheader-guard |
| 2081 | endif |
Samuel Ahn | c9c48ca | 2016-09-19 15:46:36 +0530 | [diff] [blame] | 2082 | # If the module name is not "wlan", then the define MULTI_IF_NAME to be the |
Yu Wang | 66e4ff2 | 2017-02-15 19:09:24 +0800 | [diff] [blame] | 2083 | # same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to |
Samuel Ahn | c9c48ca | 2016-09-19 15:46:36 +0530 | [diff] [blame] | 2084 | # any string that must be unique for all instances of the driver on the system. |
| 2085 | # This allows multiple instances of the driver with different module names. |
| 2086 | # If the module name is wlan, leave MULTI_IF_NAME undefined and the code will |
| 2087 | # treat the driver as the primary driver. |
| 2088 | ifneq ($(MODNAME), wlan) |
Yu Wang | 66e4ff2 | 2017-02-15 19:09:24 +0800 | [diff] [blame] | 2089 | CHIP_NAME ?= $(MODNAME) |
| 2090 | CDEFINES += -DMULTI_IF_NAME=\"$(CHIP_NAME)\" |
Samuel Ahn | c9c48ca | 2016-09-19 15:46:36 +0530 | [diff] [blame] | 2091 | endif |
| 2092 | |
| 2093 | # WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the |
| 2094 | # system. If it is not defined, then the host driver will use the first 4 |
| 2095 | # characters (including NULL) of MULTI_IF_NAME to construct |
| 2096 | # WLAN_HDD_ADAPTER_MAGIC. |
| 2097 | ifdef WLAN_HDD_ADAPTER_MAGIC |
| 2098 | CDEFINES += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC) |
| 2099 | endif |
Srinivas Girigowda | 0a85ccd | 2016-12-01 14:58:08 -0800 | [diff] [blame] | 2100 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 2101 | # Module information used by KBuild framework |
| 2102 | obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o |
| 2103 | $(MODNAME)-y := $(OBJS) |