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