blob: 3e77f40f3ec5f08043e03f791ccaafaa92d7f3a2 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001# We can build either as part of a standalone Kernel build or as
2# an external module. Determine which mechanism is being used
3ifeq ($(MODNAME),)
4 KERNEL_BUILD := 1
5else
6 KERNEL_BUILD := 0
7endif
8
Leo Chang395cbb52016-11-11 14:35:03 -08009ifeq ($(CONFIG_CNSS_QCA6290), y)
10 CONFIG_LITHIUM := y
Krishna Kumaar Natarajan639c6ff2017-02-13 14:01:04 -080011 CONFIG_WLAN_FEATURE_11AX := y
Yun Parkb4f591d2017-03-29 15:51:01 -070012 CONFIG_IPA := n
Leo Chang395cbb52016-11-11 14:35:03 -080013endif
Leo Chang5f7a1e02016-11-04 14:04:26 -070014
Poddar, Siddarth29296fb2016-05-16 18:06:30 +053015ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y)
16 CONFIG_QCA_WIFI_SDIO := 1
17endif
18
19ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
20 CONFIG_ROME_IF = sdio
21endif
22
Houston Hoffman57d10c22016-03-08 13:04:20 -080023ifdef CONFIG_ICNSS
24 CONFIG_ROME_IF = snoc
25endif
26
Yue Mae6a7a322016-08-31 11:09:23 -070027ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080028ifndef CONFIG_ROME_IF
29 #use pci as default interface
30 CONFIG_ROME_IF = pci
31endif
32endif
33
34ifeq ($(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 Hoffman52ec6692016-04-21 16:36:45 -070039 WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
40 WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080041endif
42
43# Make WLAN as open-source driver by default
44WLAN_OPEN_SOURCE := 1
45
46ifeq ($(KERNEL_BUILD), 0)
47 # These are configurable via Kconfig for kernel-based builds
48 # Need to explicitly configure for Android-based builds
49
Naveen Rawat93836252017-06-20 16:30:59 -070050 ifneq ($(DEVELOPER_DISABLE_BUILD_TIMESTAMP),y)
51 CONFIG_BUILD_TIMESTAMP := y
52 endif
53
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080054 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
bings7762da12017-03-06 07:21:04 +080062 ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
63 CONFIG_MOBILE_ROUTER := y
64 endif
65
Yu Wang000dc2f2017-05-26 17:38:48 +080066 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 Yeturubbbbe232016-02-29 14:01:57 -080072 #Flag to enable Legacy Fast Roaming2(LFR2)
73 CONFIG_QCACLD_WLAN_LFR2 := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080074 #Flag to enable Legacy Fast Roaming3(LFR3)
Yingying Tang71961042017-02-21 15:47:03 +080075 ifneq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080076 CONFIG_QCACLD_WLAN_LFR3 := y
Yingying Tang71961042017-02-21 15:47:03 +080077 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080078
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080079 # 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 Muduganti79649822016-11-16 11:29:50 -080098 ifeq ($(CONFIG_ARCH_MSM8998), y)
Jeff Johnsona6300252016-09-28 15:58:55 -070099 CONFIG_QCACLD_FEATURE_GREEN_AP := y
Yun Park637d6482016-10-05 10:51:33 -0700100 CONFIG_QCACLD_FEATURE_METERING := y
Jeff Johnsona6300252016-09-28 15:58:55 -0700101 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800102
Poddar, Siddarth1bec7ae2017-01-24 18:02:31 +0530103 ifeq ($(CONFIG_ARCH_SDM660), y)
Ashish Kumar Dhanotiya5e6cfc02017-03-16 16:51:01 +0530104 CONFIG_QCACLD_FEATURE_GREEN_AP := y
Poddar, Siddarth1bec7ae2017-01-24 18:02:31 +0530105 CONFIG_QCACLD_FEATURE_METERING := y
106 endif
107
108 ifeq ($(CONFIG_ARCH_SDM630), y)
109 CONFIG_QCACLD_FEATURE_METERING := y
110 endif
111
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800112 #Flag to enable Fast Transition (11r) feature
113 CONFIG_QCOM_VOWIFI_11R := y
114
115 ifneq ($(CONFIG_QCA_CLD_WLAN),)
Yue Mae6a7a322016-08-31 11:09:23 -0700116 ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2) $(CONFIG_ICNSS)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800117 #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 Joshia063dd92016-05-25 16:43:13 -0700128 #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 Dhavali7090c5f2015-11-02 17:55:19 -0800135
gbiane55c9562016-11-01 14:47:47 +0800136 #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 Dhavali7090c5f2015-11-02 17:55:19 -0800141 ifneq ($(CONFIG_MOBILE_ROUTER), y)
142 #Flag to enable NAN
143 CONFIG_QCACLD_FEATURE_NAN := y
144 endif
145
Ravi Joshia063dd92016-05-25 16:43:13 -0700146 ifneq ($(CONFIG_MOBILE_ROUTER), y)
147 #Flag to enable NAN Data path
148 CONFIG_WLAN_FEATURE_NAN_DATAPATH := y
Naveen Rawat3cb59812017-03-28 16:59:08 -0700149 CONFIG_NAN_CONVERGENCE := y
Ravi Joshia063dd92016-05-25 16:43:13 -0700150 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 Dhavali7090c5f2015-11-02 17:55:19 -0800156
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800157 CONFIG_MPC_UT_FRAMEWORK := y
158
159 #Flag to enable offload packets feature
160 CONFIG_WLAN_OFFLOAD_PACKETS := y
161
Manikandan Mohan5356c2b2016-04-03 15:51:35 -0700162 #enable TSF get feature
163 CONFIG_WLAN_SYNC_TSF := y
Agrawal Ashishb141b092016-09-02 19:59:26 +0530164 #Enable DSRC feature
165
166 ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
167 CONFIG_WLAN_FEATURE_DSRC := y
168 endif
Manikandan Mohan5356c2b2016-04-03 15:51:35 -0700169
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530170ifneq ($(CONFIG_ROME_IF),sdio)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800171 #Flag to enable memdump feature
c_manjee36b61832017-01-31 17:38:47 +0530172 CONFIG_WLAN_FEATURE_MEMDUMP := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800173
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530174 #Flag to enable DISA
175 CONFIG_WLAN_FEATURE_DISA := y
176
Jeff Johnson7869aad2017-05-15 15:46:36 -0700177 #Flag to enable FIPS
178 CONFIG_WLAN_FEATURE_FIPS := y
179
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800180 #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 Hoffmanb4d45672017-04-24 11:56:50 -0700186
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800187 # Flag to enable FW based TX Flow control
Manjunathappa Prakash6c547362017-03-30 20:11:47 -0700188 ifeq (y,$(findstring y,$(CONFIG_CNSS_EOS) $(CONFIG_LITHIUM)))
Nirav Shah9d7f2e82015-09-28 11:09:09 -0700189 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
190 else
191 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n
192 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800193
194 # Flag to enable LRO (Large Receive Offload)
Manjunathappa Prakashbeeacb12016-06-17 18:18:32 -0700195 ifeq ($(CONFIG_INET_LRO), y)
Manjunathappa Prakash4282a012017-05-23 19:06:46 -0700196 CONFIG_WLAN_LRO := y
197 else
198 CONFIG_WLAN_LRO := n
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800199 endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530200endif
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800201
Manjunathappa Prakashfa345992016-04-21 16:45:40 -0700202ifeq ($(CONFIG_ROME_IF), snoc)
203 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
204endif
205
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800206 # Flag to enable LFR Subnet Detection
207 CONFIG_LFR_SUBNET_DETECTION := y
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +0530208
209 # Flag to enable MCC to SCC switch feature
210 CONFIG_MCC_TO_SCC_SWITCH := y
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700211
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700212endif
213
Srinivas Girigowda811c8d52017-06-21 22:45:18 -0700214# 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.
229ifneq ($(TARGET_BUILD_VARIANT),user)
230 ifeq ($(CONFIG_LITHIUM), y)
231 CONFIG_FEATURE_PKTLOG := n
232 else
233 CONFIG_FEATURE_PKTLOG := y
234 endif
235endif
236
Varun Reddy Yeturufd6d1642017-04-12 23:19:54 -0700237#Enable WLAN/Power debugfs feature only if debug_fs is enabled
238ifeq ($(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 Dhavali7090c5f2015-11-02 17:55:19 -0800244endif
245
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800246# If not set, assume, Common driver is with in the build tree
Yu Wangc8a6c492017-02-13 14:20:15 +0800247WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800248WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
249
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800250ifneq ($(CONFIG_MOBILE_ROUTER), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800251CONFIG_QCOM_ESE := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800252endif
253
254# Feature flags which are not (currently) configurable via Kconfig
255
256#Whether to build debug version
257BUILD_DEBUG_VERSION := 1
258
259#Enable this flag to build driver in diag version
260BUILD_DIAG_VERSION := 1
261
262#Do we panic on bug? default is to warn
263PANIC_ON_BUG := 1
264
265#Enable OL debug and wmi unified functions
266CONFIG_ATH_PERF_PWR_OFFLOAD := 1
267
268#Disable packet log
269CONFIG_REMOVE_PKT_LOG := 0
270
271#Enable 11AC TX
272ifeq ($(CONFIG_ROME_IF),pci)
273 CONFIG_ATH_11AC_TXCOMPACT := 1
274endif
275ifeq ($(CONFIG_ROME_IF),usb)
276 CONFIG_ATH_11AC_TXCOMPACT := 0
277endif
278
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800279#Enable OS specific IRQ abstraction
280CONFIG_ATH_SUPPORT_SHARED_IRQ := 1
281
282#Enable message based HIF instead of RAW access in BMI
283ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
284CONFIG_HIF_MESSAGE_BASED := 0
285else
286CONFIG_HIF_MESSAGE_BASED := 1
287endif
288
289#Enable PCI specific APIS (dma, etc)
290ifeq ($(CONFIG_ROME_IF),pci)
291 CONFIG_HIF_PCI := 1
292endif
293
Mohit Khannada4f4432016-05-17 15:02:09 -0700294#Enable USB specific APIS
295ifeq ($(CONFIG_ROME_IF),usb)
296 CONFIG_HIF_USB := 1
Mohit Khannae7a43572016-10-10 17:34:21 -0700297 CONFIG_PLD_USB_CNSS := y
Mohit Khannada4f4432016-05-17 15:02:09 -0700298endif
299
Yu Wang58e1cad2017-02-10 17:43:15 +0800300#Enable SDIO specific APIS
301ifeq ($(CONFIG_ROME_IF),sdio)
302 CONFIG_HIF_SDIO := 1
303endif
304
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800305#Enable pci read/write config functions
306ifeq ($(CONFIG_ROME_IF),pci)
307 CONFIG_ATH_PCI := 1
308endif
Houston Hoffman52ec6692016-04-21 16:36:45 -0700309
310ifeq ($(CONFIG_ROME_IF),snoc)
311 CONFIG_HIF_SNOC:= 1
312endif
313
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800314ifneq ($(CONFIG_MOBILE_ROUTER), y)
315#Enable IBSS support on CLD
316CONFIG_QCA_IBSS_SUPPORT := 1
317endif
318
319#Enable power management suspend/resume functionality to PCI
320CONFIG_ATH_BUS_PM := 1
321
322#Enable FLOWMAC module support
323CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := 0
324
325#Enable spectral support
326CONFIG_ATH_SUPPORT_SPECTRAL := 0
327
328#Enable HOST statistics support
329CONFIG_SUPPORT_HOST_STATISTICS := 0
330
331#Enable WDI Event support
332CONFIG_WDI_EVENT_ENABLE := 1
333
334#Endianess selection
335CONFIG_LITTLE_ENDIAN := 1
336
337#Enable TX reclaim support
338CONFIG_TX_CREDIT_RECLAIM_SUPPORT := 0
339
340#Enable FTM support
341CONFIG_QCA_WIFI_FTM := 1
342
343#Enable Checksum Offload
344CONFIG_CHECKSUM_OFFLOAD := 1
345
346#Enable GTK offload
347CONFIG_GTK_OFFLOAD := 1
348
349#Enable EXT WOW
350ifeq ($(CONFIG_ROME_IF),pci)
351 CONFIG_EXT_WOW := 1
352endif
353
354#Set this to 1 to catch erroneous Target accesses during debug.
355CONFIG_ATH_PCIE_ACCESS_DEBUG := 0
356
357#Enable IPA offload
358ifeq ($(CONFIG_IPA), y)
359CONFIG_IPA_OFFLOAD := 1
360endif
361
362#Enable Signed firmware support for split binary format
363CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := 0
364
365#Enable single firmware binary format
366CONFIG_QCA_SINGLE_BINARY_SUPPORT := 0
367
368#Enable collecting target RAM dump after kernel panic
369CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := 1
370
371#Flag to enable/disable secure firmware feature
372CONFIG_FEATURE_SECURE_FIRMWARE := 0
373
374#Flag to enable Stats Ext implementation
375CONFIG_FEATURE_STATS_EXT := 1
376
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800377ifeq ($(CONFIG_CFG80211),y)
378HAVE_CFG80211 := 1
379else
380ifeq ($(CONFIG_CFG80211),m)
381HAVE_CFG80211 := 1
382else
383HAVE_CFG80211 := 0
384endif
385endif
386
Dustin Brown0f8dc3d2017-06-01 14:37:26 -0700387# enable unit-test suspend for SLUB debug builds
388ifeq ($(CONFIG_SLUB_DEBUG_ON), y)
389 CONFIG_FEATURE_UNIT_TEST_SUSPEND := 1
390endif
391
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800392############ UAPI ############
393UAPI_DIR := uapi
394UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
395
396############ COMMON ############
397COMMON_DIR := core/common
398COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
399
400############ HDD ############
401HDD_DIR := core/hdd
402HDD_INC_DIR := $(HDD_DIR)/inc
403HDD_SRC_DIR := $(HDD_DIR)/src
404
405HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
406 -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
407
408HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
409 $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800410 $(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 Dhavali7090c5f2015-11-02 17:55:19 -0800415 $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
416 $(HDD_SRC_DIR)/wlan_hdd_power.o \
Amar Singhale4f28ee2015-10-21 14:36:56 -0700417 $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
Jeff Johnsona2d9bb32017-01-18 13:23:24 -0800418 $(HDD_SRC_DIR)/wlan_hdd_request_manager.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800419 $(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 Kumar699debf2017-01-06 14:17:00 -0800425 $(HDD_SRC_DIR)/wlan_hdd_wowl.o \
426 $(HDD_SRC_DIR)/wlan_hdd_object_manager.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800427
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700428ifeq ($(CONFIG_WLAN_DEBUGFS), y)
429HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
Krishna Kumaar Natarajanc7e2bb72017-03-10 10:38:46 -0800430HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_llstat.o
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700431endif
432
Agrawal Ashishb141b092016-09-02 19:59:26 +0530433ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
434HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o
435endif
Amar Singhale4f28ee2015-10-21 14:36:56 -0700436
Jeff Johnson6fa1e012017-04-05 06:40:53 -0700437ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
438HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_fips.o
439endif
440
Jeff Johnson2b0a7b82016-05-18 15:08:02 -0700441ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
442HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o
443endif
444
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800445ifeq ($(CONFIG_WLAN_LRO), y)
446HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
447endif
448
449ifeq ($(CONFIG_WLAN_NAPI), y)
450HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
451endif
452
453ifeq ($(CONFIG_IPA_OFFLOAD), 1)
454HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
455endif
456
457ifeq ($(HAVE_CFG80211),1)
458HDD_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
462endif
463
464ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
465HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
466endif
467
468ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
469HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
470endif
471
472ifeq ($(CONFIG_QCOM_TDLS),y)
473HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
474endif
475
Yu Wang000dc2f2017-05-26 17:38:48 +0800476ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
477CONFIG_WLAN_SYNC_TSF := y
478endif
479
Manikandan Mohandcc21ba2016-03-15 14:31:56 -0700480ifeq ($(CONFIG_WLAN_SYNC_TSF),y)
481HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
482endif
483
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800484ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
485HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
486endif
487
488ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
489HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_memdump.o
490endif
491
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530492ifeq ($(CONFIG_WLAN_FEATURE_DISA),y)
493HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
494endif
495
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800496ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
497HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
498endif
499
Ravi Joshia063dd92016-05-25 16:43:13 -0700500ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
501HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
502endif
503
Krishna Kumaar Natarajaned1efd92016-09-24 18:05:47 -0700504ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
505HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o
506endif
507
Ravi Joshi1c2cfb62017-01-18 14:40:08 -0800508ifeq ($(CONFIG_LITHIUM), y)
509HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o
510endif
511
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800512########### HOST DIAG LOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800513HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800514
515HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
516HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
517
518HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
519 -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
520
521HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
522
523############ EPPING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800524EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800525EPPING_INC_DIR := $(EPPING_DIR)/inc
526EPPING_SRC_DIR := $(EPPING_DIR)/src
527
528EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
529
530EPPING_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 ############
538MAC_DIR := core/mac
539MAC_INC_DIR := $(MAC_DIR)/inc
540MAC_SRC_DIR := $(MAC_DIR)/src
541
542MAC_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 Joshia063dd92016-05-25 16:43:13 -0700546 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
547 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800548
549MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800550 $(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
554MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
555
556MAC_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 Dhavali7090c5f2015-11-02 17:55:19 -0800560 $(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 Dhavali7090c5f2015-11-02 17:55:19 -0800593ifeq ($(CONFIG_QCOM_TDLS),y)
594MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
595endif
596
Ravi Joshia063dd92016-05-25 16:43:13 -0700597ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
598MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
599endif
600
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800601ifeq ($(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
607endif
608
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800609MAC_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 Dhavali7090c5f2015-11-02 17:55:19 -0800612 $(MAC_SRC_DIR)/pe/sch/sch_message.o
613
614MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
615
616MAC_OBJS := $(MAC_CFG_OBJS) \
617 $(MAC_DPH_OBJS) \
618 $(MAC_LIM_OBJS) \
619 $(MAC_SCH_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700620 $(MAC_RRM_OBJS) \
621 $(MAC_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800622
623############ SAP ############
624SAP_DIR := core/sap
625SAP_INC_DIR := $(SAP_DIR)/inc
626SAP_SRC_DIR := $(SAP_DIR)/src
627
628SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
629 -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
630
631SAP_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 Hussain757b45f2017-02-11 16:47:06 -0800637DFS_DIR := $(WLAN_COMMON_ROOT)/umac/dfs
638DFS_CORE_INC_DIR := $(DFS_DIR)/core/inc
639DFS_CORE_SRC_DIR := $(DFS_DIR)/core/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800640
Arif Hussain757b45f2017-02-11 16:47:06 -0800641DFS_DISP_INC_DIR := $(DFS_DIR)/dispatcher/inc
642DFS_DISP_SRC_DIR := $(DFS_DIR)/dispatcher/src
643DFS_TARGET_INC_DIR := $(WLAN_COMMON_ROOT)/target_if/dfs/inc
644DFS_CMN_SERVICES_INC_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/dfs/inc
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800645
Arif Hussain757b45f2017-02-11 16:47:06 -0800646DFS_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
650DFS_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 Dhavali7090c5f2015-11-02 17:55:19 -0800679
680############ SME ############
681SME_DIR := core/sme
682SME_INC_DIR := $(SME_DIR)/inc
683SME_SRC_DIR := $(SME_DIR)/src
684
685SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
686 -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
687
688SME_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 Yeturu86459d62016-02-22 10:07:02 -0800693 $(SME_SRC_DIR)/csr/csr_util.o \
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800694
695
696ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
697SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800698 $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800699endif
700
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800701
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800702ifeq ($(CONFIG_QCOM_TDLS),y)
703SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_tdls_process.o
704endif
705
706SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
707
708SME_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 Dhavali7090c5f2015-11-02 17:55:19 -0800713SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_api.o
714
715SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
716
717ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
718SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o
719endif
720
Ravi Joshia063dd92016-05-25 16:43:13 -0700721ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
722SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
723endif
724
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800725SME_OBJS := $(SME_CMN_OBJS) \
726 $(SME_CSR_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800727 $(SME_P2P_OBJS) \
728 $(SME_QOS_OBJS) \
729 $(SME_RRM_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700730 $(SME_NAN_OBJS) \
731 $(SME_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800732
733############ NLINK ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800734NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800735NLINK_INC_DIR := $(NLINK_DIR)/inc
736NLINK_SRC_DIR := $(NLINK_DIR)/src
737
738NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
739NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
740
741############ PTT ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800742PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800743PTT_INC_DIR := $(PTT_DIR)/inc
744PTT_SRC_DIR := $(PTT_DIR)/src
745
746PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
747PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
748
749############ WLAN_LOGGING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800750WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800751WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
752WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
753
754WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
755WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o
756
757############ SYS ############
758SYS_DIR := core/mac/src/sys
759
760SYS_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
765SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
766SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
767SYS_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 Dhavali7090c5f2015-11-02 17:55:19 -0800772 $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
773 $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800774 $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
775
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800776############ Qca-wifi-host-cmn ############
777QDF_OS_DIR := qdf
778QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
779QDF_OS_SRC_DIR := $(QDF_OS_DIR)/linux/src
780QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800781
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800782QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
783 -I$(WLAN_COMMON_INC)/$(QDF_OS_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800784
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800785QDF_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 Dhavali7090c5f2015-11-02 17:55:19 -0800794
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700795ifeq ($(CONFIG_WLAN_DEBUGFS), y)
796QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debugfs.o
797endif
798
Wu Gao64b31482017-03-10 15:16:10 +0800799
800##########OS_IF #######
801OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if
802
803OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux \
804 -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700805 -I$(WLAN_COMMON_INC)/os_if/linux/p2p/inc \
806 -I$(WLAN_COMMON_INC)/os_if/linux/tdls/inc
Wu Gao64b31482017-03-10 15:16:10 +0800807
808OS_IF_OBJ := $(OS_IF_DIR)/linux/p2p/src/wlan_cfg80211_p2p.o
Sandeep Puligillafdd201e2017-02-02 18:43:46 -0800809
Frank Liu65b17d92016-11-23 15:58:44 +0800810############ UMAC_DISP ############
811UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
812UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
813UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
814UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
815
816UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
817
818UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
819
Abhishek Singh9be07e22017-02-21 10:59:57 +0530820############# UMAC_SCAN ############
821UMAC_SCAN_DIR := umac/scan
822UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc
823UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src
824UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530825UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc
Abhishek Singh9be07e22017-02-21 10:59:57 +0530826
827UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR)
828UMAC_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 Singh310503c2017-03-07 11:19:10 +0530834 $(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 Singh9be07e22017-02-21 10:59:57 +0530838
839############# UMAC_CMN_SERVICES ############
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530840UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
841 -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
842UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530843
Dhanashri Atre170855e2016-12-15 13:26:54 -0800844ifeq ($(CONFIG_WLAN_LRO), y)
845QDF_OBJS += $(QDF_OBJ_DIR)/qdf_lro.o
846endif
847
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800848############ CDS (Connectivity driver services) ############
849CDS_DIR := core/cds
850CDS_INC_DIR := $(CDS_DIR)/inc
851CDS_SRC_DIR := $(CDS_DIR)/src
852
853CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
854 -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
855
856CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800857 $(CDS_SRC_DIR)/cds_reg_service.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800858 $(CDS_SRC_DIR)/cds_packet.o \
859 $(CDS_SRC_DIR)/cds_regdomain.o \
860 $(CDS_SRC_DIR)/cds_sched.o \
Krunal Sonid32c6bc2016-10-18 18:00:21 -0700861 $(CDS_SRC_DIR)/cds_utils.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800862
863
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530864###### UMAC OBJMGR ########
865UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
866
867UMAC_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
872UMAC_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 Kumarb32b8a92017-02-01 14:35:54 -0800876 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_service_ready_api.o \
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530877 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
878
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530879########### UMAC MGMT TXRX ##########
880UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
881
Himanshu Agarwal795b7f72017-01-17 21:19:43 +0530882UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530883
884UMAC_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 Sharmac5de6772017-01-05 14:32:36 +0530888########## POWER MANAGEMENT OFFLOADS (PMO) ##########
Rajeev Kumarf46083e2017-07-17 17:48:16 -0700889PMO_DIR := components/pmo
Mukul Sharmad75a6672017-06-22 15:40:53 +0530890PMO_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 Sharmac5de6772017-01-05 14:32:36 +0530894
895PMO_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 Sharma4c60a7e2017-03-06 19:42:18 +0530902 $(PMO_DIR)/core/src/wlan_pmo_lphb.o \
903 $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700904 $(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530905 $(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530906 $(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 Sharma4c60a7e2017-03-06 19:42:18 +0530913 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
914 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +0530915 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700916 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530917 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o
Mukul Sharmac5de6772017-01-05 14:32:36 +0530918
Mukul Sharmad75a6672017-06-22 15:40:53 +0530919########## CLD TARGET_IF #######
Rajeev Kumarf46083e2017-07-17 17:48:16 -0700920CLD_TARGET_IF_DIR := components/target_if
Mukul Sharmad75a6672017-06-22 15:40:53 +0530921
922CLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \
923 -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src \
924
925CLD_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 Gao64b31482017-03-10 15:16:10 +0800937############## UMAC P2P ###########
938P2P_DIR := umac/p2p
939P2P_CORE_DIR := $(P2P_DIR)/core
940P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src
941P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR)
942P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
943P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
944P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src
945P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR)
946UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \
947 -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc
948UMAC_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 Bhattacharyya44939d42017-02-15 17:08:12 -0800954###### UMAC POLICY MGR ########
955UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr
956
957UMAC_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
960UMAC_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 Kannan6d7a4112017-04-20 14:37:09 -0700966###### UMAC TDLS ########
967UMAC_TDLS_DIR := $(WLAN_COMMON_ROOT)/umac/tdls
968
969UMAC_TDLS_INC := -I$(WLAN_COMMON_INC)/umac/tdls/dispatcher/inc
970
971UMAC_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 Dhavali7090c5f2015-11-02 17:55:19 -0800981########### BMI ###########
982BMI_DIR := core/bmi
983
984BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
985
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800986BMI_OBJS := $(BMI_DIR)/src/bmi.o \
Poddar, Siddarthef1f3022016-05-10 20:10:43 +0530987 $(BMI_DIR)/src/ol_fw.o \
988 $(BMI_DIR)/src/ol_fw_common.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800989BMI_OBJS += $(BMI_DIR)/src/bmi_1.o
Govind Singh0fea23a2016-03-18 12:59:27 +0530990
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530991########## TARGET_IF #######
992TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
993
994TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
Rajeev Kumarda2444c2017-01-10 22:42:07 -0800995 -I$(WLAN_COMMON_INC)/target_if/core/src \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530996 -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -0800997 -I$(WLAN_COMMON_INC)/target_if/p2p/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700998 -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
999 -I$(WLAN_COMMON_INC)/target_if/tdls/inc
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301000
Rajeev Kumarda2444c2017-01-10 22:42:07 -08001001TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +05301002 $(TARGET_IF_DIR)/init_deinit/src/service_ready_event_handler.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001003 $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001004 $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
1005 $(TARGET_IF_DIR)/tdls/src/target_if_tdls.o
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301006
Mukul Sharmadad267e2017-02-04 13:25:34 +05301007########### GLOBAL_LMAC_IF ##########
1008GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
1009
1010GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
1011 -I$(WLAN_COMMON_INC)/global_lmac_if/src
1012
1013GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
1014
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001015########### WMI ###########
Govind Singh0fea23a2016-03-18 12:59:27 +05301016WMI_ROOT_DIR := wmi
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001017
Govind Singh0fea23a2016-03-18 12:59:27 +05301018WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
1019WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
1020WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001021
Govind Singh0fea23a2016-03-18 12:59:27 +05301022WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
1023
1024WMI_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 Sharma0cdf8b32017-02-04 14:27:56 +05301028 $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001029 $(WMI_OBJ_DIR)/wmi_unified_reg_api.o \
Arif Hussain757b45f2017-02-11 16:47:06 -08001030 $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o \
Govind Singh0fea23a2016-03-18 12:59:27 +05301031 $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001032
1033########### FWLOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001034FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001035
1036FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
1037
1038FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
1039
1040############ TXRX ############
1041TXRX_DIR := core/dp/txrx
1042TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
1043
1044TXRX_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, Siddarth29296fb2016-05-16 18:06:30 +05301059 $(TXRX_DIR)/ol_tx_send.o \
1060 $(TXRX_DIR)/ol_tx_sched.o \
1061 $(TXRX_DIR)/ol_tx_classify.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001062
1063ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1064TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
1065endif
1066
Yun Parkb4f591d2017-03-29 15:51:01 -07001067ifeq ($(CONFIG_IPA_OFFLOAD), 1)
1068TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o
1069endif
1070
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001071ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001072############ DP 3.0 ############
1073DP_INC := -I$(WLAN_COMMON_ROOT)/dp/inc \
1074 -I$(WLAN_COMMON_ROOT)/dp/wifi3.0
1075
1076DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
1077DP_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 Dutt237c6142017-01-04 11:28:59 -08001084 $(DP_SRC)/dp_rx_desc.o \
Ravi Joshi12665a02017-03-08 16:35:04 -08001085 $(DP_SRC)/dp_reo.o \
1086 $(DP_SRC)/dp_rx_mon_dest.o \
Ravi Joshic4a41082017-01-09 22:27:58 -08001087 $(DP_SRC)/dp_rx_mon_status.o \
Venkata Sharath Chandra Manchalabcdfdb12017-03-29 19:25:45 -07001088 $(DP_SRC)/dp_rx_defrag.o \
1089 $(DP_SRC)/dp_stats.o
Manjunathappa Prakash6c547362017-03-30 20:11:47 -07001090ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1091DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o
1092endif
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001093endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001094
Yun Parkb4f591d2017-03-29 15:51:01 -07001095ifeq ($(CONFIG_IPA_OFFLOAD), 1)
1096DP_OBJS += $(DP_SRC)/dp_ipa.o
1097endif
1098
Leo Chang5f7a1e02016-11-04 14:04:26 -07001099############ CFG ############
Ravi Joshid55b18a2017-02-17 10:48:14 -08001100WCFG_DIR := wlan_cfg
1101WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
1102WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
1103WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
Leo Chang5f7a1e02016-11-04 14:04:26 -07001104
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001105############ OL ############
1106OL_DIR := core/dp/ol
1107OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
1108
Dhanashri Atre12a08392016-02-17 13:10:34 -08001109############ CDP ############
1110CDP_ROOT_DIR := dp
1111CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
1112CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
1113
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001114############ PKTLOG ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001115PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001116PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
1117
1118PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
1119 $(PKTLOG_DIR)/pktlog_internal.o \
1120 $(PKTLOG_DIR)/linux_ac.o
1121
1122############ HTT ############
1123HTT_DIR := core/dp/htt
1124HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
1125
1126HTT_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 Kumar97767a02016-11-30 11:20:40 -08001133
1134############## INIT-DEINIT ###########
1135INIT_DEINIT_DIR := init_deinit/dispatcher
1136INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
1137INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
1138INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
1139INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
1140INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
1141
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001142############## REGULATORY ###########
1143REGULATORY_DIR := umac/regulatory
1144REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
1145REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
1146REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
1147REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
1148REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
1149REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
1150REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
1151REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
1152REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \
1153 $(REG_CORE_OBJ_DIR)/reg_services.o \
Amar Singhaleac64132017-05-05 13:02:37 -07001154 $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001155 $(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 Kumar1705fc22016-11-30 16:12:16 -08001159############## Control path common scheduler ##########
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001160SCHEDULER_DIR := scheduler
1161SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
1162SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
1163SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
1164SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
1165SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
1166 $(SCHEDULER_OBJ_DIR)/scheduler_core.o
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001167
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001168###### UMAC SERIALIZATION ########
1169UMAC_SER_DIR := umac/cmn_services/serialization
1170UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
1171UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
1172UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
Rajeev Kumar97767a02016-11-30 11:20:40 -08001173
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001174UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
1175UMAC_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 Yeturu35c07f92017-02-28 10:35:00 -08001180 $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001181 $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001182
1183###### WIFI POS ########
Naveen Rawat91a27b72017-03-20 18:49:57 -07001184CONFIG_WIFI_POS_CONVERGED := y
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001185
1186WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
1187WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
1188WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
1189WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
1190WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
1191WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
1192
1193
1194ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1195WIFI_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
1201endif
1202
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001203######################### NAN #########################
1204NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src
1205NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc
1206NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src
1207NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc
1208NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src
1209NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc
1210NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src
1211NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc
1212
1213ifeq ($(CONFIG_NAN_CONVERGENCE), y)
1214WLAN_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
1220endif
1221#######################################################
1222
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001223############## HTC ##########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001224HTC_DIR := htc
1225HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001226
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001227HTC_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 Dhavali7090c5f2015-11-02 17:55:19 -08001231
1232########### HIF ###########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001233HIF_DIR := hif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001234HIF_CE_DIR := $(HIF_DIR)/src/ce
Houston Hoffman1edffd32016-01-27 16:30:34 -08001235
1236HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
1237
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001238HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001239HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
Mohit Khannada4f4432016-05-17 15:02:09 -07001240HIF_USB_DIR := $(HIF_DIR)/src/usb
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301241HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
1242
1243HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
1244HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
1245HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001246
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001247HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
1248 -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src \
Yuanyuan Liu91353612016-05-04 12:02:00 -07001249 -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001250
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001251ifeq ($(CONFIG_HIF_PCI), 1)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001252HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001253HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001254endif
1255
1256ifeq ($(CONFIG_HIF_SNOC), 1)
1257HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001258HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001259endif
1260
Mohit Khannada4f4432016-05-17 15:02:09 -07001261ifeq ($(CONFIG_HIF_USB), 1)
1262HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1263HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
1264endif
1265
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301266ifeq ($(CONFIG_HIF_SDIO), 1)
1267HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1268HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
1269HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
1270endif
1271
1272HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
1273 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
Houston Hoffmanb4d45672017-04-24 11:56:50 -07001274 $(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, Siddarth29296fb2016-05-16 18:06:30 +05301277
1278HIF_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 Manchala5d714d82017-01-18 14:56:32 -08001283 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301284
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001285ifeq ($(CONFIG_LITHIUM), y)
1286HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o \
1287 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
Houston Hoffmana0f93492016-11-18 13:42:12 -08001288endif
1289
Houston Hoffmanb4d45672017-04-24 11:56:50 -07001290
Mohit Khannada4f4432016-05-17 15:02:09 -07001291HIF_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, Siddarth29296fb2016-05-16 18:06:30 +05301296HIF_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
1304HIF_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 Dhavali7090c5f2015-11-02 17:55:19 -08001306
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001307ifeq ($(CONFIG_WLAN_NAPI), y)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001308HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001309endif
1310
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07001311ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), 1)
1312 HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o
1313endif
1314
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001315HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001316HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301317HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001318
Houston Hoffman1edffd32016-01-27 16:30:34 -08001319HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
Houston Hoffmanb61b9b12016-03-03 20:04:16 -08001320HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
Houston Hoffman1edffd32016-01-27 16:30:34 -08001321
1322ifeq ($(CONFIG_HIF_PCI), 1)
1323HIF_OBJS += $(HIF_PCIE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301324HIF_OBJS += $(HIF_COMMON_OBJS)
1325HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001326HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
1327endif
1328
1329ifeq ($(CONFIG_HIF_SNOC), 1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001330HIF_OBJS += $(HIF_SNOC_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301331HIF_OBJS += $(HIF_COMMON_OBJS)
1332HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001333HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001334endif
1335
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301336ifeq ($(CONFIG_HIF_SDIO), 1)
1337HIF_OBJS += $(HIF_SDIO_OBJS)
1338HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
1339HIF_OBJS += $(HIF_COMMON_OBJS)
1340HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
1341endif
1342
Mohit Khannada4f4432016-05-17 15:02:09 -07001343ifeq ($(CONFIG_HIF_USB), 1)
1344HIF_OBJS += $(HIF_USB_OBJS)
1345HIF_OBJS += $(HIF_COMMON_OBJS)
1346HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
1347endif
1348
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001349ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001350############ HAL ############
1351HAL_DIR := hal
1352HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
1353 -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
1354
1355HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
1356 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001357 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \
1358 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001359endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001360
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001361############ WMA ############
1362WMA_DIR := core/wma
1363
1364WMA_INC_DIR := $(WMA_DIR)/inc
1365WMA_SRC_DIR := $(WMA_DIR)/src
1366
1367WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
1368 -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
1369
Ravi Joshia063dd92016-05-25 16:43:13 -07001370ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
1371WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
1372endif
1373
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001374WMA_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 Joshia063dd92016-05-25 16:43:13 -07001382 $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
1383 $(WMA_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001384
Agrawal Ashishb141b092016-09-02 19:59:26 +05301385ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonb90ab572017-01-31 15:57:35 -08001386WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
Agrawal Ashishb141b092016-09-02 19:59:26 +05301387endif
Jeff Johnson6136fb92017-03-30 15:21:49 -07001388ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
1389WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o
1390endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001391ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
1392WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
1393endif
Krishna Kumaar Natarajand0bbb3c2017-03-13 17:04:58 -07001394ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
1395WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
1396endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001397
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001398############## PLD ##########
1399PLD_DIR := core/pld
1400PLD_INC_DIR := $(PLD_DIR)/inc
1401PLD_SRC_DIR := $(PLD_DIR)/src
1402
1403PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
1404 -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
1405
1406PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
1407
1408ifeq ($(CONFIG_PCI), y)
1409PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
1410endif
1411ifeq ($(CONFIG_ICNSS),y)
1412PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
1413endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301414ifeq ($(CONFIG_CNSS_SDIO),y)
1415PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
1416endif
Mohit Khannae7a43572016-10-10 17:34:21 -07001417ifeq ($(CONFIG_PLD_USB_CNSS), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001418PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
1419endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001420
Dhanashri Atref067b582017-04-14 16:56:24 -07001421TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2 \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001422 -I$(WLAN_ROOT)/../fw-api/fw
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001423
1424LINUX_INC := -Iinclude/linux
1425
1426INCS := $(HDD_INC) \
1427 $(EPPING_INC) \
1428 $(LINUX_INC) \
1429 $(MAC_INC) \
1430 $(SAP_INC) \
1431 $(SME_INC) \
1432 $(SYS_INC) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001433 $(QDF_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001434 $(CDS_INC) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301435 $(DFS_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301436 $(TARGET_IF_INC) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301437 $(CLD_TARGET_IF_INC) \
Sandeep Puligillafdd201e2017-02-02 18:43:46 -08001438 $(OS_IF_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301439 $(GLOBAL_LMAC_IF_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001440
1441INCS += $(WMA_INC) \
1442 $(UAPI_INC) \
1443 $(COMMON_INC) \
1444 $(WMI_INC) \
1445 $(FWLOG_INC) \
1446 $(TXRX_INC) \
1447 $(OL_INC) \
Dhanashri Atre12a08392016-02-17 13:10:34 -08001448 $(CDP_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001449 $(PKTLOG_INC) \
1450 $(HTT_INC) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001451 $(INIT_DEINIT_INC) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001452 $(SCHEDULER_INC) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001453 $(REGULATORY_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001454 $(HTC_INC) \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001455 $(DFS_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001456 $(WCFG_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001457
1458INCS += $(HIF_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001459 $(BMI_INC)
1460
1461ifeq ($(CONFIG_LITHIUM), y)
1462INCS += $(HAL_INC) \
1463 $(DP_INC)
1464endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001465
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001466################ WIFI POS ################
1467INCS += $(WIFI_POS_API_INC)
1468INCS += $(WIFI_POS_TGT_INC)
1469INCS += $(WIFI_POS_OS_IF_INC)
1470##########################################
1471
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001472################ NAN POS ################
1473INCS += $(NAN_CORE_INC)
1474INCS += $(NAN_UCFG_INC)
1475INCS += $(NAN_TGT_INC)
1476INCS += $(NAN_OS_IF_INC)
1477##########################################
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301478INCS += $(UMAC_OBJMGR_INC)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301479INCS += $(UMAC_MGMT_TXRX_INC)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301480INCS += $(PMO_INC)
Wu Gao64b31482017-03-10 15:16:10 +08001481INCS += $(UMAC_P2P_INC)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001482INCS += $(UMAC_POLICY_MGR_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001483INCS += $(TARGET_INC)
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001484INCS += $(UMAC_TDLS_INC)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001485INCS += $(UMAC_SER_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001486INCS += $(NLINK_INC) \
1487 $(PTT_INC) \
1488 $(WLAN_LOGGING_INC)
1489
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001490INCS += $(PLD_INC)
1491
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001492ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
1493INCS += $(PKTLOG_INC)
1494endif
1495
1496ifeq ($(BUILD_DIAG_VERSION), 1)
1497INCS += $(HOST_DIAG_LOG_INC)
1498endif
1499
Frank Liu65b17d92016-11-23 15:58:44 +08001500INCS += $(UMAC_DISP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301501INCS += $(UMAC_SCAN_INC)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301502INCS += $(UMAC_TARGET_SCAN_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301503INCS += $(UMAC_COMMON_INC)
Frank Liu65b17d92016-11-23 15:58:44 +08001504
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001505OBJS := $(HDD_OBJS) \
1506 $(EPPING_OBJS) \
1507 $(MAC_OBJS) \
1508 $(SAP_OBJS) \
1509 $(SME_OBJS) \
1510 $(SYS_OBJS) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001511 $(QDF_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001512 $(CDS_OBJS) \
1513 $(DFS_OBJS)
1514
1515OBJS += $(WMA_OBJS) \
1516 $(TXRX_OBJS) \
1517 $(WMI_OBJS) \
1518 $(FWLOG_OBJS) \
1519 $(HTC_OBJS) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001520 $(INIT_DEINIT_OBJS) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001521 $(SCHEDULER_OBJS) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001522 $(REGULATORY_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001523 $(DFS_OBJS)
1524
1525OBJS += $(HIF_OBJS) \
1526 $(BMI_OBJS) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301527 $(HTT_OBJS) \
Wu Gao64b31482017-03-10 15:16:10 +08001528 $(OS_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301529 $(TARGET_IF_OBJ) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301530 $(CLD_TARGET_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301531 $(GLOBAL_LMAC_IF_OBJ)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001532
1533ifeq ($(CONFIG_LITHIUM), y)
1534OBJS += $(HAL_OBJS)
1535endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001536
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301537OBJS += $(UMAC_OBJMGR_OBJS)
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001538OBJS += $(WIFI_POS_OBJS)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001539OBJS += $(WLAN_NAN_OBJS)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301540OBJS += $(UMAC_MGMT_TXRX_OBJS)
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001541OBJS += $(UMAC_TDLS_OBJS)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301542OBJS += $(PMO_OBJS)
Wu Gao64b31482017-03-10 15:16:10 +08001543OBJS += $(UMAC_P2P_OBJS)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001544OBJS += $(UMAC_POLICY_MGR_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001545OBJS += $(WLAN_LOGGING_OBJS)
1546OBJS += $(NLINK_OBJS)
1547OBJS += $(PTT_OBJS)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001548OBJS += $(UMAC_SER_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001549OBJS += $(PLD_OBJS)
1550
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001551ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
1552OBJS += $(PKTLOG_OBJS)
1553endif
1554
1555ifeq ($(BUILD_DIAG_VERSION), 1)
1556OBJS += $(HOST_DIAG_LOG_OBJS)
1557endif
1558
Frank Liu65b17d92016-11-23 15:58:44 +08001559OBJS += $(UMAC_DISP_OBJS)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301560OBJS += $(UMAC_SCAN_OBJS)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301561OBJS += $(UMAC_COMMON_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001562OBJS += $(WCFG_OBJS)
1563
1564ifeq ($(CONFIG_LITHIUM), y)
1565OBJS += $(DP_OBJS)
1566endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001567
1568EXTRA_CFLAGS += $(INCS)
1569
1570CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \
1571 -DANI_LITTLE_BIT_ENDIAN \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001572 -DDOT11F_LITTLE_ENDIAN_HOST \
1573 -DANI_COMPILER_TYPE_GCC \
1574 -DANI_OS_TYPE_ANDROID=6 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001575 -DPTT_SOCK_SVC_ENABLE \
1576 -Wall\
1577 -Werror\
1578 -D__linux__ \
1579 -DHAL_SELF_STA_PER_BSS=1 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001580 -DFEATURE_WLAN_WAPI \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001581 -DSOFTAP_CHANNEL_RANGE \
1582 -DWLAN_AP_STA_CONCURRENCY \
1583 -DFEATURE_WLAN_SCAN_PNO \
1584 -DWLAN_FEATURE_PACKET_FILTERING \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001585 -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 Dhavali7090c5f2015-11-02 17:55:19 -08001593 -DWLAN_NL80211_TESTMODE \
1594 -DFEATURE_WLAN_LPHB \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001595 -DQCA_SUPPORT_TX_THROTTLE \
1596 -DWMI_INTERFACE_EVENT_LOGGING \
1597 -DATH_SUPPORT_WAPI \
1598 -DWLAN_FEATURE_LINK_LAYER_STATS \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001599 -DFEATURE_WLAN_EXTSCAN \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001600 -DWLAN_FEATURE_MBSSID \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001601 -DCONFIG_160MHZ_SUPPORT \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +05301602 -DCONFIG_MCL \
Amar Singhal9583b112017-06-21 14:15:44 -07001603 -DCONFIG_LEGACY_CHAN_ENUM \
Sandeep Puligilla1fcdb772017-02-22 21:14:59 -08001604 -DNAPIER_SCAN \
Wu Gao64b31482017-03-10 15:16:10 +08001605 -DWLAN_PMO_ENABLE \
Wu Gao5491e522017-03-20 20:32:32 +08001606 -DCONVERGED_P2P_ENABLE \
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08001607 -DWLAN_POLICY_MGR_ENABLE \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001608 -DSUPPORT_11AX \
1609 -DCONVERGED_TDLS_ENABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001610
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001611
1612############ WIFI POS ##############
1613ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1614CDEFINES += -DWIFI_POS_CONVERGED
1615else
1616CDEFINES += -DFEATURE_OEM_DATA_SUPPORT
1617endif
1618####################################
1619
Mohit Khannada4f4432016-05-17 15:02:09 -07001620ifneq ($(CONFIG_HIF_USB), 1)
1621CDEFINES += -DWLAN_LOGGING_SOCK_SVC_ENABLE
1622endif
1623
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001624ifeq ($(CONFIG_CNSS), y)
1625ifeq ($(CONFIG_CNSS_SDIO), y)
1626CDEFINES += -DCONFIG_PLD_SDIO_CNSS
1627else
1628CDEFINES += -DCONFIG_PLD_PCIE_CNSS
1629endif
1630endif
1631
Yue Mae6a7a322016-08-31 11:09:23 -07001632ifeq ($(CONFIG_CNSS2), y)
1633CDEFINES += -DCONFIG_PLD_PCIE_CNSS
Houston Hoffman435cd442016-11-23 14:20:42 -08001634CDEFINES += -DCONFIG_PLD_PCIE_INIT
Yue Mae6a7a322016-08-31 11:09:23 -07001635endif
1636
Yue Ma2b091312017-02-15 15:56:47 -08001637# Flag to enable bus auto suspend
1638ifeq ($(CONFIG_ROME_IF),pci)
1639ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
1640CDEFINES += -DFEATURE_RUNTIME_PM
1641endif
1642endif
1643
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001644ifeq ($(CONFIG_ICNSS), y)
1645CDEFINES += -DCONFIG_PLD_SNOC_ICNSS
1646endif
1647
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001648ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
1649CDEFINES += -DQCA_WIFI_3_0
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001650endif
1651
1652ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1653CDEFINES += -DQCA_WIFI_3_0_ADRASTEA
1654CDEFINES += -DADRASTEA_SHADOW_REGISTERS
Sanjay Devnanicdab59e2015-11-12 14:43:58 -08001655CDEFINES += -DADRASTEA_RRI_ON_DDR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001656endif
1657
1658ifeq ($(CONFIG_WLAN_FASTPATH), y)
1659CDEFINES += -DWLAN_FEATURE_FASTPATH
1660endif
1661
Poddar, Siddartheefe3482016-09-21 18:12:59 +05301662ifeq ($(CONFIG_FEATURE_PKTLOG), y)
1663CDEFINES += -DFEATURE_PKTLOG
1664endif
1665
Venkata Sharath Chandra Manchala0b9fc632017-05-15 14:35:15 -07001666CDEFINES += -DCONFIG_DP_TRACE
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05301667
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001668ifeq ($(CONFIG_WLAN_NAPI), y)
1669CDEFINES += -DFEATURE_NAPI
Houston Hoffmanb4d45672017-04-24 11:56:50 -07001670CDEFINES += -DHIF_IRQ_AFFINITY
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001671ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
1672CDEFINES += -DFEATURE_NAPI_DEBUG
1673endif
1674endif
1675
Yue Madf224b82016-04-21 12:46:04 -07001676ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
Yuanyuan Liu5af44362016-04-01 21:57:06 -07001677CDEFINES += -DMSM_PLATFORM
1678endif
1679
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001680CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
1681
1682ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1683CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2
1684CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
1685else
1686ifeq ($(CONFIG_ROME_IF),pci)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001687ifneq ($(CONFIG_LITHIUM),y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001688CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
1689endif
1690endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001691endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001692
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001693ifneq ($(CONFIG_QCA_CLD_WLAN),)
1694CDEFINES += -DWCN_PRONTO
1695CDEFINES += -DWCN_PRONTO_V1
1696endif
1697
1698ifeq ($(BUILD_DEBUG_VERSION),1)
1699CDEFINES += -DWLAN_DEBUG \
1700 -DTRACE_RECORD \
1701 -DLIM_TRACE_RECORD \
1702 -DSME_TRACE_RECORD \
1703 -DHDD_TRACE_RECORD \
1704 -DPE_DEBUG_LOGW \
Srinivas Girigowda6147c582016-10-18 12:26:15 -07001705 -DPE_DEBUG_LOGE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001706endif
1707
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07001708ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), 1)
1709 CDEFINES += -DWLAN_SUSPEND_RESUME_TEST
1710endif
1711
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001712ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
1713CDEFINES += -DTIMER_MANAGER
1714CDEFINES += -DMEMORY_DEBUG
Rajeev Kumar04223052017-04-07 20:44:15 -07001715CDEFINES += -DCONFIG_HALT_KMEMLEAK
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001716endif
1717
1718ifeq ($(HAVE_CFG80211),1)
1719CDEFINES += -DWLAN_FEATURE_P2P
1720CDEFINES += -DWLAN_FEATURE_WFD
1721ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
1722CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
1723CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
1724endif
1725endif
1726
1727ifeq ($(CONFIG_QCOM_ESE),y)
1728CDEFINES += -DFEATURE_WLAN_ESE
1729CDEFINES += -DQCA_COMPUTE_TX_DELAY
1730CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001731endif
1732
1733#normally, TDLS negative behavior is not needed
1734ifeq ($(CONFIG_QCOM_TDLS),y)
1735CDEFINES += -DFEATURE_WLAN_TDLS
1736endif
1737
1738ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y)
1739CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD
1740endif
1741
Selvaraj, Sridhar046d77d2017-03-07 14:53:13 +05301742ifeq ($(CONFIG_CNSS_GENL), y)
1743CDEFINES += -DCNSS_GENL
1744endif
1745
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -08001746ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
1747CDEFINES += -DWLAN_FEATURE_HOST_ROAM
1748endif
1749
Sridhar Selvarajdc400d22016-10-18 17:18:03 +05301750ifeq ($(CONFIG_WLAN_POWER_DEBUGFS), y)
1751CDEFINES += -DWLAN_POWER_DEBUGFS
1752endif
1753
Rajeev Kumar69d7d492017-02-13 21:48:16 -08001754# Enable object manager reference count debug infrastructure
1755CDEFINES += -DWLAN_OBJMGR_DEBUG
1756
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001757ifeq ($(BUILD_DIAG_VERSION),1)
1758CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
1759CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
1760CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
1761ifeq ($(CONFIG_HIF_PCI), 1)
1762CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1763endif
1764endif
1765
1766ifeq ($(CONFIG_HIF_USB), 1)
1767CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1768CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
1769CDEFINES += -DCONFIG_ATH_PCIE_MAX_PERF=0 -DCONFIG_ATH_PCIE_AWAKE_WHILE_DRIVER_LOAD=0 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001770endif
1771
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001772ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
1773CDEFINES += -DWLAN_FEATURE_11W
1774endif
1775
gbiane55c9562016-11-01 14:47:47 +08001776ifeq ($(CONFIG_QCA_TXDESC_SANITY_CHECKS), 1)
1777CDEFINES += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
1778endif
1779
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001780ifeq ($(CONFIG_QCOM_LTE_COEX),y)
1781CDEFINES += -DFEATURE_WLAN_CH_AVOID
1782endif
1783
1784ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
1785CDEFINES += -DWLAN_FEATURE_LPSS
1786endif
1787
Nirav Shah76291962016-04-25 10:50:37 +05301788ifneq ($(TARGET_BUILD_VARIANT),user)
1789CDEFINES += -DDESC_DUP_DETECT_DEBUG
Manjunathappa Prakashc8e75642016-06-03 19:32:27 -07001790CDEFINES += -DDEBUG_RX_RING_BUFFER
Nirav Shah76291962016-04-25 10:50:37 +05301791endif
1792
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001793ifeq ($(PANIC_ON_BUG),1)
1794CDEFINES += -DPANIC_ON_BUG
1795endif
1796
1797ifeq ($(WLAN_OPEN_SOURCE), 1)
1798CDEFINES += -DWLAN_OPEN_SOURCE
1799endif
1800
1801ifeq ($(CONFIG_FEATURE_STATS_EXT), 1)
1802CDEFINES += -DWLAN_FEATURE_STATS_EXT
1803endif
1804
1805ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
1806CDEFINES += -DWLAN_FEATURE_NAN
1807endif
1808
1809ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1)
1810CDEFINES += -DQCA_IBSS_SUPPORT
1811endif
1812
1813#Enable OL debug and wmi unified functions
1814ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1)
1815CDEFINES += -DATH_PERF_PWR_OFFLOAD
1816endif
1817
1818#Disable packet log
1819ifeq ($(CONFIG_REMOVE_PKT_LOG), 1)
1820CDEFINES += -DREMOVE_PKT_LOG
1821endif
1822
1823#Enable 11AC TX
1824ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1)
1825CDEFINES += -DATH_11AC_TXCOMPACT
1826endif
1827
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001828#Enable OS specific IRQ abstraction
1829ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1)
1830CDEFINES += -DATH_SUPPORT_SHARED_IRQ
1831endif
1832
1833#Enable message based HIF instead of RAW access in BMI
1834ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1)
1835CDEFINES += -DHIF_MESSAGE_BASED
1836endif
1837
1838#Enable PCI specific APIS (dma, etc)
1839ifeq ($(CONFIG_HIF_PCI), 1)
1840CDEFINES += -DHIF_PCI
1841endif
1842
Houston Hoffman1edffd32016-01-27 16:30:34 -08001843ifeq ($(CONFIG_HIF_SNOC), 1)
1844CDEFINES += -DHIF_SNOC
1845endif
1846
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301847#Enable High Latency related Flags
1848ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
1849CDEFINES += -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
1863endif
1864
Agrawal Ashishb141b092016-09-02 19:59:26 +05301865ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1866CDEFINES += -DWLAN_FEATURE_DSRC
1867endif
1868
bings7762da12017-03-06 07:21:04 +08001869ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
1870ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
1871ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y)
1872CDEFINES += -DFEATURE_SKB_PRE_ALLOC
1873endif
1874endif
1875endif
1876
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001877#Enable USB specific APIS
1878ifeq ($(CONFIG_HIF_USB), 1)
Mohit Khannada4f4432016-05-17 15:02:09 -07001879CDEFINES += -DHIF_USB \
Mohit Khannae7a43572016-10-10 17:34:21 -07001880 -DCONFIG_PLD_USB_CNSS \
1881 -DCONFIG_HL_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001882endif
1883
1884#Enable FW logs through ini
1885CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI
1886
1887#Enable pci read/write config functions
1888ifeq ($(CONFIG_ATH_PCI), 1)
1889CDEFINES += -DATH_PCI
1890endif
1891
1892#Enable power management suspend/resume functionality
1893ifeq ($(CONFIG_ATH_BUS_PM), 1)
1894CDEFINES += -DATH_BUS_PM
1895endif
1896
1897#Enable FLOWMAC module support
1898ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1)
1899CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE
1900endif
1901
1902#Enable spectral support
1903ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1)
1904CDEFINES += -DATH_SUPPORT_SPECTRAL
1905endif
1906
1907#Enable WDI Event support
1908ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
1909CDEFINES += -DWDI_EVENT_ENABLE
1910endif
1911
1912#Endianess selection
1913ifeq ($(CONFIG_LITTLE_ENDIAN), 1)
1914AH_LITTLE_ENDIAN=1234
1915CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN)
1916else
1917AH_BIG_ENDIAN=4321
1918CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN)
1919CDEFINES += -DBIG_ENDIAN_HOST
1920endif
1921
1922#Enable TX reclaim support
1923ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1)
1924CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT
1925endif
1926
1927#Enable FTM support
1928ifeq ($(CONFIG_QCA_WIFI_FTM), 1)
1929CDEFINES += -DQCA_WIFI_FTM
1930endif
1931
1932#Enable Checksum Offload support
1933ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1)
1934CDEFINES += -DCHECKSUM_OFFLOAD
1935endif
1936
1937#Enable Checksum Offload support
1938ifeq ($(CONFIG_IPA_OFFLOAD), 1)
1939CDEFINES += -DIPA_OFFLOAD
1940endif
1941
bings7762da12017-03-06 07:21:04 +08001942ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
1943CDEFINES += -DSYNC_IPA_READY
1944endif
1945
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001946#Enable GTK Offload
1947ifeq ($(CONFIG_GTK_OFFLOAD), 1)
1948CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD
1949CDEFINES += -DIGTK_OFFLOAD
1950endif
1951
1952#Enable GTK Offload
1953ifeq ($(CONFIG_EXT_WOW), 1)
1954CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT
1955endif
1956
1957#Mark it as SMP Kernel
1958ifeq ($(CONFIG_SMP),y)
1959CDEFINES += -DQCA_CONFIG_SMP
1960endif
1961
Sandeep Puligilla2111d3c2016-02-03 01:46:15 -08001962#Enable Channel Matrix restriction for all Rome only targets
1963ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001964CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
Sandeep Puligilla2111d3c2016-02-03 01:46:15 -08001965endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001966
Zhu Jianmin04392c42017-05-12 16:34:53 +08001967#Enable ICMP packet disable powersave feature
1968ifeq ($(CONFIG_ICMP_DISABLE_PS),y)
1969CDEFINES += -DWLAN_ICMP_DISABLE_PS
1970endif
1971
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07001972#Enable OBSS feature
1973CDEFINES += -DQCA_HT_2040_COEX
1974
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001975#features specific to mobile router use case
1976ifeq ($(CONFIG_MOBILE_ROUTER), y)
1977
1978#enable MCC TO SCC switch
1979CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
1980
1981#enable wlan auto shutdown feature
1982CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN
1983
1984#enable for MBSSID
1985CDEFINES += -DWLAN_FEATURE_MBSSID
1986
1987#enable AP-AP ACS Optimization
1988CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
1989
1990#Enable 4address scheme
1991CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME
1992
1993#Disable STA-AP Mode DFS support
1994CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
1995
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001996else #CONFIG_MOBILE_ROUTER
1997
1998#Open P2P device interface only for non-Mobile router use cases
1999CDEFINES += -DWLAN_OPEN_P2P_INTERFACE
2000
2001#Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
2002CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
2003
2004endif #CONFIG_MOBILE_ROUTER
2005
2006#Green AP feature
2007ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
2008CDEFINES += -DFEATURE_GREEN_AP
2009endif
2010
Yun Park637d6482016-10-05 10:51:33 -07002011#Stats & Quota Metering feature
Yun Parkb4f591d2017-03-29 15:51:01 -07002012ifeq ($(CONFIG_IPA),y)
Yun Park637d6482016-10-05 10:51:33 -07002013ifeq ($(CONFIG_QCACLD_FEATURE_METERING),y)
2014CDEFINES += -DFEATURE_METERING
2015endif
Yun Parkb4f591d2017-03-29 15:51:01 -07002016endif
Yun Park637d6482016-10-05 10:51:33 -07002017
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002018#Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform"
2019ifneq ($(CONFIG_ARCH_MDM9630), y)
2020ifeq ($(CONFIG_HIF_PCI), 1)
2021CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
2022endif
2023endif
2024
Yu Wang66e4ff22017-02-15 19:09:24 +08002025ifeq ($(CONFIG_ARCH_MDM9607), y)
2026CDEFINES += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
2027endif
2028
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002029#Enable Signed firmware support for split binary format
2030ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1)
2031CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
2032endif
2033
2034#Enable single firmware binary format
2035ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1)
2036CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT
2037endif
2038
2039#Enable collecting target RAM dump after kernel panic
2040ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1)
2041CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
2042endif
2043
2044#Enable/disable secure firmware feature
2045ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1)
2046CDEFINES += -DFEATURE_SECURE_FIRMWARE
2047endif
2048
2049ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1)
2050CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
2051endif
2052
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002053# Enable feature support fo Linux version QCMBR
2054ifeq ($(CONFIG_LINUX_QCMBR),y)
2055CDEFINES += -DLINUX_QCMBR
2056endif
2057
Manikandan Mohandcc21ba2016-03-15 14:31:56 -07002058# Enable featue sync tsf between multi devices
2059ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
2060CDEFINES += -DWLAN_FEATURE_TSF
2061endif
Rajeev Kumare0fd9dd2015-11-16 13:33:07 -08002062
Yu Wang000dc2f2017-05-26 17:38:48 +08002063ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
2064CDEFINES += -DWLAN_FEATURE_TSF_PLUS
2065endif
2066
Rajeev Kumare0fd9dd2015-11-16 13:33:07 -08002067# Enable full rx re-order offload for adrastea
2068ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
2069CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
2070endif
2071
Rajeev Kumar321a19a2015-12-08 12:54:46 -08002072# Enable athdiag procfs debug support for adrastea
2073ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
2074CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
2075endif
2076
Rajeev Kumar9c4809e2016-01-13 18:32:40 -08002077# Enable 11AC TX compact feature for adrastea
2078ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
2079CDEFINES += -DATH_11AC_TXCOMPACT
2080endif
2081
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002082# NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS
2083ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
2084CONFIG_HELIUMPLUS := y
2085CONFIG_64BIT_PADDR := y
2086CONFIG_FEATURE_TSO := y
2087CONFIG_FEATURE_TSO_DEBUG := y
Mohit Khanna3c4262d2017-05-24 17:32:22 -07002088ifneq ($(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE), y)
Poddar, Siddarthd63954e2017-02-24 15:37:49 +05302089CONFIG_ENABLE_DEBUG_ADDRESS_MARKING := y
2090endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002091ifeq ($(CONFIG_HELIUMPLUS),y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002092CDEFINES += -DHELIUMPLUS
Dhanashri Atre48c2ae62015-12-15 18:07:10 -08002093CDEFINES += -DAR900B
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002094ifeq ($(CONFIG_64BIT_PADDR),y)
2095CDEFINES += -DHTT_PADDR64
2096endif
Himanshu Agarwal8e89ce72017-03-06 17:09:25 +05302097
2098ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
2099CDEFINES += -DOL_RX_INDICATION_RECORD
2100endif
2101
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002102endif
2103endif
2104
Poddar, Siddarthd63954e2017-02-24 15:37:49 +05302105ifeq ($(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING),y)
2106CDEFINES += -DENABLE_DEBUG_ADDRESS_MARKING
2107endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002108ifeq ($(CONFIG_FEATURE_TSO),y)
2109CDEFINES += -DFEATURE_TSO
2110endif
2111ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y)
2112CDEFINES += -DFEATURE_TSO_DEBUG
2113endif
2114
2115ifeq ($(CONFIG_WLAN_LRO), y)
2116CDEFINES += -DFEATURE_LRO
2117endif
2118
2119ifeq ($(CONFIG_MOBILE_ROUTER), y)
2120CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
2121endif
2122
2123ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
2124CDEFINES += -DMPC_UT_FRAMEWORK
2125endif
2126
2127ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y)
2128CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS
2129endif
2130
2131ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
2132CDEFINES += -DWLAN_FEATURE_MEMDUMP
2133endif
2134
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +05302135ifeq ($(CONFIG_WLAN_FEATURE_DISA),y)
2136CDEFINES += -DWLAN_FEATURE_DISA
2137endif
2138
Jeff Johnson7869aad2017-05-15 15:46:36 -07002139ifeq ($(CONFIG_WLAN_FEATURE_FIPS),y)
2140CDEFINES += -DWLAN_FEATURE_FIPS
2141endif
2142
Ravi Joshi61c3c7a2015-11-09 18:41:20 -08002143ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
2144CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION
2145endif
2146
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +05302147ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y)
2148CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
2149endif
2150
Ravi Joshia063dd92016-05-25 16:43:13 -07002151ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
2152CDEFINES += -DWLAN_FEATURE_NAN_DATAPATH
2153endif
2154
Naveen Rawat6d2bf182017-03-22 10:18:00 -07002155ifeq ($(CONFIG_NAN_CONVERGENCE), y)
2156CDEFINES += -DWLAN_FEATURE_NAN_CONVERGENCE
2157endif
2158
Leo Chang5f7a1e02016-11-04 14:04:26 -07002159ifeq ($(CONFIG_LITHIUM),y)
Houston Hoffman06fd5662017-02-08 21:41:20 -08002160CDEFINES += -DCONFIG_SHADOW_V2
Aravind Narasimhan4ed314d2016-11-14 16:56:42 -08002161CDEFINES += -DQCA6290_HEADERS_DEF
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002162CDEFINES += -DQCA_WIFI_QCA6290
Leo Chang5f7a1e02016-11-04 14:04:26 -07002163CDEFINES += -DQCA_WIFI_QCA8074
Leo Chang395cbb52016-11-11 14:35:03 -08002164CDEFINES += -DQCA_WIFI_NAPIER_EMULATION
Leo Chang5f7a1e02016-11-04 14:04:26 -07002165CDEFINES += -DQCA_WIFI_QCA8074_VP
Ravi Joshifc2ed782016-11-22 17:36:50 -08002166CDEFINES += -DDP_INTR_POLL_BASED
Ravi Joshifa5536f2017-02-14 12:25:09 -08002167CDEFINES += -DTX_PER_PDEV_DESC_POOL
Dhanashri Atre2f507a72017-03-28 13:52:29 -07002168CDEFINES += -DWLAN_RX_HASH
Venkata Sharath Chandra Manchala0b9fc632017-05-15 14:35:15 -07002169CDEFINES += -DCONFIG_DP_TRACE
Venkata Sharath Chandra Manchala1676def2017-05-04 14:18:09 -07002170CDEFINES += -DFEATURE_TSO
2171CDEFINES += -DTSO_DEBUG_LOG_ENABLE
Pramod Simha707a3562017-03-22 13:15:37 -07002172CDEFINES += -DDP_LFR
Leo Chang5f7a1e02016-11-04 14:04:26 -07002173endif
2174
Krishna Kumaar Natarajan639c6ff2017-02-13 14:01:04 -08002175ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
2176CDEFINES += -DWLAN_FEATURE_11AX
2177endif
2178
Leo Chang5f7a1e02016-11-04 14:04:26 -07002179# Dummy flag for WIN/MCL converged data path compilation
2180CDEFINES += -DDP_PRINT_ENABLE=0
2181CDEFINES += -DATH_SUPPORT_WRAP=0
Dhanashri Atre33e147e2017-01-20 14:52:18 -08002182CDEFINES += -DQCA_HOST2FW_RXBUF_RING
Leo Chang5f7a1e02016-11-04 14:04:26 -07002183#endof dummy flags
2184
Arif Hussain757b45f2017-02-11 16:47:06 -08002185# DFS component
2186CDEFINES += -DQCA_MCL_DFS_SUPPORT
2187CDEFINES += -DDFS_COMPONENT_ENABLE
2188CDEFINES += -DQCA_DFS_USE_POLICY_MANAGER
2189CDEFINES += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
2190
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -07002191ifeq ($(CONFIG_WLAN_DEBUGFS), y)
2192CDEFINES += -DWLAN_DEBUGFS
2193endif
2194
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002195KBUILD_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.
2201ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
2202EXTRA_CFLAGS += -Wmaybe-uninitialized
Leo Chang5f7a1e02016-11-04 14:04:26 -07002203ifneq (y,$(CONFIG_ARCH_MSM))
2204EXTRA_CFLAGS += -Wframe-larger-than=4096
2205endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002206endif
Jeff Johnson522db002016-10-05 16:30:41 -07002207EXTRA_CFLAGS += -Wmissing-prototypes
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002208
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002209ifeq ($(call cc-option-yn, -Wheader-guard),y)
2210EXTRA_CFLAGS += -Wheader-guard
2211endif
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302212# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
Yu Wang66e4ff22017-02-15 19:09:24 +08002213# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302214# 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.
2218ifneq ($(MODNAME), wlan)
Yu Wang66e4ff22017-02-15 19:09:24 +08002219CHIP_NAME ?= $(MODNAME)
2220CDEFINES += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302221endif
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.
2227ifdef WLAN_HDD_ADAPTER_MAGIC
2228CDEFINES += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
2229endif
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002230
Naveen Rawat93836252017-06-20 16:30:59 -07002231# inject some build related information
2232ifeq ($(CONFIG_BUILD_TIMESTAMP), y)
2233CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"
2234endif
2235
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002236# Module information used by KBuild framework
2237obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
2238$(MODNAME)-y := $(OBJS)