blob: be748a8d011ad36aa98352518c0be6fdb65eaab5 [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
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080095 CONFIG_QCACLD_FEATURE_GREEN_AP := y
Dustin Brown48efd5b2017-07-25 11:50:14 -070096
Ashwini Muduganti79649822016-11-16 11:29:50 -080097 ifeq ($(CONFIG_ARCH_MSM8998), y)
Yun Park637d6482016-10-05 10:51:33 -070098 CONFIG_QCACLD_FEATURE_METERING := y
Jeff Johnsona6300252016-09-28 15:58:55 -070099 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800100
Poddar, Siddarth1bec7ae2017-01-24 18:02:31 +0530101 ifeq ($(CONFIG_ARCH_SDM660), y)
102 CONFIG_QCACLD_FEATURE_METERING := y
103 endif
104
105 ifeq ($(CONFIG_ARCH_SDM630), y)
106 CONFIG_QCACLD_FEATURE_METERING := y
107 endif
108
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800109 #Flag to enable Fast Transition (11r) feature
110 CONFIG_QCOM_VOWIFI_11R := y
111
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +0530112 #Flag to enable FILS Feature (11ai)
113 CONFIG_WLAN_FEATURE_FILS := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800114 ifneq ($(CONFIG_QCA_CLD_WLAN),)
Yue Mae6a7a322016-08-31 11:09:23 -0700115 ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2) $(CONFIG_ICNSS)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800116 #Flag to enable Protected Managment Frames (11w) feature
117 CONFIG_WLAN_FEATURE_11W := y
118 #Flag to enable LTE CoEx feature
119 CONFIG_QCOM_LTE_COEX := y
120 ifneq ($(CONFIG_MOBILE_ROUTER), y)
121 #Flag to enable LPSS feature
122 CONFIG_WLAN_FEATURE_LPSS := y
123 endif
124 endif
125 endif
126
Ravi Joshia063dd92016-05-25 16:43:13 -0700127 #Flag to enable Protected Managment Frames (11w) feature
128 ifeq ($(CONFIG_ROME_IF),usb)
129 CONFIG_WLAN_FEATURE_11W := y
130 endif
131 ifeq ($(CONFIG_ROME_IF),sdio)
132 CONFIG_WLAN_FEATURE_11W := y
133 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800134
gbiane55c9562016-11-01 14:47:47 +0800135 #Flag to enable the tx desc sanity check
136 ifeq ($(CONFIG_ROME_IF),usb)
137 CONFIG_QCA_TXDESC_SANITY_CHECKS := y
138 endif
139
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800140 ifneq ($(CONFIG_MOBILE_ROUTER), y)
141 #Flag to enable NAN
142 CONFIG_QCACLD_FEATURE_NAN := y
143 endif
144
Ravi Joshia063dd92016-05-25 16:43:13 -0700145 ifneq ($(CONFIG_MOBILE_ROUTER), y)
146 #Flag to enable NAN Data path
147 CONFIG_WLAN_FEATURE_NAN_DATAPATH := y
Naveen Rawat3cb59812017-03-28 16:59:08 -0700148 CONFIG_NAN_CONVERGENCE := y
Ravi Joshia063dd92016-05-25 16:43:13 -0700149 endif
150
151 #Flag to enable Linux QCMBR feature as default feature
152 ifeq ($(CONFIG_ROME_IF),usb)
153 CONFIG_LINUX_QCMBR :=y
154 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800155
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800156 CONFIG_MPC_UT_FRAMEWORK := y
157
158 #Flag to enable offload packets feature
159 CONFIG_WLAN_OFFLOAD_PACKETS := y
160
Manikandan Mohan5356c2b2016-04-03 15:51:35 -0700161 #enable TSF get feature
162 CONFIG_WLAN_SYNC_TSF := y
Agrawal Ashishb141b092016-09-02 19:59:26 +0530163 #Enable DSRC feature
164
165 ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
166 CONFIG_WLAN_FEATURE_DSRC := y
167 endif
Manikandan Mohan5356c2b2016-04-03 15:51:35 -0700168
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530169ifneq ($(CONFIG_ROME_IF),sdio)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800170 #Flag to enable memdump feature
c_manjee36b61832017-01-31 17:38:47 +0530171 CONFIG_WLAN_FEATURE_MEMDUMP := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800172
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530173 #Flag to enable DISA
174 CONFIG_WLAN_FEATURE_DISA := y
175
Jeff Johnson7869aad2017-05-15 15:46:36 -0700176 #Flag to enable FIPS
177 CONFIG_WLAN_FEATURE_FIPS := y
178
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800179 #Flag to enable Fast Path feature
180 CONFIG_WLAN_FASTPATH := y
181
182 # Flag to enable NAPI
183 CONFIG_WLAN_NAPI := y
184 CONFIG_WLAN_NAPI_DEBUG := n
Houston Hoffmanb4d45672017-04-24 11:56:50 -0700185
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800186 # Flag to enable FW based TX Flow control
Manjunathappa Prakash6c547362017-03-30 20:11:47 -0700187 ifeq (y,$(findstring y,$(CONFIG_CNSS_EOS) $(CONFIG_LITHIUM)))
Nirav Shah9d7f2e82015-09-28 11:09:09 -0700188 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
189 else
190 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n
191 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800192
193 # Flag to enable LRO (Large Receive Offload)
Manjunathappa Prakashbeeacb12016-06-17 18:18:32 -0700194 ifeq ($(CONFIG_INET_LRO), y)
Manjunathappa Prakash4282a012017-05-23 19:06:46 -0700195 CONFIG_WLAN_LRO := y
196 else
197 CONFIG_WLAN_LRO := n
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800198 endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530199endif
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800200
Manjunathappa Prakashfa345992016-04-21 16:45:40 -0700201ifeq ($(CONFIG_ROME_IF), snoc)
202 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
203endif
204
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800205 # Flag to enable LFR Subnet Detection
206 CONFIG_LFR_SUBNET_DETECTION := y
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +0530207
208 # Flag to enable MCC to SCC switch feature
209 CONFIG_MCC_TO_SCC_SWITCH := y
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700210
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700211endif
212
Srinivas Girigowda811c8d52017-06-21 22:45:18 -0700213# As per target team, build is done as follows:
214# Defconfig : build with default flags
215# Slub : defconfig + CONFIG_SLUB_DEBUG=y +
216# CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y
217# Perf : Using appropriate msmXXXX-perf_defconfig
218#
219# Shipment builds (user variants) should not have any debug feature
220# enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds
221# are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since
222# there is no other way to identify defconfig builds, QCOMs internal
223# representation of perf builds (identified using the string 'perf'),
224# is used to identify if the build is a slub or defconfig one. This
225# way no critical debug feature will be enabled for perf and shipment
226# builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT
227# config.
228ifneq ($(TARGET_BUILD_VARIANT),user)
229 ifeq ($(CONFIG_LITHIUM), y)
230 CONFIG_FEATURE_PKTLOG := n
231 else
232 CONFIG_FEATURE_PKTLOG := y
233 endif
234endif
235
Varun Reddy Yeturufd6d1642017-04-12 23:19:54 -0700236#Enable WLAN/Power debugfs feature only if debug_fs is enabled
237ifeq ($(CONFIG_DEBUG_FS), y)
238 # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel
239 # configuration.
240 CONFIG_WLAN_DEBUGFS := y
241
242 CONFIG_WLAN_POWER_DEBUGFS := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800243endif
244
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800245# If not set, assume, Common driver is with in the build tree
Yu Wangc8a6c492017-02-13 14:20:15 +0800246WLAN_COMMON_ROOT ?= ../qca-wifi-host-cmn
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800247WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
248
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800249ifneq ($(CONFIG_MOBILE_ROUTER), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800250CONFIG_QCOM_ESE := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800251endif
252
253# Feature flags which are not (currently) configurable via Kconfig
254
255#Whether to build debug version
256BUILD_DEBUG_VERSION := 1
257
258#Enable this flag to build driver in diag version
259BUILD_DIAG_VERSION := 1
260
261#Do we panic on bug? default is to warn
262PANIC_ON_BUG := 1
263
264#Enable OL debug and wmi unified functions
265CONFIG_ATH_PERF_PWR_OFFLOAD := 1
266
267#Disable packet log
268CONFIG_REMOVE_PKT_LOG := 0
269
270#Enable 11AC TX
271ifeq ($(CONFIG_ROME_IF),pci)
272 CONFIG_ATH_11AC_TXCOMPACT := 1
273endif
274ifeq ($(CONFIG_ROME_IF),usb)
275 CONFIG_ATH_11AC_TXCOMPACT := 0
276endif
277
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800278#Enable OS specific IRQ abstraction
279CONFIG_ATH_SUPPORT_SHARED_IRQ := 1
280
281#Enable message based HIF instead of RAW access in BMI
282ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
283CONFIG_HIF_MESSAGE_BASED := 0
284else
285CONFIG_HIF_MESSAGE_BASED := 1
286endif
287
288#Enable PCI specific APIS (dma, etc)
289ifeq ($(CONFIG_ROME_IF),pci)
290 CONFIG_HIF_PCI := 1
291endif
292
Mohit Khannada4f4432016-05-17 15:02:09 -0700293#Enable USB specific APIS
294ifeq ($(CONFIG_ROME_IF),usb)
295 CONFIG_HIF_USB := 1
Mohit Khannae7a43572016-10-10 17:34:21 -0700296 CONFIG_PLD_USB_CNSS := y
Mohit Khannada4f4432016-05-17 15:02:09 -0700297endif
298
Yu Wang58e1cad2017-02-10 17:43:15 +0800299#Enable SDIO specific APIS
300ifeq ($(CONFIG_ROME_IF),sdio)
301 CONFIG_HIF_SDIO := 1
302endif
303
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800304#Enable pci read/write config functions
305ifeq ($(CONFIG_ROME_IF),pci)
306 CONFIG_ATH_PCI := 1
307endif
Houston Hoffman52ec6692016-04-21 16:36:45 -0700308
309ifeq ($(CONFIG_ROME_IF),snoc)
310 CONFIG_HIF_SNOC:= 1
311endif
312
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800313ifneq ($(CONFIG_MOBILE_ROUTER), y)
314#Enable IBSS support on CLD
315CONFIG_QCA_IBSS_SUPPORT := 1
316endif
317
318#Enable power management suspend/resume functionality to PCI
319CONFIG_ATH_BUS_PM := 1
320
321#Enable FLOWMAC module support
322CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := 0
323
324#Enable spectral support
325CONFIG_ATH_SUPPORT_SPECTRAL := 0
326
327#Enable HOST statistics support
328CONFIG_SUPPORT_HOST_STATISTICS := 0
329
330#Enable WDI Event support
331CONFIG_WDI_EVENT_ENABLE := 1
332
333#Endianess selection
334CONFIG_LITTLE_ENDIAN := 1
335
336#Enable TX reclaim support
337CONFIG_TX_CREDIT_RECLAIM_SUPPORT := 0
338
339#Enable FTM support
340CONFIG_QCA_WIFI_FTM := 1
341
342#Enable Checksum Offload
343CONFIG_CHECKSUM_OFFLOAD := 1
344
345#Enable GTK offload
346CONFIG_GTK_OFFLOAD := 1
347
348#Enable EXT WOW
349ifeq ($(CONFIG_ROME_IF),pci)
350 CONFIG_EXT_WOW := 1
351endif
352
353#Set this to 1 to catch erroneous Target accesses during debug.
354CONFIG_ATH_PCIE_ACCESS_DEBUG := 0
355
356#Enable IPA offload
357ifeq ($(CONFIG_IPA), y)
Manjunathappa Prakash143a24e2017-07-18 16:31:08 -0700358#CONFIG_IPA_OFFLOAD := 1
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800359endif
360
361#Enable Signed firmware support for split binary format
362CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := 0
363
364#Enable single firmware binary format
365CONFIG_QCA_SINGLE_BINARY_SUPPORT := 0
366
367#Enable collecting target RAM dump after kernel panic
368CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := 1
369
370#Flag to enable/disable secure firmware feature
371CONFIG_FEATURE_SECURE_FIRMWARE := 0
372
373#Flag to enable Stats Ext implementation
374CONFIG_FEATURE_STATS_EXT := 1
375
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800376ifeq ($(CONFIG_CFG80211),y)
377HAVE_CFG80211 := 1
378else
379ifeq ($(CONFIG_CFG80211),m)
380HAVE_CFG80211 := 1
381else
382HAVE_CFG80211 := 0
383endif
384endif
385
Dustin Brown0f8dc3d2017-06-01 14:37:26 -0700386# enable unit-test suspend for SLUB debug builds
387ifeq ($(CONFIG_SLUB_DEBUG_ON), y)
388 CONFIG_FEATURE_UNIT_TEST_SUSPEND := 1
389endif
390
Rajeev Kumar01e64362017-08-21 14:21:48 -0700391# enable unit-test suspend for napier builds
392ifeq ($(CONFIG_LITHIUM), y)
393 CONFIG_FEATURE_UNIT_TEST_SUSPEND := 1
394endif
395
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800396############ UAPI ############
397UAPI_DIR := uapi
398UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
399
400############ COMMON ############
401COMMON_DIR := core/common
402COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
403
404############ HDD ############
405HDD_DIR := core/hdd
406HDD_INC_DIR := $(HDD_DIR)/inc
407HDD_SRC_DIR := $(HDD_DIR)/src
408
409HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
410 -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
411
412HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
413 $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800414 $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
415 $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
416 $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
417 $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
418 $(HDD_SRC_DIR)/wlan_hdd_main.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800419 $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
420 $(HDD_SRC_DIR)/wlan_hdd_power.o \
Amar Singhale4f28ee2015-10-21 14:36:56 -0700421 $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
Jeff Johnsona2d9bb32017-01-18 13:23:24 -0800422 $(HDD_SRC_DIR)/wlan_hdd_request_manager.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800423 $(HDD_SRC_DIR)/wlan_hdd_scan.o \
424 $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
425 $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
426 $(HDD_SRC_DIR)/wlan_hdd_trace.o \
427 $(HDD_SRC_DIR)/wlan_hdd_wext.o \
428 $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
Rajeev Kumar699debf2017-01-06 14:17:00 -0800429 $(HDD_SRC_DIR)/wlan_hdd_wowl.o \
430 $(HDD_SRC_DIR)/wlan_hdd_object_manager.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800431
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700432ifeq ($(CONFIG_WLAN_DEBUGFS), y)
433HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
Krishna Kumaar Natarajanc7e2bb72017-03-10 10:38:46 -0800434HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs_llstat.o
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700435endif
436
Agrawal Ashishb141b092016-09-02 19:59:26 +0530437ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
438HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o
439endif
Amar Singhale4f28ee2015-10-21 14:36:56 -0700440
Jeff Johnson6fa1e012017-04-05 06:40:53 -0700441ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
442HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_fips.o
443endif
444
Jeff Johnson2b0a7b82016-05-18 15:08:02 -0700445ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
446HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o
447endif
448
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800449ifeq ($(CONFIG_WLAN_LRO), y)
450HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
451endif
452
453ifeq ($(CONFIG_WLAN_NAPI), y)
454HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
455endif
456
457ifeq ($(CONFIG_IPA_OFFLOAD), 1)
458HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
459endif
460
461ifeq ($(HAVE_CFG80211),1)
462HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
463 $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \
464 $(HDD_SRC_DIR)/wlan_hdd_stats.o \
465 $(HDD_SRC_DIR)/wlan_hdd_p2p.o
466endif
467
468ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
469HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
470endif
471
472ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
473HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
474endif
475
476ifeq ($(CONFIG_QCOM_TDLS),y)
477HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
478endif
479
Yu Wang000dc2f2017-05-26 17:38:48 +0800480ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
481CONFIG_WLAN_SYNC_TSF := y
482endif
483
Manikandan Mohandcc21ba2016-03-15 14:31:56 -0700484ifeq ($(CONFIG_WLAN_SYNC_TSF),y)
485HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
486endif
487
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800488ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
489HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
490endif
491
492ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
493HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_memdump.o
494endif
495
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530496ifeq ($(CONFIG_WLAN_FEATURE_DISA),y)
497HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
498endif
499
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800500ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
501HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
502endif
503
Ravi Joshia063dd92016-05-25 16:43:13 -0700504ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
505HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
506endif
507
Krishna Kumaar Natarajaned1efd92016-09-24 18:05:47 -0700508ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
509HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o
510endif
511
Ravi Joshi1c2cfb62017-01-18 14:40:08 -0800512ifeq ($(CONFIG_LITHIUM), y)
513HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o
514endif
515
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800516########### HOST DIAG LOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800517HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800518
519HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
520HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
521
522HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
523 -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
524
525HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
526
527############ EPPING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800528EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800529EPPING_INC_DIR := $(EPPING_DIR)/inc
530EPPING_SRC_DIR := $(EPPING_DIR)/src
531
532EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
533
534EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
535 $(EPPING_SRC_DIR)/epping_txrx.o \
536 $(EPPING_SRC_DIR)/epping_tx.o \
537 $(EPPING_SRC_DIR)/epping_rx.o \
538 $(EPPING_SRC_DIR)/epping_helper.o \
539
540
541############ MAC ############
542MAC_DIR := core/mac
543MAC_INC_DIR := $(MAC_DIR)/inc
544MAC_SRC_DIR := $(MAC_DIR)/src
545
546MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
547 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
548 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
549 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
Ravi Joshia063dd92016-05-25 16:43:13 -0700550 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
551 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800552
553MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800554 $(MAC_SRC_DIR)/cfg/cfg_param_name.o \
555 $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \
556 $(MAC_SRC_DIR)/cfg/cfg_send_msg.o
557
558MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
559
560MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
561 $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
562 $(MAC_SRC_DIR)/pe/lim/lim_api.o \
563 $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800564 $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
565 $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \
566 $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
567 $(MAC_SRC_DIR)/pe/lim/lim_p2p.o \
568 $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
569 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
570 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
571 $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
572 $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
573 $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
574 $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
575 $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
576 $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
577 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
578 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
579 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
580 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
581 $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
582 $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
583 $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
584 $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
585 $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
586 $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
587 $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
588 $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \
589 $(MAC_SRC_DIR)/pe/lim/lim_session.o \
590 $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
591 $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
592 $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \
593 $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
594 $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
595 $(MAC_SRC_DIR)/pe/lim/lim_utils.o
596
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800597ifeq ($(CONFIG_QCOM_TDLS),y)
598MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
599endif
600
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +0530601ifeq ($(CONFIG_WLAN_FEATURE_FILS),y)
602MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_fils.o
603endif
604
Ravi Joshia063dd92016-05-25 16:43:13 -0700605ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
606MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
607endif
608
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800609ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
610 MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
611 $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
612 $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
613 $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
614 $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
615endif
616
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800617MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
618 $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
619 $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800620 $(MAC_SRC_DIR)/pe/sch/sch_message.o
621
622MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
623
624MAC_OBJS := $(MAC_CFG_OBJS) \
625 $(MAC_DPH_OBJS) \
626 $(MAC_LIM_OBJS) \
627 $(MAC_SCH_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700628 $(MAC_RRM_OBJS) \
629 $(MAC_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800630
631############ SAP ############
632SAP_DIR := core/sap
633SAP_INC_DIR := $(SAP_DIR)/inc
634SAP_SRC_DIR := $(SAP_DIR)/src
635
636SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
637 -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
638
639SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
640 $(SAP_SRC_DIR)/sap_ch_select.o \
641 $(SAP_SRC_DIR)/sap_fsm.o \
642 $(SAP_SRC_DIR)/sap_module.o
643
644############ DFS ############ 350
Arif Hussain757b45f2017-02-11 16:47:06 -0800645DFS_DIR := $(WLAN_COMMON_ROOT)/umac/dfs
646DFS_CORE_INC_DIR := $(DFS_DIR)/core/inc
647DFS_CORE_SRC_DIR := $(DFS_DIR)/core/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800648
Arif Hussain757b45f2017-02-11 16:47:06 -0800649DFS_DISP_INC_DIR := $(DFS_DIR)/dispatcher/inc
650DFS_DISP_SRC_DIR := $(DFS_DIR)/dispatcher/src
651DFS_TARGET_INC_DIR := $(WLAN_COMMON_ROOT)/target_if/dfs/inc
652DFS_CMN_SERVICES_INC_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/dfs/inc
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800653
Arif Hussain757b45f2017-02-11 16:47:06 -0800654DFS_INC := -I$(WLAN_ROOT)/$(DFS_DISP_INC_DIR) \
655 -I$(WLAN_ROOT)/$(DFS_TARGET_INC_DIR) \
656 -I$(WLAN_ROOT)/$(DFS_CMN_SERVICES_INC_DIR)
657
658DFS_OBJS := $(DFS_CORE_SRC_DIR)/filtering/dfs_bindetects.o \
659 $(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o\
660 $(DFS_CORE_SRC_DIR)/filtering/dfs_fcc_bin5.o\
661 $(DFS_CORE_SRC_DIR)/filtering/dfs_init.o\
662 $(DFS_CORE_SRC_DIR)/filtering/dfs_misc.o\
663 $(DFS_CORE_SRC_DIR)/filtering/dfs_radar.o\
664 $(DFS_CORE_SRC_DIR)/filtering/dfs_ar.o\
665 $(DFS_CORE_SRC_DIR)/filtering/ar5416_radar.o\
666 $(DFS_CORE_SRC_DIR)/filtering/ar9300_radar.o\
667 $(DFS_CORE_SRC_DIR)/filtering/ar5212_radar.o\
668 $(DFS_CORE_SRC_DIR)/filtering/dfs_phyerr_tlv.o\
669 $(DFS_CORE_SRC_DIR)/filtering/dfs_process_phyerr.o\
670 $(DFS_CORE_SRC_DIR)/filtering/dfs_process_radarevent.o\
671 $(DFS_CORE_SRC_DIR)/filtering/dfs_staggered.o \
672 $(DFS_CORE_SRC_DIR)/misc/dfs.o \
673 $(DFS_CORE_SRC_DIR)/misc/dfs_cac.o\
674 $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o\
675 $(DFS_CORE_SRC_DIR)/misc/dfs_nol.o\
676 $(DFS_CORE_SRC_DIR)/misc/dfs_zero_cac.o\
677 $(DFS_CORE_SRC_DIR)/misc/dfs_random_chan_sel.o\
678 $(DFS_CORE_SRC_DIR)/misc/dfs_process_radar_found_ind.o\
679 $(DFS_DISP_SRC_DIR)/wlan_dfs_init_deinit_api.o\
680 $(DFS_DISP_SRC_DIR)/wlan_dfs_lmac_api.o\
681 $(DFS_DISP_SRC_DIR)/wlan_dfs_mlme_api.o\
682 $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o\
683 $(DFS_DISP_SRC_DIR)/wlan_dfs_ucfg_api.o\
684 $(DFS_DISP_SRC_DIR)/wlan_dfs_tgt_api.o\
685 $(DFS_DISP_SRC_DIR)/wlan_dfs_utils_api.o\
686 $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800687
688############ SME ############
689SME_DIR := core/sme
690SME_INC_DIR := $(SME_DIR)/inc
691SME_SRC_DIR := $(SME_DIR)/src
692
693SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
694 -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
695
696SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
697 $(SME_SRC_DIR)/csr/csr_api_scan.o \
698 $(SME_SRC_DIR)/csr/csr_cmd_process.o \
699 $(SME_SRC_DIR)/csr/csr_link_list.o \
700 $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800701 $(SME_SRC_DIR)/csr/csr_util.o \
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800702
703
704ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
705SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800706 $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800707endif
708
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800709
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800710ifeq ($(CONFIG_QCOM_TDLS),y)
711SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_tdls_process.o
712endif
713
714SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
715
716SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
717 $(SME_SRC_DIR)/common/sme_ft_api.o \
718 $(SME_SRC_DIR)/common/sme_power_save.o \
719 $(SME_SRC_DIR)/common/sme_trace.o
720
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800721SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_api.o
722
723SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
724
725ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
726SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o
727endif
728
Ravi Joshia063dd92016-05-25 16:43:13 -0700729ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
730SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
731endif
732
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800733SME_OBJS := $(SME_CMN_OBJS) \
734 $(SME_CSR_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800735 $(SME_P2P_OBJS) \
736 $(SME_QOS_OBJS) \
737 $(SME_RRM_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700738 $(SME_NAN_OBJS) \
739 $(SME_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800740
741############ NLINK ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800742NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800743NLINK_INC_DIR := $(NLINK_DIR)/inc
744NLINK_SRC_DIR := $(NLINK_DIR)/src
745
746NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
747NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
748
749############ PTT ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800750PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800751PTT_INC_DIR := $(PTT_DIR)/inc
752PTT_SRC_DIR := $(PTT_DIR)/src
753
754PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
755PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
756
757############ WLAN_LOGGING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800758WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800759WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
760WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
761
762WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
763WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o
764
765############ SYS ############
766SYS_DIR := core/mac/src/sys
767
768SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
769 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
770 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
771 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
772
773SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
774SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
775SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
776 $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
777 $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
778 $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
779 $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800780 $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
781 $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800782 $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
783
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800784############ Qca-wifi-host-cmn ############
785QDF_OS_DIR := qdf
786QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
787QDF_OS_SRC_DIR := $(QDF_OS_DIR)/linux/src
788QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800789
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800790QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
791 -I$(WLAN_COMMON_INC)/$(QDF_OS_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800792
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800793QDF_OBJS := $(QDF_OBJ_DIR)/qdf_defer.o \
794 $(QDF_OBJ_DIR)/qdf_event.o \
795 $(QDF_OBJ_DIR)/qdf_list.o \
796 $(QDF_OBJ_DIR)/qdf_lock.o \
797 $(QDF_OBJ_DIR)/qdf_mc_timer.o \
798 $(QDF_OBJ_DIR)/qdf_mem.o \
799 $(QDF_OBJ_DIR)/qdf_nbuf.o \
800 $(QDF_OBJ_DIR)/qdf_threads.o \
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +0530801 $(QDF_OBJ_DIR)/qdf_crypto.o \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800802 $(QDF_OBJ_DIR)/qdf_trace.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800803
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700804ifeq ($(CONFIG_WLAN_DEBUGFS), y)
805QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debugfs.o
806endif
807
Wu Gao64b31482017-03-10 15:16:10 +0800808
809##########OS_IF #######
810OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if
811
812OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux \
813 -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700814 -I$(WLAN_COMMON_INC)/os_if/linux/p2p/inc \
815 -I$(WLAN_COMMON_INC)/os_if/linux/tdls/inc
Wu Gao64b31482017-03-10 15:16:10 +0800816
817OS_IF_OBJ := $(OS_IF_DIR)/linux/p2p/src/wlan_cfg80211_p2p.o
Sandeep Puligillafdd201e2017-02-02 18:43:46 -0800818
Frank Liu65b17d92016-11-23 15:58:44 +0800819############ UMAC_DISP ############
820UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
821UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
822UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
823UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
824
825UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
826
827UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
828
Abhishek Singh9be07e22017-02-21 10:59:57 +0530829############# UMAC_SCAN ############
830UMAC_SCAN_DIR := umac/scan
831UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc
832UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src
833UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530834UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc
Abhishek Singh9be07e22017-02-21 10:59:57 +0530835
836UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR)
837UMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \
838 $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db_ops.o \
839 $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \
840 $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \
841 $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \
842 $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \
Abhishek Singh310503c2017-03-07 11:19:10 +0530843 $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \
844 $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \
845 $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \
846 $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530847
848############# UMAC_CMN_SERVICES ############
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530849UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
850 -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
851UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530852
Dhanashri Atre170855e2016-12-15 13:26:54 -0800853ifeq ($(CONFIG_WLAN_LRO), y)
854QDF_OBJS += $(QDF_OBJ_DIR)/qdf_lro.o
855endif
856
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800857############ CDS (Connectivity driver services) ############
858CDS_DIR := core/cds
859CDS_INC_DIR := $(CDS_DIR)/inc
860CDS_SRC_DIR := $(CDS_DIR)/src
861
862CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
863 -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
864
865CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800866 $(CDS_SRC_DIR)/cds_reg_service.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800867 $(CDS_SRC_DIR)/cds_packet.o \
868 $(CDS_SRC_DIR)/cds_regdomain.o \
869 $(CDS_SRC_DIR)/cds_sched.o \
Krunal Sonid32c6bc2016-10-18 18:00:21 -0700870 $(CDS_SRC_DIR)/cds_utils.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800871
872
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530873###### UMAC OBJMGR ########
874UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
875
876UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
877 -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
878 -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \
879 -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc
880
881UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
882 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
883 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
884 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
Rajeev Kumarb32b8a92017-02-01 14:35:54 -0800885 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_service_ready_api.o \
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530886 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
887
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530888########### UMAC MGMT TXRX ##########
889UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
890
Himanshu Agarwal795b7f72017-01-17 21:19:43 +0530891UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530892
893UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
894 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
895 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
896
Mukul Sharmac5de6772017-01-05 14:32:36 +0530897########## POWER MANAGEMENT OFFLOADS (PMO) ##########
Rajeev Kumarf46083e2017-07-17 17:48:16 -0700898PMO_DIR := components/pmo
Mukul Sharmad75a6672017-06-22 15:40:53 +0530899PMO_INC := -I$(WLAN_ROOT)/$(PMO_DIR)/core/inc \
900 -I$(WLAN_ROOT)/$(PMO_DIR)/core/src \
901 -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/inc \
902 -I$(WLAN_ROOT)/$(PMO_DIR)/dispatcher/src \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530903
904PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \
905 $(PMO_DIR)/core/src/wlan_pmo_arp.o \
906 $(PMO_DIR)/core/src/wlan_pmo_ns.o \
907 $(PMO_DIR)/core/src/wlan_pmo_gtk.o \
908 $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \
909 $(PMO_DIR)/core/src/wlan_pmo_static_config.o \
910 $(PMO_DIR)/core/src/wlan_pmo_wow.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530911 $(PMO_DIR)/core/src/wlan_pmo_lphb.o \
912 $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700913 $(PMO_DIR)/core/src/wlan_pmo_hw_filter.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530914 $(PMO_DIR)/core/src/wlan_pmo_pkt_filter.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530915 $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \
916 $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \
917 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \
918 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o \
919 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \
920 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \
921 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530922 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
923 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +0530924 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
Dustin Brown1224e212017-05-12 14:02:12 -0700925 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_hw_filter.o \
Ravi Kumar Bokka0b9ead32017-05-11 17:01:43 +0530926 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_pkt_filter.o
Mukul Sharmac5de6772017-01-05 14:32:36 +0530927
Mukul Sharmad75a6672017-06-22 15:40:53 +0530928########## CLD TARGET_IF #######
Rajeev Kumarf46083e2017-07-17 17:48:16 -0700929CLD_TARGET_IF_DIR := components/target_if
Mukul Sharmad75a6672017-06-22 15:40:53 +0530930
931CLD_TARGET_IF_INC := -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/inc \
932 -I$(WLAN_ROOT)/$(CLD_TARGET_IF_DIR)/pmo/src \
933
934CLD_TARGET_IF_OBJ := $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
935 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
936 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_hw_filter.o \
937 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
938 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
939 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
940 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o \
941 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_pkt_filter.o \
942 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
943 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
944 $(CLD_TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o \
945
Wu Gao64b31482017-03-10 15:16:10 +0800946############## UMAC P2P ###########
947P2P_DIR := umac/p2p
948P2P_CORE_DIR := $(P2P_DIR)/core
949P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src
950P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR)
951P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
952P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
953P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src
954P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR)
955UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \
956 -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc
957UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
958 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
959 $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
960 $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
961 $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o
962
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -0800963###### UMAC POLICY MGR ########
964UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr
965
966UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \
967 -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src
968
969UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
970 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
971 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
972 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
973 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \
974
Kabilan Kannan6d7a4112017-04-20 14:37:09 -0700975###### UMAC TDLS ########
976UMAC_TDLS_DIR := $(WLAN_COMMON_ROOT)/umac/tdls
977
978UMAC_TDLS_INC := -I$(WLAN_COMMON_INC)/umac/tdls/dispatcher/inc
979
980UMAC_TDLS_OBJS := $(UMAC_TDLS_DIR)/core/src/wlan_tdls_main.o \
981 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_cmds_process.o \
982 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_peer.o \
983 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_mgmt.o \
984 $(UMAC_TDLS_DIR)/core/src/wlan_tdls_ct.o \
985 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_tgt_api.o \
986 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_ucfg_api.o \
987 $(UMAC_TDLS_DIR)/dispatcher/src/wlan_tdls_utils_api.o \
988 $(WLAN_COMMON_ROOT)/os_if/linux/tdls/src/wlan_cfg80211_tdls.o
989
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800990########### BMI ###########
991BMI_DIR := core/bmi
992
993BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
994
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800995BMI_OBJS := $(BMI_DIR)/src/bmi.o \
Poddar, Siddarthef1f3022016-05-10 20:10:43 +0530996 $(BMI_DIR)/src/ol_fw.o \
997 $(BMI_DIR)/src/ol_fw_common.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800998BMI_OBJS += $(BMI_DIR)/src/bmi_1.o
Govind Singh0fea23a2016-03-18 12:59:27 +0530999
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301000########## TARGET_IF #######
1001TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
1002
1003TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
Rajeev Kumarda2444c2017-01-10 22:42:07 -08001004 -I$(WLAN_COMMON_INC)/target_if/core/src \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +05301005 -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001006 -I$(WLAN_COMMON_INC)/target_if/p2p/inc \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001007 -I$(WLAN_COMMON_INC)/target_if/regulatory/inc \
1008 -I$(WLAN_COMMON_INC)/target_if/tdls/inc
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301009
Rajeev Kumarda2444c2017-01-10 22:42:07 -08001010TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +05301011 $(TARGET_IF_DIR)/init_deinit/src/service_ready_event_handler.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001012 $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001013 $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o \
1014 $(TARGET_IF_DIR)/tdls/src/target_if_tdls.o
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301015
Mukul Sharmadad267e2017-02-04 13:25:34 +05301016########### GLOBAL_LMAC_IF ##########
1017GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
1018
1019GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
1020 -I$(WLAN_COMMON_INC)/global_lmac_if/src
1021
1022GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
1023
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001024########### WMI ###########
Govind Singh0fea23a2016-03-18 12:59:27 +05301025WMI_ROOT_DIR := wmi
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001026
Govind Singh0fea23a2016-03-18 12:59:27 +05301027WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
1028WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
1029WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001030
Govind Singh0fea23a2016-03-18 12:59:27 +05301031WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
1032
1033WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
1034 $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
1035 $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
1036 $(WMI_OBJ_DIR)/wmi_unified_api.o \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +05301037 $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001038 $(WMI_OBJ_DIR)/wmi_unified_reg_api.o \
Arif Hussain757b45f2017-02-11 16:47:06 -08001039 $(WMI_OBJ_DIR)/wmi_unified_dfs_api.o \
Govind Singh0fea23a2016-03-18 12:59:27 +05301040 $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001041
1042########### FWLOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001043FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001044
1045FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
1046
1047FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
1048
1049############ TXRX ############
1050TXRX_DIR := core/dp/txrx
1051TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
1052
1053TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
1054 $(TXRX_DIR)/ol_cfg.o \
1055 $(TXRX_DIR)/ol_rx.o \
1056 $(TXRX_DIR)/ol_rx_fwd.o \
1057 $(TXRX_DIR)/ol_txrx.o \
1058 $(TXRX_DIR)/ol_rx_defrag.o \
1059 $(TXRX_DIR)/ol_tx_desc.o \
1060 $(TXRX_DIR)/ol_tx.o \
1061 $(TXRX_DIR)/ol_rx_reorder_timeout.o \
1062 $(TXRX_DIR)/ol_rx_reorder.o \
1063 $(TXRX_DIR)/ol_rx_pn.o \
1064 $(TXRX_DIR)/ol_tx_queue.o \
1065 $(TXRX_DIR)/ol_txrx_peer_find.o \
1066 $(TXRX_DIR)/ol_txrx_event.o \
1067 $(TXRX_DIR)/ol_txrx_encap.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301068 $(TXRX_DIR)/ol_tx_send.o \
1069 $(TXRX_DIR)/ol_tx_sched.o \
1070 $(TXRX_DIR)/ol_tx_classify.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001071
1072ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1073TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
1074endif
1075
Yun Parkb4f591d2017-03-29 15:51:01 -07001076ifeq ($(CONFIG_IPA_OFFLOAD), 1)
1077TXRX_OBJS += $(TXRX_DIR)/ol_txrx_ipa.o
1078endif
1079
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001080ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001081############ DP 3.0 ############
1082DP_INC := -I$(WLAN_COMMON_ROOT)/dp/inc \
1083 -I$(WLAN_COMMON_ROOT)/dp/wifi3.0
1084
1085DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
1086DP_OBJS := $(DP_SRC)/dp_main.o \
1087 $(DP_SRC)/dp_tx.o \
1088 $(DP_SRC)/dp_tx_desc.o \
1089 $(DP_SRC)/dp_rx.o \
1090 $(DP_SRC)/dp_rx_err.o \
1091 $(DP_SRC)/dp_htt.o \
1092 $(DP_SRC)/dp_peer.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001093 $(DP_SRC)/dp_rx_desc.o \
Ravi Joshi12665a02017-03-08 16:35:04 -08001094 $(DP_SRC)/dp_reo.o \
1095 $(DP_SRC)/dp_rx_mon_dest.o \
Ravi Joshic4a41082017-01-09 22:27:58 -08001096 $(DP_SRC)/dp_rx_mon_status.o \
Venkata Sharath Chandra Manchalabcdfdb12017-03-29 19:25:45 -07001097 $(DP_SRC)/dp_rx_defrag.o \
1098 $(DP_SRC)/dp_stats.o
Manjunathappa Prakash6c547362017-03-30 20:11:47 -07001099ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1100DP_OBJS += $(DP_SRC)/dp_tx_flow_control.o
1101endif
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001102endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001103
Yun Parkb4f591d2017-03-29 15:51:01 -07001104ifeq ($(CONFIG_IPA_OFFLOAD), 1)
1105DP_OBJS += $(DP_SRC)/dp_ipa.o
1106endif
1107
Leo Chang5f7a1e02016-11-04 14:04:26 -07001108############ CFG ############
Ravi Joshid55b18a2017-02-17 10:48:14 -08001109WCFG_DIR := wlan_cfg
1110WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
1111WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
1112WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
Leo Chang5f7a1e02016-11-04 14:04:26 -07001113
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001114############ OL ############
1115OL_DIR := core/dp/ol
1116OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
1117
Dhanashri Atre12a08392016-02-17 13:10:34 -08001118############ CDP ############
1119CDP_ROOT_DIR := dp
1120CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
1121CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
1122
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001123############ PKTLOG ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001124PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001125PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
1126
1127PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
1128 $(PKTLOG_DIR)/pktlog_internal.o \
1129 $(PKTLOG_DIR)/linux_ac.o
1130
1131############ HTT ############
1132HTT_DIR := core/dp/htt
1133HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
1134
1135HTT_OBJS := $(HTT_DIR)/htt_tx.o \
1136 $(HTT_DIR)/htt.o \
1137 $(HTT_DIR)/htt_t2h.o \
1138 $(HTT_DIR)/htt_h2t.o \
1139 $(HTT_DIR)/htt_fw_stats.o \
1140 $(HTT_DIR)/htt_rx.o
1141
Rajeev Kumar97767a02016-11-30 11:20:40 -08001142
1143############## INIT-DEINIT ###########
1144INIT_DEINIT_DIR := init_deinit/dispatcher
1145INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
1146INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
1147INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
1148INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
1149INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
1150
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001151############## REGULATORY ###########
1152REGULATORY_DIR := umac/regulatory
1153REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
1154REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
1155REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
1156REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
1157REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
1158REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
1159REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
1160REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
1161REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \
1162 $(REG_CORE_OBJ_DIR)/reg_services.o \
Amar Singhaleac64132017-05-05 13:02:37 -07001163 $(REG_CORE_OBJ_DIR)/reg_db_parser.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001164 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
1165 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
1166 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
1167
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001168############## Control path common scheduler ##########
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001169SCHEDULER_DIR := scheduler
1170SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
1171SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
1172SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
1173SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
1174SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
1175 $(SCHEDULER_OBJ_DIR)/scheduler_core.o
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001176
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001177###### UMAC SERIALIZATION ########
1178UMAC_SER_DIR := umac/cmn_services/serialization
1179UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
1180UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
1181UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
Rajeev Kumar97767a02016-11-30 11:20:40 -08001182
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001183UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
1184UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_dequeue.o \
1185 $(UMAC_SER_OBJ_DIR)/wlan_serialization_enqueue.o \
1186 $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
1187 $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
1188 $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
Varun Reddy Yeturu35c07f92017-02-28 10:35:00 -08001189 $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001190 $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001191
1192###### WIFI POS ########
Naveen Rawat91a27b72017-03-20 18:49:57 -07001193CONFIG_WIFI_POS_CONVERGED := y
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001194
1195WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
1196WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
1197WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
1198WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
1199WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
1200WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
1201
1202
1203ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1204WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
1205 $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
1206 $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
1207 $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
1208 $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
1209 $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o
1210endif
1211
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001212######################### NAN #########################
1213NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src
1214NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc
1215NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src
1216NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc
1217NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src
1218NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc
1219NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src
1220NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc
1221
1222ifeq ($(CONFIG_NAN_CONVERGENCE), y)
1223WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
1224 $(NAN_CORE_DIR)/nan_api.o \
1225 $(NAN_CORE_DIR)/nan_utils.o \
1226 $(NAN_UCFG_DIR)/nan_ucfg_api.o \
1227 $(NAN_TGT_DIR)/target_if_nan.o \
1228 $(NAN_OS_IF_DIR)/os_if_nan.o
1229endif
1230#######################################################
1231
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001232############## HTC ##########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001233HTC_DIR := htc
1234HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001235
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001236HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
1237 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
1238 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
1239 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001240
1241########### HIF ###########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001242HIF_DIR := hif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001243HIF_CE_DIR := $(HIF_DIR)/src/ce
Houston Hoffman1edffd32016-01-27 16:30:34 -08001244
1245HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
1246
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001247HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001248HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
Mohit Khannada4f4432016-05-17 15:02:09 -07001249HIF_USB_DIR := $(HIF_DIR)/src/usb
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301250HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
1251
1252HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
1253HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
1254HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001255
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001256HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
tfyu350d9f72017-08-10 15:13:06 +08001257 -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src
Houston Hoffman1edffd32016-01-27 16:30:34 -08001258
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001259ifeq ($(CONFIG_HIF_PCI), 1)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001260HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001261HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
tfyu350d9f72017-08-10 15:13:06 +08001262HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001263endif
1264
1265ifeq ($(CONFIG_HIF_SNOC), 1)
1266HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001267HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
tfyu350d9f72017-08-10 15:13:06 +08001268HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001269endif
1270
Mohit Khannada4f4432016-05-17 15:02:09 -07001271ifeq ($(CONFIG_HIF_USB), 1)
1272HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1273HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
1274endif
1275
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301276ifeq ($(CONFIG_HIF_SDIO), 1)
1277HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1278HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
1279HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
1280endif
1281
1282HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
1283 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
Houston Hoffmanb4d45672017-04-24 11:56:50 -07001284 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o \
1285 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_exec.o \
1286 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_irq_affinity.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301287
1288HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o \
1289 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
1290 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
1291 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
1292 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001293 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301294
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001295ifeq ($(CONFIG_LITHIUM), y)
1296HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o \
1297 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
Houston Hoffmana0f93492016-11-18 13:42:12 -08001298endif
1299
Houston Hoffmanb4d45672017-04-24 11:56:50 -07001300
Mohit Khannada4f4432016-05-17 15:02:09 -07001301HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
1302 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
1303 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
1304 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
1305
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301306HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_send.o \
1307 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o \
1308 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
1309 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
1310 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
1311 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_recv.o \
1312 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o
1313
1314HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
1315 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001316
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001317ifeq ($(CONFIG_WLAN_NAPI), y)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001318HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001319endif
1320
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07001321ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), 1)
1322 HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_unit_test_suspend.o
1323endif
1324
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001325HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001326HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301327HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001328
Houston Hoffman1edffd32016-01-27 16:30:34 -08001329HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
Houston Hoffmanb61b9b12016-03-03 20:04:16 -08001330HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
Houston Hoffman1edffd32016-01-27 16:30:34 -08001331
1332ifeq ($(CONFIG_HIF_PCI), 1)
1333HIF_OBJS += $(HIF_PCIE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301334HIF_OBJS += $(HIF_COMMON_OBJS)
1335HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001336HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
1337endif
1338
1339ifeq ($(CONFIG_HIF_SNOC), 1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001340HIF_OBJS += $(HIF_SNOC_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301341HIF_OBJS += $(HIF_COMMON_OBJS)
1342HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001343HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001344endif
1345
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301346ifeq ($(CONFIG_HIF_SDIO), 1)
1347HIF_OBJS += $(HIF_SDIO_OBJS)
1348HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
1349HIF_OBJS += $(HIF_COMMON_OBJS)
1350HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
1351endif
1352
Mohit Khannada4f4432016-05-17 15:02:09 -07001353ifeq ($(CONFIG_HIF_USB), 1)
1354HIF_OBJS += $(HIF_USB_OBJS)
1355HIF_OBJS += $(HIF_COMMON_OBJS)
1356HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
1357endif
1358
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001359ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001360############ HAL ############
1361HAL_DIR := hal
1362HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
1363 -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
1364
1365HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
1366 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001367 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \
1368 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001369endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001370
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001371############ WMA ############
1372WMA_DIR := core/wma
1373
1374WMA_INC_DIR := $(WMA_DIR)/inc
1375WMA_SRC_DIR := $(WMA_DIR)/src
1376
1377WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
1378 -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
1379
Ravi Joshia063dd92016-05-25 16:43:13 -07001380ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
1381WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
1382endif
1383
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001384WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
1385 $(WMA_SRC_DIR)/wma_scan_roam.o \
1386 $(WMA_SRC_DIR)/wma_dev_if.o \
1387 $(WMA_SRC_DIR)/wma_mgmt.o \
1388 $(WMA_SRC_DIR)/wma_power.o \
1389 $(WMA_SRC_DIR)/wma_data.o \
1390 $(WMA_SRC_DIR)/wma_utils.o \
1391 $(WMA_SRC_DIR)/wma_features.o \
Ravi Joshia063dd92016-05-25 16:43:13 -07001392 $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
1393 $(WMA_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001394
Agrawal Ashishb141b092016-09-02 19:59:26 +05301395ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonb90ab572017-01-31 15:57:35 -08001396WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
Agrawal Ashishb141b092016-09-02 19:59:26 +05301397endif
Jeff Johnson6136fb92017-03-30 15:21:49 -07001398ifeq ($(CONFIG_WLAN_FEATURE_FIPS), y)
1399WMA_OBJS+= $(WMA_SRC_DIR)/wma_fips_api.o
1400endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001401ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
1402WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
1403endif
Krishna Kumaar Natarajand0bbb3c2017-03-13 17:04:58 -07001404ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
1405WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
1406endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001407
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001408############## PLD ##########
1409PLD_DIR := core/pld
1410PLD_INC_DIR := $(PLD_DIR)/inc
1411PLD_SRC_DIR := $(PLD_DIR)/src
1412
1413PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
1414 -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
1415
1416PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
1417
1418ifeq ($(CONFIG_PCI), y)
1419PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
1420endif
1421ifeq ($(CONFIG_ICNSS),y)
1422PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
1423endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301424ifeq ($(CONFIG_CNSS_SDIO),y)
1425PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
1426endif
Mohit Khannae7a43572016-10-10 17:34:21 -07001427ifeq ($(CONFIG_PLD_USB_CNSS), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001428PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
1429endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001430
Dhanashri Atref067b582017-04-14 16:56:24 -07001431TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2 \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001432 -I$(WLAN_ROOT)/../fw-api/fw
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001433
1434LINUX_INC := -Iinclude/linux
1435
1436INCS := $(HDD_INC) \
1437 $(EPPING_INC) \
1438 $(LINUX_INC) \
1439 $(MAC_INC) \
1440 $(SAP_INC) \
1441 $(SME_INC) \
1442 $(SYS_INC) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001443 $(QDF_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001444 $(CDS_INC) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301445 $(DFS_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301446 $(TARGET_IF_INC) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301447 $(CLD_TARGET_IF_INC) \
Sandeep Puligillafdd201e2017-02-02 18:43:46 -08001448 $(OS_IF_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301449 $(GLOBAL_LMAC_IF_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001450
1451INCS += $(WMA_INC) \
1452 $(UAPI_INC) \
1453 $(COMMON_INC) \
1454 $(WMI_INC) \
1455 $(FWLOG_INC) \
1456 $(TXRX_INC) \
1457 $(OL_INC) \
Dhanashri Atre12a08392016-02-17 13:10:34 -08001458 $(CDP_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001459 $(PKTLOG_INC) \
1460 $(HTT_INC) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001461 $(INIT_DEINIT_INC) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001462 $(SCHEDULER_INC) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001463 $(REGULATORY_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001464 $(HTC_INC) \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001465 $(DFS_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001466 $(WCFG_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001467
1468INCS += $(HIF_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001469 $(BMI_INC)
1470
1471ifeq ($(CONFIG_LITHIUM), y)
1472INCS += $(HAL_INC) \
1473 $(DP_INC)
1474endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001475
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001476################ WIFI POS ################
1477INCS += $(WIFI_POS_API_INC)
1478INCS += $(WIFI_POS_TGT_INC)
1479INCS += $(WIFI_POS_OS_IF_INC)
1480##########################################
1481
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001482################ NAN POS ################
1483INCS += $(NAN_CORE_INC)
1484INCS += $(NAN_UCFG_INC)
1485INCS += $(NAN_TGT_INC)
1486INCS += $(NAN_OS_IF_INC)
1487##########################################
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301488INCS += $(UMAC_OBJMGR_INC)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301489INCS += $(UMAC_MGMT_TXRX_INC)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301490INCS += $(PMO_INC)
Wu Gao64b31482017-03-10 15:16:10 +08001491INCS += $(UMAC_P2P_INC)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001492INCS += $(UMAC_POLICY_MGR_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001493INCS += $(TARGET_INC)
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001494INCS += $(UMAC_TDLS_INC)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001495INCS += $(UMAC_SER_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001496INCS += $(NLINK_INC) \
1497 $(PTT_INC) \
1498 $(WLAN_LOGGING_INC)
1499
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001500INCS += $(PLD_INC)
1501
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001502ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
1503INCS += $(PKTLOG_INC)
1504endif
1505
1506ifeq ($(BUILD_DIAG_VERSION), 1)
1507INCS += $(HOST_DIAG_LOG_INC)
1508endif
1509
Frank Liu65b17d92016-11-23 15:58:44 +08001510INCS += $(UMAC_DISP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301511INCS += $(UMAC_SCAN_INC)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301512INCS += $(UMAC_TARGET_SCAN_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301513INCS += $(UMAC_COMMON_INC)
Frank Liu65b17d92016-11-23 15:58:44 +08001514
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001515OBJS := $(HDD_OBJS) \
1516 $(EPPING_OBJS) \
1517 $(MAC_OBJS) \
1518 $(SAP_OBJS) \
1519 $(SME_OBJS) \
1520 $(SYS_OBJS) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001521 $(QDF_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001522 $(CDS_OBJS) \
1523 $(DFS_OBJS)
1524
1525OBJS += $(WMA_OBJS) \
1526 $(TXRX_OBJS) \
1527 $(WMI_OBJS) \
1528 $(FWLOG_OBJS) \
1529 $(HTC_OBJS) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001530 $(INIT_DEINIT_OBJS) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001531 $(SCHEDULER_OBJS) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001532 $(REGULATORY_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001533 $(DFS_OBJS)
1534
1535OBJS += $(HIF_OBJS) \
1536 $(BMI_OBJS) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301537 $(HTT_OBJS) \
Wu Gao64b31482017-03-10 15:16:10 +08001538 $(OS_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301539 $(TARGET_IF_OBJ) \
Mukul Sharmad75a6672017-06-22 15:40:53 +05301540 $(CLD_TARGET_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301541 $(GLOBAL_LMAC_IF_OBJ)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001542
1543ifeq ($(CONFIG_LITHIUM), y)
1544OBJS += $(HAL_OBJS)
1545endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001546
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301547OBJS += $(UMAC_OBJMGR_OBJS)
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001548OBJS += $(WIFI_POS_OBJS)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001549OBJS += $(WLAN_NAN_OBJS)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301550OBJS += $(UMAC_MGMT_TXRX_OBJS)
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001551OBJS += $(UMAC_TDLS_OBJS)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301552OBJS += $(PMO_OBJS)
Wu Gao64b31482017-03-10 15:16:10 +08001553OBJS += $(UMAC_P2P_OBJS)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001554OBJS += $(UMAC_POLICY_MGR_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001555OBJS += $(WLAN_LOGGING_OBJS)
1556OBJS += $(NLINK_OBJS)
1557OBJS += $(PTT_OBJS)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001558OBJS += $(UMAC_SER_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001559OBJS += $(PLD_OBJS)
1560
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001561ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
1562OBJS += $(PKTLOG_OBJS)
1563endif
1564
1565ifeq ($(BUILD_DIAG_VERSION), 1)
1566OBJS += $(HOST_DIAG_LOG_OBJS)
1567endif
1568
Frank Liu65b17d92016-11-23 15:58:44 +08001569OBJS += $(UMAC_DISP_OBJS)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301570OBJS += $(UMAC_SCAN_OBJS)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301571OBJS += $(UMAC_COMMON_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001572OBJS += $(WCFG_OBJS)
1573
1574ifeq ($(CONFIG_LITHIUM), y)
1575OBJS += $(DP_OBJS)
1576endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001577
1578EXTRA_CFLAGS += $(INCS)
1579
1580CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \
1581 -DANI_LITTLE_BIT_ENDIAN \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001582 -DDOT11F_LITTLE_ENDIAN_HOST \
1583 -DANI_COMPILER_TYPE_GCC \
1584 -DANI_OS_TYPE_ANDROID=6 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001585 -DPTT_SOCK_SVC_ENABLE \
1586 -Wall\
1587 -Werror\
1588 -D__linux__ \
1589 -DHAL_SELF_STA_PER_BSS=1 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001590 -DFEATURE_WLAN_WAPI \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001591 -DSOFTAP_CHANNEL_RANGE \
1592 -DWLAN_AP_STA_CONCURRENCY \
1593 -DFEATURE_WLAN_SCAN_PNO \
1594 -DWLAN_FEATURE_PACKET_FILTERING \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001595 -DWLAN_FEATURE_P2P_DEBUG \
1596 -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
1597 -DWLANTL_DEBUG\
1598 -DWLAN_NS_OFFLOAD \
1599 -DWLAN_SOFTAP_VSTA_FEATURE \
1600 -DWLAN_FEATURE_GTK_OFFLOAD \
1601 -DWLAN_WAKEUP_EVENTS \
1602 -DFEATURE_WLAN_RA_FILTERING\
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001603 -DWLAN_NL80211_TESTMODE \
1604 -DFEATURE_WLAN_LPHB \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001605 -DQCA_SUPPORT_TX_THROTTLE \
1606 -DWMI_INTERFACE_EVENT_LOGGING \
1607 -DATH_SUPPORT_WAPI \
1608 -DWLAN_FEATURE_LINK_LAYER_STATS \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001609 -DFEATURE_WLAN_EXTSCAN \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001610 -DWLAN_FEATURE_MBSSID \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001611 -DCONFIG_160MHZ_SUPPORT \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +05301612 -DCONFIG_MCL \
Amar Singhal9583b112017-06-21 14:15:44 -07001613 -DCONFIG_LEGACY_CHAN_ENUM \
Sandeep Puligilla1fcdb772017-02-22 21:14:59 -08001614 -DNAPIER_SCAN \
Wu Gao64b31482017-03-10 15:16:10 +08001615 -DWLAN_PMO_ENABLE \
Wu Gao5491e522017-03-20 20:32:32 +08001616 -DCONVERGED_P2P_ENABLE \
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08001617 -DWLAN_POLICY_MGR_ENABLE \
Kabilan Kannan6d7a4112017-04-20 14:37:09 -07001618 -DSUPPORT_11AX \
1619 -DCONVERGED_TDLS_ENABLE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001620
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001621
1622############ WIFI POS ##############
1623ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1624CDEFINES += -DWIFI_POS_CONVERGED
1625else
1626CDEFINES += -DFEATURE_OEM_DATA_SUPPORT
1627endif
1628####################################
1629
Mohit Khannada4f4432016-05-17 15:02:09 -07001630ifneq ($(CONFIG_HIF_USB), 1)
1631CDEFINES += -DWLAN_LOGGING_SOCK_SVC_ENABLE
1632endif
1633
Sridhar Selvaraj8c6f5e82017-08-21 14:53:46 +05301634ifeq ($(CONFIG_WLAN_FEATURE_FILS),y)
1635CDEFINES += -DWLAN_FEATURE_FILS_SK
1636endif
1637
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001638ifeq ($(CONFIG_CNSS), y)
1639ifeq ($(CONFIG_CNSS_SDIO), y)
1640CDEFINES += -DCONFIG_PLD_SDIO_CNSS
1641else
1642CDEFINES += -DCONFIG_PLD_PCIE_CNSS
1643endif
1644endif
1645
Yue Mae6a7a322016-08-31 11:09:23 -07001646ifeq ($(CONFIG_CNSS2), y)
1647CDEFINES += -DCONFIG_PLD_PCIE_CNSS
Houston Hoffman435cd442016-11-23 14:20:42 -08001648CDEFINES += -DCONFIG_PLD_PCIE_INIT
Yue Mae6a7a322016-08-31 11:09:23 -07001649endif
1650
Yue Ma2b091312017-02-15 15:56:47 -08001651# Flag to enable bus auto suspend
1652ifeq ($(CONFIG_ROME_IF),pci)
1653ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
1654CDEFINES += -DFEATURE_RUNTIME_PM
1655endif
1656endif
1657
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001658ifeq ($(CONFIG_ICNSS), y)
1659CDEFINES += -DCONFIG_PLD_SNOC_ICNSS
1660endif
1661
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001662ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
1663CDEFINES += -DQCA_WIFI_3_0
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001664endif
1665
1666ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1667CDEFINES += -DQCA_WIFI_3_0_ADRASTEA
1668CDEFINES += -DADRASTEA_SHADOW_REGISTERS
Sanjay Devnanicdab59e2015-11-12 14:43:58 -08001669CDEFINES += -DADRASTEA_RRI_ON_DDR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001670endif
1671
1672ifeq ($(CONFIG_WLAN_FASTPATH), y)
1673CDEFINES += -DWLAN_FEATURE_FASTPATH
1674endif
1675
Poddar, Siddartheefe3482016-09-21 18:12:59 +05301676ifeq ($(CONFIG_FEATURE_PKTLOG), y)
1677CDEFINES += -DFEATURE_PKTLOG
1678endif
1679
Venkata Sharath Chandra Manchala0b9fc632017-05-15 14:35:15 -07001680CDEFINES += -DCONFIG_DP_TRACE
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05301681
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001682ifeq ($(CONFIG_WLAN_NAPI), y)
1683CDEFINES += -DFEATURE_NAPI
Houston Hoffmanb4d45672017-04-24 11:56:50 -07001684CDEFINES += -DHIF_IRQ_AFFINITY
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001685ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
1686CDEFINES += -DFEATURE_NAPI_DEBUG
1687endif
1688endif
1689
Yue Madf224b82016-04-21 12:46:04 -07001690ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
Yuanyuan Liu5af44362016-04-01 21:57:06 -07001691CDEFINES += -DMSM_PLATFORM
1692endif
1693
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001694CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
1695
1696ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1697CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2
1698CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
1699else
1700ifeq ($(CONFIG_ROME_IF),pci)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001701ifneq ($(CONFIG_LITHIUM),y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001702CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
1703endif
1704endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001705endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001706
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001707ifneq ($(CONFIG_QCA_CLD_WLAN),)
1708CDEFINES += -DWCN_PRONTO
1709CDEFINES += -DWCN_PRONTO_V1
1710endif
1711
1712ifeq ($(BUILD_DEBUG_VERSION),1)
1713CDEFINES += -DWLAN_DEBUG \
1714 -DTRACE_RECORD \
1715 -DLIM_TRACE_RECORD \
1716 -DSME_TRACE_RECORD \
1717 -DHDD_TRACE_RECORD \
1718 -DPE_DEBUG_LOGW \
Srinivas Girigowda6147c582016-10-18 12:26:15 -07001719 -DPE_DEBUG_LOGE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001720endif
1721
Dustin Brown0f8dc3d2017-06-01 14:37:26 -07001722ifeq ($(CONFIG_FEATURE_UNIT_TEST_SUSPEND), 1)
1723 CDEFINES += -DWLAN_SUSPEND_RESUME_TEST
1724endif
1725
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001726ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
1727CDEFINES += -DTIMER_MANAGER
1728CDEFINES += -DMEMORY_DEBUG
Rajeev Kumar04223052017-04-07 20:44:15 -07001729CDEFINES += -DCONFIG_HALT_KMEMLEAK
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001730endif
1731
1732ifeq ($(HAVE_CFG80211),1)
1733CDEFINES += -DWLAN_FEATURE_P2P
1734CDEFINES += -DWLAN_FEATURE_WFD
1735ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
1736CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
1737CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
1738endif
1739endif
1740
1741ifeq ($(CONFIG_QCOM_ESE),y)
1742CDEFINES += -DFEATURE_WLAN_ESE
1743CDEFINES += -DQCA_COMPUTE_TX_DELAY
1744CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001745endif
1746
1747#normally, TDLS negative behavior is not needed
1748ifeq ($(CONFIG_QCOM_TDLS),y)
1749CDEFINES += -DFEATURE_WLAN_TDLS
1750endif
1751
1752ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y)
1753CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD
1754endif
1755
Selvaraj, Sridhar046d77d2017-03-07 14:53:13 +05301756ifeq ($(CONFIG_CNSS_GENL), y)
1757CDEFINES += -DCNSS_GENL
1758endif
1759
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -08001760ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
1761CDEFINES += -DWLAN_FEATURE_HOST_ROAM
1762endif
1763
Sridhar Selvarajdc400d22016-10-18 17:18:03 +05301764ifeq ($(CONFIG_WLAN_POWER_DEBUGFS), y)
1765CDEFINES += -DWLAN_POWER_DEBUGFS
1766endif
1767
Rajeev Kumar69d7d492017-02-13 21:48:16 -08001768# Enable object manager reference count debug infrastructure
1769CDEFINES += -DWLAN_OBJMGR_DEBUG
1770
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001771ifeq ($(BUILD_DIAG_VERSION),1)
1772CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
1773CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
1774CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
1775ifeq ($(CONFIG_HIF_PCI), 1)
1776CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1777endif
1778endif
1779
1780ifeq ($(CONFIG_HIF_USB), 1)
1781CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1782CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
1783CDEFINES += -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 -08001784endif
1785
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001786ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
1787CDEFINES += -DWLAN_FEATURE_11W
1788endif
1789
gbiane55c9562016-11-01 14:47:47 +08001790ifeq ($(CONFIG_QCA_TXDESC_SANITY_CHECKS), 1)
1791CDEFINES += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
1792endif
1793
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001794ifeq ($(CONFIG_QCOM_LTE_COEX),y)
1795CDEFINES += -DFEATURE_WLAN_CH_AVOID
1796endif
1797
1798ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
1799CDEFINES += -DWLAN_FEATURE_LPSS
1800endif
1801
Nirav Shah76291962016-04-25 10:50:37 +05301802ifneq ($(TARGET_BUILD_VARIANT),user)
1803CDEFINES += -DDESC_DUP_DETECT_DEBUG
Manjunathappa Prakashc8e75642016-06-03 19:32:27 -07001804CDEFINES += -DDEBUG_RX_RING_BUFFER
Nirav Shah76291962016-04-25 10:50:37 +05301805endif
1806
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001807ifeq ($(PANIC_ON_BUG),1)
1808CDEFINES += -DPANIC_ON_BUG
1809endif
1810
1811ifeq ($(WLAN_OPEN_SOURCE), 1)
1812CDEFINES += -DWLAN_OPEN_SOURCE
1813endif
1814
1815ifeq ($(CONFIG_FEATURE_STATS_EXT), 1)
1816CDEFINES += -DWLAN_FEATURE_STATS_EXT
1817endif
1818
1819ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
1820CDEFINES += -DWLAN_FEATURE_NAN
1821endif
1822
1823ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1)
1824CDEFINES += -DQCA_IBSS_SUPPORT
1825endif
1826
1827#Enable OL debug and wmi unified functions
1828ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1)
1829CDEFINES += -DATH_PERF_PWR_OFFLOAD
1830endif
1831
1832#Disable packet log
1833ifeq ($(CONFIG_REMOVE_PKT_LOG), 1)
1834CDEFINES += -DREMOVE_PKT_LOG
1835endif
1836
1837#Enable 11AC TX
1838ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1)
1839CDEFINES += -DATH_11AC_TXCOMPACT
1840endif
1841
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001842#Enable OS specific IRQ abstraction
1843ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1)
1844CDEFINES += -DATH_SUPPORT_SHARED_IRQ
1845endif
1846
1847#Enable message based HIF instead of RAW access in BMI
1848ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1)
1849CDEFINES += -DHIF_MESSAGE_BASED
1850endif
1851
1852#Enable PCI specific APIS (dma, etc)
1853ifeq ($(CONFIG_HIF_PCI), 1)
1854CDEFINES += -DHIF_PCI
1855endif
1856
Houston Hoffman1edffd32016-01-27 16:30:34 -08001857ifeq ($(CONFIG_HIF_SNOC), 1)
1858CDEFINES += -DHIF_SNOC
1859endif
1860
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301861#Enable High Latency related Flags
1862ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
1863CDEFINES += -DCONFIG_HL_SUPPORT \
1864 -DCONFIG_AR6320_SUPPORT \
1865 -DSDIO_3_0 \
1866 -DHIF_SDIO \
1867 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
1868 -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
1869 -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \
1870 -DHIF_MBOX_SLEEP_WAR \
1871 -DDEBUG_HL_LOGGING \
1872 -DQCA_BAD_PEER_TX_FLOW_CL \
1873 -DCONFIG_TX_DESC_HI_PRIO_RESERVE \
1874 -DCONFIG_PER_VDEV_TX_DESC_POOL \
1875 -DCONFIG_SDIO \
1876 -DFEATURE_WLAN_FORCE_SAP_SCC
1877endif
1878
Agrawal Ashishb141b092016-09-02 19:59:26 +05301879ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1880CDEFINES += -DWLAN_FEATURE_DSRC
1881endif
1882
bings7762da12017-03-06 07:21:04 +08001883ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
1884ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
1885ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y)
1886CDEFINES += -DFEATURE_SKB_PRE_ALLOC
1887endif
1888endif
1889endif
1890
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001891#Enable USB specific APIS
1892ifeq ($(CONFIG_HIF_USB), 1)
Mohit Khannada4f4432016-05-17 15:02:09 -07001893CDEFINES += -DHIF_USB \
Mohit Khannae7a43572016-10-10 17:34:21 -07001894 -DCONFIG_PLD_USB_CNSS \
1895 -DCONFIG_HL_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001896endif
1897
1898#Enable FW logs through ini
1899CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI
1900
1901#Enable pci read/write config functions
1902ifeq ($(CONFIG_ATH_PCI), 1)
1903CDEFINES += -DATH_PCI
1904endif
1905
1906#Enable power management suspend/resume functionality
1907ifeq ($(CONFIG_ATH_BUS_PM), 1)
1908CDEFINES += -DATH_BUS_PM
1909endif
1910
1911#Enable FLOWMAC module support
1912ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1)
1913CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE
1914endif
1915
1916#Enable spectral support
1917ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1)
1918CDEFINES += -DATH_SUPPORT_SPECTRAL
1919endif
1920
1921#Enable WDI Event support
1922ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
1923CDEFINES += -DWDI_EVENT_ENABLE
1924endif
1925
1926#Endianess selection
1927ifeq ($(CONFIG_LITTLE_ENDIAN), 1)
1928AH_LITTLE_ENDIAN=1234
1929CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN)
1930else
1931AH_BIG_ENDIAN=4321
1932CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN)
1933CDEFINES += -DBIG_ENDIAN_HOST
1934endif
1935
1936#Enable TX reclaim support
1937ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1)
1938CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT
1939endif
1940
1941#Enable FTM support
1942ifeq ($(CONFIG_QCA_WIFI_FTM), 1)
1943CDEFINES += -DQCA_WIFI_FTM
1944endif
1945
1946#Enable Checksum Offload support
1947ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1)
1948CDEFINES += -DCHECKSUM_OFFLOAD
1949endif
1950
1951#Enable Checksum Offload support
1952ifeq ($(CONFIG_IPA_OFFLOAD), 1)
1953CDEFINES += -DIPA_OFFLOAD
1954endif
1955
bings7762da12017-03-06 07:21:04 +08001956ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
1957CDEFINES += -DSYNC_IPA_READY
1958endif
1959
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001960#Enable GTK Offload
1961ifeq ($(CONFIG_GTK_OFFLOAD), 1)
1962CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD
1963CDEFINES += -DIGTK_OFFLOAD
1964endif
1965
1966#Enable GTK Offload
1967ifeq ($(CONFIG_EXT_WOW), 1)
1968CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT
1969endif
1970
1971#Mark it as SMP Kernel
1972ifeq ($(CONFIG_SMP),y)
1973CDEFINES += -DQCA_CONFIG_SMP
1974endif
1975
Sandeep Puligilla2111d3c2016-02-03 01:46:15 -08001976#Enable Channel Matrix restriction for all Rome only targets
1977ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001978CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
Sandeep Puligilla2111d3c2016-02-03 01:46:15 -08001979endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001980
Zhu Jianmin04392c42017-05-12 16:34:53 +08001981#Enable ICMP packet disable powersave feature
1982ifeq ($(CONFIG_ICMP_DISABLE_PS),y)
1983CDEFINES += -DWLAN_ICMP_DISABLE_PS
1984endif
1985
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07001986#Enable OBSS feature
1987CDEFINES += -DQCA_HT_2040_COEX
1988
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001989#features specific to mobile router use case
1990ifeq ($(CONFIG_MOBILE_ROUTER), y)
1991
1992#enable MCC TO SCC switch
1993CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
1994
1995#enable wlan auto shutdown feature
1996CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN
1997
1998#enable for MBSSID
1999CDEFINES += -DWLAN_FEATURE_MBSSID
2000
2001#enable AP-AP ACS Optimization
2002CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
2003
2004#Enable 4address scheme
2005CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME
2006
2007#Disable STA-AP Mode DFS support
2008CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
2009
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002010else #CONFIG_MOBILE_ROUTER
2011
2012#Open P2P device interface only for non-Mobile router use cases
2013CDEFINES += -DWLAN_OPEN_P2P_INTERFACE
2014
2015#Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
2016CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
2017
2018endif #CONFIG_MOBILE_ROUTER
2019
2020#Green AP feature
2021ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
2022CDEFINES += -DFEATURE_GREEN_AP
2023endif
2024
Yun Park637d6482016-10-05 10:51:33 -07002025#Stats & Quota Metering feature
Yun Parkb4f591d2017-03-29 15:51:01 -07002026ifeq ($(CONFIG_IPA),y)
Yun Park637d6482016-10-05 10:51:33 -07002027ifeq ($(CONFIG_QCACLD_FEATURE_METERING),y)
2028CDEFINES += -DFEATURE_METERING
2029endif
Yun Parkb4f591d2017-03-29 15:51:01 -07002030endif
Yun Park637d6482016-10-05 10:51:33 -07002031
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002032#Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform"
2033ifneq ($(CONFIG_ARCH_MDM9630), y)
2034ifeq ($(CONFIG_HIF_PCI), 1)
2035CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
2036endif
2037endif
2038
Yu Wang66e4ff22017-02-15 19:09:24 +08002039ifeq ($(CONFIG_ARCH_MDM9607), y)
2040CDEFINES += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
2041endif
2042
gaolez76d2a162017-03-21 19:23:58 +08002043ifeq ($(CONFIG_ARCH_MSM8996), y)
2044CDEFINES += -DCHANNEL_HOPPING_ALL_BANDS
2045endif
2046
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002047#Enable Signed firmware support for split binary format
2048ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1)
2049CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
2050endif
2051
2052#Enable single firmware binary format
2053ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1)
2054CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT
2055endif
2056
2057#Enable collecting target RAM dump after kernel panic
2058ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1)
2059CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
2060endif
2061
2062#Enable/disable secure firmware feature
2063ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1)
2064CDEFINES += -DFEATURE_SECURE_FIRMWARE
2065endif
2066
2067ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1)
2068CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
2069endif
2070
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002071# Enable feature support fo Linux version QCMBR
2072ifeq ($(CONFIG_LINUX_QCMBR),y)
2073CDEFINES += -DLINUX_QCMBR
2074endif
2075
Manikandan Mohandcc21ba2016-03-15 14:31:56 -07002076# Enable featue sync tsf between multi devices
2077ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
2078CDEFINES += -DWLAN_FEATURE_TSF
2079endif
Rajeev Kumare0fd9dd2015-11-16 13:33:07 -08002080
Yu Wang000dc2f2017-05-26 17:38:48 +08002081ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
2082CDEFINES += -DWLAN_FEATURE_TSF_PLUS
2083endif
2084
Rajeev Kumare0fd9dd2015-11-16 13:33:07 -08002085# Enable full rx re-order offload for adrastea
2086ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
2087CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
2088endif
2089
Rajeev Kumar321a19a2015-12-08 12:54:46 -08002090# Enable athdiag procfs debug support for adrastea
2091ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
2092CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
2093endif
2094
Rajeev Kumar9c4809e2016-01-13 18:32:40 -08002095# Enable 11AC TX compact feature for adrastea
2096ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
2097CDEFINES += -DATH_11AC_TXCOMPACT
2098endif
2099
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002100# NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS
2101ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
2102CONFIG_HELIUMPLUS := y
2103CONFIG_64BIT_PADDR := y
2104CONFIG_FEATURE_TSO := y
2105CONFIG_FEATURE_TSO_DEBUG := y
Mohit Khanna3c4262d2017-05-24 17:32:22 -07002106ifneq ($(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE), y)
Poddar, Siddarthd63954e2017-02-24 15:37:49 +05302107CONFIG_ENABLE_DEBUG_ADDRESS_MARKING := y
2108endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002109ifeq ($(CONFIG_HELIUMPLUS),y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002110CDEFINES += -DHELIUMPLUS
Dhanashri Atre48c2ae62015-12-15 18:07:10 -08002111CDEFINES += -DAR900B
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002112ifeq ($(CONFIG_64BIT_PADDR),y)
2113CDEFINES += -DHTT_PADDR64
2114endif
Himanshu Agarwal8e89ce72017-03-06 17:09:25 +05302115
2116ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
2117CDEFINES += -DOL_RX_INDICATION_RECORD
2118endif
2119
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002120endif
2121endif
2122
Poddar, Siddarthd63954e2017-02-24 15:37:49 +05302123ifeq ($(CONFIG_ENABLE_DEBUG_ADDRESS_MARKING),y)
2124CDEFINES += -DENABLE_DEBUG_ADDRESS_MARKING
2125endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002126ifeq ($(CONFIG_FEATURE_TSO),y)
2127CDEFINES += -DFEATURE_TSO
2128endif
2129ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y)
2130CDEFINES += -DFEATURE_TSO_DEBUG
2131endif
2132
2133ifeq ($(CONFIG_WLAN_LRO), y)
2134CDEFINES += -DFEATURE_LRO
2135endif
2136
2137ifeq ($(CONFIG_MOBILE_ROUTER), y)
2138CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
2139endif
2140
2141ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
2142CDEFINES += -DMPC_UT_FRAMEWORK
2143endif
2144
2145ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y)
2146CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS
2147endif
2148
2149ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
2150CDEFINES += -DWLAN_FEATURE_MEMDUMP
2151endif
2152
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +05302153ifeq ($(CONFIG_WLAN_FEATURE_DISA),y)
2154CDEFINES += -DWLAN_FEATURE_DISA
2155endif
2156
Jeff Johnson7869aad2017-05-15 15:46:36 -07002157ifeq ($(CONFIG_WLAN_FEATURE_FIPS),y)
2158CDEFINES += -DWLAN_FEATURE_FIPS
2159endif
2160
Ravi Joshi61c3c7a2015-11-09 18:41:20 -08002161ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
2162CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION
2163endif
2164
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +05302165ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y)
2166CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
2167endif
2168
Ravi Joshia063dd92016-05-25 16:43:13 -07002169ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
2170CDEFINES += -DWLAN_FEATURE_NAN_DATAPATH
2171endif
2172
Naveen Rawat6d2bf182017-03-22 10:18:00 -07002173ifeq ($(CONFIG_NAN_CONVERGENCE), y)
2174CDEFINES += -DWLAN_FEATURE_NAN_CONVERGENCE
2175endif
2176
Leo Chang5f7a1e02016-11-04 14:04:26 -07002177ifeq ($(CONFIG_LITHIUM),y)
Houston Hoffman06fd5662017-02-08 21:41:20 -08002178CDEFINES += -DCONFIG_SHADOW_V2
Aravind Narasimhan4ed314d2016-11-14 16:56:42 -08002179CDEFINES += -DQCA6290_HEADERS_DEF
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002180CDEFINES += -DQCA_WIFI_QCA6290
Leo Chang5f7a1e02016-11-04 14:04:26 -07002181CDEFINES += -DQCA_WIFI_QCA8074
2182CDEFINES += -DQCA_WIFI_QCA8074_VP
Ravi Joshifc2ed782016-11-22 17:36:50 -08002183CDEFINES += -DDP_INTR_POLL_BASED
Ravi Joshifa5536f2017-02-14 12:25:09 -08002184CDEFINES += -DTX_PER_PDEV_DESC_POOL
Dhanashri Atre2f507a72017-03-28 13:52:29 -07002185CDEFINES += -DWLAN_RX_HASH
Venkata Sharath Chandra Manchala0b9fc632017-05-15 14:35:15 -07002186CDEFINES += -DCONFIG_DP_TRACE
Venkata Sharath Chandra Manchala1676def2017-05-04 14:18:09 -07002187CDEFINES += -DFEATURE_TSO
2188CDEFINES += -DTSO_DEBUG_LOG_ENABLE
Pramod Simha707a3562017-03-22 13:15:37 -07002189CDEFINES += -DDP_LFR
Leo Chang5f7a1e02016-11-04 14:04:26 -07002190endif
2191
Krishna Kumaar Natarajan639c6ff2017-02-13 14:01:04 -08002192ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
2193CDEFINES += -DWLAN_FEATURE_11AX
2194endif
2195
Leo Chang5f7a1e02016-11-04 14:04:26 -07002196# Dummy flag for WIN/MCL converged data path compilation
2197CDEFINES += -DDP_PRINT_ENABLE=0
2198CDEFINES += -DATH_SUPPORT_WRAP=0
Dhanashri Atre33e147e2017-01-20 14:52:18 -08002199CDEFINES += -DQCA_HOST2FW_RXBUF_RING
Leo Chang5f7a1e02016-11-04 14:04:26 -07002200#endof dummy flags
2201
Arif Hussain757b45f2017-02-11 16:47:06 -08002202# DFS component
2203CDEFINES += -DQCA_MCL_DFS_SUPPORT
2204CDEFINES += -DDFS_COMPONENT_ENABLE
2205CDEFINES += -DQCA_DFS_USE_POLICY_MANAGER
2206CDEFINES += -DQCA_DFS_NOL_PLATFORM_DRV_SUPPORT
2207
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -07002208ifeq ($(CONFIG_WLAN_DEBUGFS), y)
2209CDEFINES += -DWLAN_DEBUGFS
2210endif
2211
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002212KBUILD_CPPFLAGS += $(CDEFINES)
2213
2214# Currently, for versions of gcc which support it, the kernel Makefile
2215# is disabling the maybe-uninitialized warning. Re-enable it for the
2216# WLAN driver. Note that we must use EXTRA_CFLAGS here so that it
2217# will override the kernel settings.
2218ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
2219EXTRA_CFLAGS += -Wmaybe-uninitialized
Leo Chang5f7a1e02016-11-04 14:04:26 -07002220ifneq (y,$(CONFIG_ARCH_MSM))
2221EXTRA_CFLAGS += -Wframe-larger-than=4096
2222endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002223endif
Jeff Johnson522db002016-10-05 16:30:41 -07002224EXTRA_CFLAGS += -Wmissing-prototypes
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002225
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002226ifeq ($(call cc-option-yn, -Wheader-guard),y)
2227EXTRA_CFLAGS += -Wheader-guard
2228endif
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302229# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
Yu Wang66e4ff22017-02-15 19:09:24 +08002230# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302231# any string that must be unique for all instances of the driver on the system.
2232# This allows multiple instances of the driver with different module names.
2233# If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
2234# treat the driver as the primary driver.
2235ifneq ($(MODNAME), wlan)
Yu Wang66e4ff22017-02-15 19:09:24 +08002236CHIP_NAME ?= $(MODNAME)
2237CDEFINES += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302238endif
2239
2240# WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
2241# system. If it is not defined, then the host driver will use the first 4
2242# characters (including NULL) of MULTI_IF_NAME to construct
2243# WLAN_HDD_ADAPTER_MAGIC.
2244ifdef WLAN_HDD_ADAPTER_MAGIC
2245CDEFINES += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
2246endif
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002247
Naveen Rawat93836252017-06-20 16:30:59 -07002248# inject some build related information
2249ifeq ($(CONFIG_BUILD_TIMESTAMP), y)
2250CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"
2251endif
2252
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002253# Module information used by KBuild framework
2254obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
2255$(MODNAME)-y := $(OBJS)