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