blob: 23951dd5edd166be2d3a244a40a86768a54bb350 [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
Leo Chang395cbb52016-11-11 14:35:03 -080012endif
Leo Chang5f7a1e02016-11-04 14:04:26 -070013
Poddar, Siddarth29296fb2016-05-16 18:06:30 +053014ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y)
15 CONFIG_QCA_WIFI_SDIO := 1
16endif
17
18ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
19 CONFIG_ROME_IF = sdio
20endif
21
Houston Hoffman57d10c22016-03-08 13:04:20 -080022ifdef CONFIG_ICNSS
23 CONFIG_ROME_IF = snoc
24endif
25
Yue Mae6a7a322016-08-31 11:09:23 -070026ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080027ifndef CONFIG_ROME_IF
28 #use pci as default interface
29 CONFIG_ROME_IF = pci
30endif
31endif
32
33ifeq ($(KERNEL_BUILD),1)
34 # These are provided in external module based builds
35 # Need to explicitly define for Kernel-based builds
36 MODNAME := wlan
37 WLAN_ROOT := drivers/staging/qcacld-3.0
Houston Hoffman52ec6692016-04-21 16:36:45 -070038 WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
39 WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080040endif
41
42# Make WLAN as open-source driver by default
43WLAN_OPEN_SOURCE := 1
44
45ifeq ($(KERNEL_BUILD), 0)
46 # These are configurable via Kconfig for kernel-based builds
47 # Need to explicitly configure for Android-based builds
48
49 ifeq ($(CONFIG_ARCH_MDM9630), y)
50 CONFIG_MOBILE_ROUTER := y
51 endif
52
53 ifeq ($(CONFIG_ARCH_MDM9640), y)
54 CONFIG_MOBILE_ROUTER := y
55 endif
56
bings7762da12017-03-06 07:21:04 +080057 ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
58 CONFIG_MOBILE_ROUTER := y
59 endif
60
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +053061 # As per target team, build is done as follows:
62 # Defconfig : build with default flags
63 # Slub : defconfig + CONFIG_SLUB_DEBUG=y +
64 # CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y
65 # Perf : Using appropriate msmXXXX-perf_defconfig
66 #
67 # Shipment builds (user variants) should not have any debug feature
68 # enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds
69 # are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since
70 # there is no other way to identify defconfig builds, QCOMs internal
71 # representation of perf builds (identified using the string 'perf'),
72 # is used to identify if the build is a slub or defconfig one. This
73 # way no critical debug feature will be enabled for perf and shipment
74 # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT
75 # config.
76 ifneq ($(TARGET_BUILD_VARIANT),user)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -080077 ifeq ($(CONFIG_LITHIUM), y)
Ravi Joshifc2ed782016-11-22 17:36:50 -080078 CONFIG_FEATURE_PKTLOG := n
79 else
80 CONFIG_FEATURE_PKTLOG := y
81 endif
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +053082 ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
Nirav Shahcc1f1ae2016-04-26 11:41:29 +053083 CONFIG_FEATURE_DP_TRACE := y
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +053084 else
85 ifeq ($(findstring perf,$(KERNEL_DEFCONFIG)),)
Nirav Shahcc1f1ae2016-04-26 11:41:29 +053086 CONFIG_FEATURE_DP_TRACE := y
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +053087 endif
88 endif
89 endif
90
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -080091 #Flag to enable Legacy Fast Roaming2(LFR2)
92 CONFIG_QCACLD_WLAN_LFR2 := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080093 #Flag to enable Legacy Fast Roaming3(LFR3)
94 CONFIG_QCACLD_WLAN_LFR3 := y
95
Sridhar Selvarajdc400d22016-10-18 17:18:03 +053096 #Enable Power debugfs feature only if debug_fs is enabled
97 ifeq ($(CONFIG_DEBUG_FS), y)
98 CONFIG_WLAN_POWER_DEBUGFS := y
99 endif
100
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800101 # JB kernel has CPU enablement patches, so enable
102 ifeq ($(CONFIG_ROME_IF),pci)
103 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y
104 endif
105 ifeq ($(CONFIG_ROME_IF),usb)
106 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
107 endif
108 ifeq ($(CONFIG_ROME_IF),sdio)
109 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
110 endif
111
112 ifneq ($(CONFIG_MOBILE_ROUTER), y)
113 #Flag to enable TDLS feature
114 CONFIG_QCOM_TDLS := y
115 endif
116
117 ifeq ($(CONFIG_MOBILE_ROUTER), y)
118 CONFIG_QCACLD_FEATURE_GREEN_AP := y
119 endif
Ashwini Muduganti79649822016-11-16 11:29:50 -0800120 ifeq ($(CONFIG_ARCH_MSM8998), y)
Jeff Johnsona6300252016-09-28 15:58:55 -0700121 CONFIG_QCACLD_FEATURE_GREEN_AP := y
Yun Park637d6482016-10-05 10:51:33 -0700122 CONFIG_QCACLD_FEATURE_METERING := y
Jeff Johnsona6300252016-09-28 15:58:55 -0700123 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800124
Poddar, Siddarth1bec7ae2017-01-24 18:02:31 +0530125 ifeq ($(CONFIG_ARCH_SDM660), y)
Ashish Kumar Dhanotiya5e6cfc02017-03-16 16:51:01 +0530126 CONFIG_QCACLD_FEATURE_GREEN_AP := y
Poddar, Siddarth1bec7ae2017-01-24 18:02:31 +0530127 CONFIG_QCACLD_FEATURE_METERING := y
128 endif
129
130 ifeq ($(CONFIG_ARCH_SDM630), y)
131 CONFIG_QCACLD_FEATURE_METERING := y
132 endif
133
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800134 #Flag to enable Fast Transition (11r) feature
135 CONFIG_QCOM_VOWIFI_11R := y
136
137 ifneq ($(CONFIG_QCA_CLD_WLAN),)
Yue Mae6a7a322016-08-31 11:09:23 -0700138 ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2) $(CONFIG_ICNSS)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800139 #Flag to enable Protected Managment Frames (11w) feature
140 CONFIG_WLAN_FEATURE_11W := y
141 #Flag to enable LTE CoEx feature
142 CONFIG_QCOM_LTE_COEX := y
143 ifneq ($(CONFIG_MOBILE_ROUTER), y)
144 #Flag to enable LPSS feature
145 CONFIG_WLAN_FEATURE_LPSS := y
146 endif
147 endif
148 endif
149
Ravi Joshia063dd92016-05-25 16:43:13 -0700150 #Flag to enable Protected Managment Frames (11w) feature
151 ifeq ($(CONFIG_ROME_IF),usb)
152 CONFIG_WLAN_FEATURE_11W := y
153 endif
154 ifeq ($(CONFIG_ROME_IF),sdio)
155 CONFIG_WLAN_FEATURE_11W := y
156 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800157
gbiane55c9562016-11-01 14:47:47 +0800158 #Flag to enable the tx desc sanity check
159 ifeq ($(CONFIG_ROME_IF),usb)
160 CONFIG_QCA_TXDESC_SANITY_CHECKS := y
161 endif
162
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800163 ifneq ($(CONFIG_MOBILE_ROUTER), y)
164 #Flag to enable NAN
165 CONFIG_QCACLD_FEATURE_NAN := y
166 endif
167
Ravi Joshia063dd92016-05-25 16:43:13 -0700168 ifneq ($(CONFIG_MOBILE_ROUTER), y)
169 #Flag to enable NAN Data path
170 CONFIG_WLAN_FEATURE_NAN_DATAPATH := y
Naveen Rawat3cb59812017-03-28 16:59:08 -0700171 CONFIG_NAN_CONVERGENCE := y
Ravi Joshia063dd92016-05-25 16:43:13 -0700172 endif
173
174 #Flag to enable Linux QCMBR feature as default feature
175 ifeq ($(CONFIG_ROME_IF),usb)
176 CONFIG_LINUX_QCMBR :=y
177 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800178
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800179 CONFIG_MPC_UT_FRAMEWORK := y
180
181 #Flag to enable offload packets feature
182 CONFIG_WLAN_OFFLOAD_PACKETS := y
183
Manikandan Mohan5356c2b2016-04-03 15:51:35 -0700184 #enable TSF get feature
185 CONFIG_WLAN_SYNC_TSF := y
Agrawal Ashishb141b092016-09-02 19:59:26 +0530186 #Enable DSRC feature
187
188 ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
189 CONFIG_WLAN_FEATURE_DSRC := y
190 endif
Manikandan Mohan5356c2b2016-04-03 15:51:35 -0700191
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530192ifneq ($(CONFIG_ROME_IF),sdio)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800193 #Flag to enable memdump feature
Krishna Kumaar Natarajane42bb172016-06-09 18:24:04 -0700194 CONFIG_WLAN_FEATURE_MEMDUMP := n
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800195
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530196 #Flag to enable DISA
197 CONFIG_WLAN_FEATURE_DISA := y
198
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800199 #Flag to enable Fast Path feature
200 CONFIG_WLAN_FASTPATH := y
201
202 # Flag to enable NAPI
Leo Chang395cbb52016-11-11 14:35:03 -0800203ifeq (y,$(CONFIG_LITHIUM))
Leo Chang5f7a1e02016-11-04 14:04:26 -0700204 CONFIG_WLAN_NAPI := n
205 CONFIG_WLAN_NAPI_DEBUG := n
206else
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800207 CONFIG_WLAN_NAPI := y
208 CONFIG_WLAN_NAPI_DEBUG := n
Leo Chang5f7a1e02016-11-04 14:04:26 -0700209endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800210 # Flag to enable FW based TX Flow control
Nirav Shah9d7f2e82015-09-28 11:09:09 -0700211 ifeq ($(CONFIG_CNSS_EOS),y)
212 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
213 else
214 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n
215 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800216
217 # Flag to enable LRO (Large Receive Offload)
Manjunathappa Prakashbeeacb12016-06-17 18:18:32 -0700218 ifeq ($(CONFIG_INET_LRO), y)
Tang Yingying4c0e83e2017-01-19 17:10:39 +0800219 ifeq ($(VERSION), 4)
220 CONFIG_WLAN_LRO := y
221 else
222 CONFIG_WLAN_LRO := n
223 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800224 endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530225endif
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800226
Manjunathappa Prakashfa345992016-04-21 16:45:40 -0700227ifeq ($(CONFIG_ROME_IF), snoc)
228 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
229endif
230
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800231 # Flag to enable LFR Subnet Detection
232 CONFIG_LFR_SUBNET_DETECTION := y
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +0530233
234 # Flag to enable MCC to SCC switch feature
235 CONFIG_MCC_TO_SCC_SWITCH := y
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700236
237ifeq ($(CONFIG_DEBUG_FS), y)
238 # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel
239 # configuration.
240 CONFIG_WLAN_DEBUGFS := y
241endif
242
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)
358CONFIG_IPA_OFFLOAD := 1
359endif
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
386############ UAPI ############
387UAPI_DIR := uapi
388UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
389
390############ COMMON ############
391COMMON_DIR := core/common
392COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
393
394############ HDD ############
395HDD_DIR := core/hdd
396HDD_INC_DIR := $(HDD_DIR)/inc
397HDD_SRC_DIR := $(HDD_DIR)/src
398
399HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
400 -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
401
402HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
403 $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800404 $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
405 $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
406 $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
407 $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
408 $(HDD_SRC_DIR)/wlan_hdd_main.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800409 $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
410 $(HDD_SRC_DIR)/wlan_hdd_power.o \
Amar Singhale4f28ee2015-10-21 14:36:56 -0700411 $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
Jeff Johnsona2d9bb32017-01-18 13:23:24 -0800412 $(HDD_SRC_DIR)/wlan_hdd_request_manager.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800413 $(HDD_SRC_DIR)/wlan_hdd_scan.o \
414 $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
415 $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
416 $(HDD_SRC_DIR)/wlan_hdd_trace.o \
417 $(HDD_SRC_DIR)/wlan_hdd_wext.o \
418 $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
Rajeev Kumar699debf2017-01-06 14:17:00 -0800419 $(HDD_SRC_DIR)/wlan_hdd_wowl.o \
420 $(HDD_SRC_DIR)/wlan_hdd_object_manager.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800421
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700422ifeq ($(CONFIG_WLAN_DEBUGFS), y)
423HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
424endif
425
Agrawal Ashishb141b092016-09-02 19:59:26 +0530426ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
427HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o
428endif
Amar Singhale4f28ee2015-10-21 14:36:56 -0700429
Jeff Johnson2b0a7b82016-05-18 15:08:02 -0700430ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
431HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o
432endif
433
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800434ifeq ($(CONFIG_WLAN_LRO), y)
435HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
436endif
437
438ifeq ($(CONFIG_WLAN_NAPI), y)
439HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
440endif
441
442ifeq ($(CONFIG_IPA_OFFLOAD), 1)
443HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
444endif
445
446ifeq ($(HAVE_CFG80211),1)
447HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
448 $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \
449 $(HDD_SRC_DIR)/wlan_hdd_stats.o \
450 $(HDD_SRC_DIR)/wlan_hdd_p2p.o
451endif
452
453ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
454HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
455endif
456
457ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
458HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
459endif
460
461ifeq ($(CONFIG_QCOM_TDLS),y)
462HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
463endif
464
Manikandan Mohandcc21ba2016-03-15 14:31:56 -0700465ifeq ($(CONFIG_WLAN_SYNC_TSF),y)
466HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
467endif
468
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800469ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
470HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
471endif
472
473ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
474HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_memdump.o
475endif
476
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530477ifeq ($(CONFIG_WLAN_FEATURE_DISA),y)
478HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
479endif
480
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800481ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
482HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
483endif
484
Ravi Joshia063dd92016-05-25 16:43:13 -0700485ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
486HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
487endif
488
Krishna Kumaar Natarajaned1efd92016-09-24 18:05:47 -0700489ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
490HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_he.o
491endif
492
Ravi Joshi1c2cfb62017-01-18 14:40:08 -0800493ifeq ($(CONFIG_LITHIUM), y)
494HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_rx_monitor.o
495endif
496
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800497########### HOST DIAG LOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800498HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800499
500HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
501HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
502
503HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
504 -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
505
506HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
507
508############ EPPING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800509EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800510EPPING_INC_DIR := $(EPPING_DIR)/inc
511EPPING_SRC_DIR := $(EPPING_DIR)/src
512
513EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
514
515EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
516 $(EPPING_SRC_DIR)/epping_txrx.o \
517 $(EPPING_SRC_DIR)/epping_tx.o \
518 $(EPPING_SRC_DIR)/epping_rx.o \
519 $(EPPING_SRC_DIR)/epping_helper.o \
520
521
522############ MAC ############
523MAC_DIR := core/mac
524MAC_INC_DIR := $(MAC_DIR)/inc
525MAC_SRC_DIR := $(MAC_DIR)/src
526
527MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
528 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
529 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
530 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
Ravi Joshia063dd92016-05-25 16:43:13 -0700531 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
532 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800533
534MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800535 $(MAC_SRC_DIR)/cfg/cfg_param_name.o \
536 $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \
537 $(MAC_SRC_DIR)/cfg/cfg_send_msg.o
538
539MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
540
541MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
542 $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
543 $(MAC_SRC_DIR)/pe/lim/lim_api.o \
544 $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800545 $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
546 $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \
547 $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
548 $(MAC_SRC_DIR)/pe/lim/lim_p2p.o \
549 $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
550 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
551 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
552 $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
553 $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
554 $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
555 $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
556 $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
557 $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
558 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
559 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
560 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
561 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
562 $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
563 $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
564 $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
565 $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
566 $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
567 $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
568 $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
569 $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \
570 $(MAC_SRC_DIR)/pe/lim/lim_session.o \
571 $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
572 $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
573 $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \
574 $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
575 $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
576 $(MAC_SRC_DIR)/pe/lim/lim_utils.o
577
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800578ifeq ($(CONFIG_QCOM_TDLS),y)
579MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
580endif
581
Ravi Joshia063dd92016-05-25 16:43:13 -0700582ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
583MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
584endif
585
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800586ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
587 MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
588 $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
589 $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
590 $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
591 $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
592endif
593
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800594MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
595 $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
596 $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800597 $(MAC_SRC_DIR)/pe/sch/sch_message.o
598
599MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
600
601MAC_OBJS := $(MAC_CFG_OBJS) \
602 $(MAC_DPH_OBJS) \
603 $(MAC_LIM_OBJS) \
604 $(MAC_SCH_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700605 $(MAC_RRM_OBJS) \
606 $(MAC_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800607
608############ SAP ############
609SAP_DIR := core/sap
610SAP_INC_DIR := $(SAP_DIR)/inc
611SAP_SRC_DIR := $(SAP_DIR)/src
612
613SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
614 -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
615
616SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
617 $(SAP_SRC_DIR)/sap_ch_select.o \
618 $(SAP_SRC_DIR)/sap_fsm.o \
619 $(SAP_SRC_DIR)/sap_module.o
620
621############ DFS ############ 350
622DFS_DIR := $(SAP_DIR)/dfs
623DFS_INC_DIR := $(DFS_DIR)/inc
624DFS_SRC_DIR := $(DFS_DIR)/src
625
626DFS_INC := -I$(WLAN_ROOT)/$(DFS_INC_DIR) \
627 -I$(WLAN_ROOT)/$(DFS_SRC_DIR)
628
629DFS_OBJS := $(DFS_SRC_DIR)/dfs_bindetects.o \
630 $(DFS_SRC_DIR)/dfs.o \
631 $(DFS_SRC_DIR)/dfs_debug.o\
632 $(DFS_SRC_DIR)/dfs_fcc_bin5.o\
633 $(DFS_SRC_DIR)/dfs_init.o\
634 $(DFS_SRC_DIR)/dfs_misc.o\
635 $(DFS_SRC_DIR)/dfs_nol.o\
636 $(DFS_SRC_DIR)/dfs_phyerr_tlv.o\
637 $(DFS_SRC_DIR)/dfs_process_phyerr.o\
638 $(DFS_SRC_DIR)/dfs_process_radarevent.o\
639 $(DFS_SRC_DIR)/dfs_staggered.o
640
641############ SME ############
642SME_DIR := core/sme
643SME_INC_DIR := $(SME_DIR)/inc
644SME_SRC_DIR := $(SME_DIR)/src
645
646SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
647 -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
648
649SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
650 $(SME_SRC_DIR)/csr/csr_api_scan.o \
651 $(SME_SRC_DIR)/csr/csr_cmd_process.o \
652 $(SME_SRC_DIR)/csr/csr_link_list.o \
653 $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800654 $(SME_SRC_DIR)/csr/csr_util.o \
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800655
656
657ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
658SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800659 $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800660endif
661
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800662
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800663ifeq ($(CONFIG_QCOM_TDLS),y)
664SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_tdls_process.o
665endif
666
667SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
668
669SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
670 $(SME_SRC_DIR)/common/sme_ft_api.o \
671 $(SME_SRC_DIR)/common/sme_power_save.o \
672 $(SME_SRC_DIR)/common/sme_trace.o
673
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800674SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_api.o
675
676SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
677
678ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
679SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o
680endif
681
Ravi Joshia063dd92016-05-25 16:43:13 -0700682ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
683SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
684endif
685
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800686SME_OBJS := $(SME_CMN_OBJS) \
687 $(SME_CSR_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800688 $(SME_P2P_OBJS) \
689 $(SME_QOS_OBJS) \
690 $(SME_RRM_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700691 $(SME_NAN_OBJS) \
692 $(SME_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800693
694############ NLINK ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800695NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800696NLINK_INC_DIR := $(NLINK_DIR)/inc
697NLINK_SRC_DIR := $(NLINK_DIR)/src
698
699NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
700NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
701
702############ PTT ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800703PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800704PTT_INC_DIR := $(PTT_DIR)/inc
705PTT_SRC_DIR := $(PTT_DIR)/src
706
707PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
708PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
709
710############ WLAN_LOGGING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800711WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800712WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
713WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
714
715WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
716WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o
717
718############ SYS ############
719SYS_DIR := core/mac/src/sys
720
721SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
722 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
723 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
724 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
725
726SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
727SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
728SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
729 $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
730 $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
731 $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
732 $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
733 $(SYS_LEGACY_SRC_DIR)/utils/src/log_api.o \
734 $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
735 $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800736 $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
737
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800738############ Qca-wifi-host-cmn ############
739QDF_OS_DIR := qdf
740QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
741QDF_OS_SRC_DIR := $(QDF_OS_DIR)/linux/src
742QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800743
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800744QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
745 -I$(WLAN_COMMON_INC)/$(QDF_OS_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800746
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800747QDF_OBJS := $(QDF_OBJ_DIR)/qdf_defer.o \
748 $(QDF_OBJ_DIR)/qdf_event.o \
749 $(QDF_OBJ_DIR)/qdf_list.o \
750 $(QDF_OBJ_DIR)/qdf_lock.o \
751 $(QDF_OBJ_DIR)/qdf_mc_timer.o \
752 $(QDF_OBJ_DIR)/qdf_mem.o \
753 $(QDF_OBJ_DIR)/qdf_nbuf.o \
754 $(QDF_OBJ_DIR)/qdf_threads.o \
755 $(QDF_OBJ_DIR)/qdf_trace.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800756
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700757ifeq ($(CONFIG_WLAN_DEBUGFS), y)
758QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debugfs.o
759endif
760
Wu Gao64b31482017-03-10 15:16:10 +0800761
762##########OS_IF #######
763OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if
764
765OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux \
766 -I$(WLAN_COMMON_INC)/os_if/linux/scan/inc \
767 -I$(WLAN_COMMON_INC)/os_if/linux/p2p/inc
768
769OS_IF_OBJ := $(OS_IF_DIR)/linux/p2p/src/wlan_cfg80211_p2p.o
Sandeep Puligillafdd201e2017-02-02 18:43:46 -0800770
Frank Liu65b17d92016-11-23 15:58:44 +0800771############ UMAC_DISP ############
772UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
773UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
774UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
775UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
776
777UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
778
779UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
780
Abhishek Singh9be07e22017-02-21 10:59:57 +0530781############# UMAC_SCAN ############
782UMAC_SCAN_DIR := umac/scan
783UMAC_SCAN_DISP_INC_DIR := $(UMAC_SCAN_DIR)/dispatcher/inc
784UMAC_SCAN_CORE_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/core/src
785UMAC_SCAN_DISP_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SCAN_DIR)/dispatcher/src
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530786UMAC_TARGET_SCAN_INC := -I$(WLAN_COMMON_INC)/target_if/scan/inc
Abhishek Singh9be07e22017-02-21 10:59:57 +0530787
788UMAC_SCAN_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SCAN_DISP_INC_DIR)
789UMAC_SCAN_OBJS := $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db.o \
790 $(UMAC_SCAN_CORE_DIR)/wlan_scan_cache_db_ops.o \
791 $(UMAC_SCAN_CORE_DIR)/wlan_scan_main.o \
792 $(UMAC_SCAN_CORE_DIR)/wlan_scan_manager.o \
793 $(UMAC_SCAN_DISP_DIR)/wlan_scan_tgt_api.o \
794 $(UMAC_SCAN_DISP_DIR)/wlan_scan_ucfg_api.o \
Abhishek Singh310503c2017-03-07 11:19:10 +0530795 $(UMAC_SCAN_DISP_DIR)/wlan_scan_utils_api.o \
796 $(WLAN_COMMON_ROOT)/os_if/linux/scan/src/wlan_cfg80211_scan.o \
797 $(WLAN_COMMON_ROOT)/os_if/linux/wlan_cfg80211.o \
798 $(WLAN_COMMON_ROOT)/target_if/scan/src/target_if_scan.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530799
800############# UMAC_CMN_SERVICES ############
Abhishek Singh8dfbd692017-02-21 11:11:10 +0530801UMAC_COMMON_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/cmn_defs/inc \
802 -I$(WLAN_COMMON_INC)/umac/cmn_services/utils/inc
803UMAC_COMMON_OBJS := $(WLAN_COMMON_ROOT)/umac/cmn_services/utils/src/wlan_utility.o
Abhishek Singh9be07e22017-02-21 10:59:57 +0530804
Dhanashri Atre170855e2016-12-15 13:26:54 -0800805ifeq ($(CONFIG_WLAN_LRO), y)
806QDF_OBJS += $(QDF_OBJ_DIR)/qdf_lro.o
807endif
808
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800809############ CDS (Connectivity driver services) ############
810CDS_DIR := core/cds
811CDS_INC_DIR := $(CDS_DIR)/inc
812CDS_SRC_DIR := $(CDS_DIR)/src
813
814CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
815 -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
816
817CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800818 $(CDS_SRC_DIR)/cds_reg_service.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800819 $(CDS_SRC_DIR)/cds_packet.o \
820 $(CDS_SRC_DIR)/cds_regdomain.o \
821 $(CDS_SRC_DIR)/cds_sched.o \
Krunal Sonid32c6bc2016-10-18 18:00:21 -0700822 $(CDS_SRC_DIR)/cds_utils.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800823
824
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530825###### UMAC OBJMGR ########
826UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
827
828UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
829 -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
830 -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \
831 -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc
832
833UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
834 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
835 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
836 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
Rajeev Kumarb32b8a92017-02-01 14:35:54 -0800837 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_service_ready_api.o \
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530838 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
839
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530840########### UMAC MGMT TXRX ##########
841UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
842
Himanshu Agarwal795b7f72017-01-17 21:19:43 +0530843UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530844
845UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
846 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
847 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
848
Mukul Sharmac5de6772017-01-05 14:32:36 +0530849########## POWER MANAGEMENT OFFLOADS (PMO) ##########
850PMO_DIR := $(WLAN_COMMON_ROOT)/power_management_offloads
851PMO_INC := -I$(WLAN_COMMON_INC)/power_management_offloads/core/inc \
852 -I$(WLAN_COMMON_INC)/power_management_offloads/dispatcher/inc \
853 -I$(WLAN_COMMON_INC)/power_management_offloads/core/src \
854 -I$(WLAN_COMMON_INC)/power_management_offloads/dispatcher/src
855
856PMO_OBJS := $(PMO_DIR)/core/src/wlan_pmo_main.o \
857 $(PMO_DIR)/core/src/wlan_pmo_arp.o \
858 $(PMO_DIR)/core/src/wlan_pmo_ns.o \
859 $(PMO_DIR)/core/src/wlan_pmo_gtk.o \
860 $(PMO_DIR)/core/src/wlan_pmo_mc_addr_filtering.o \
861 $(PMO_DIR)/core/src/wlan_pmo_static_config.o \
862 $(PMO_DIR)/core/src/wlan_pmo_wow.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530863 $(PMO_DIR)/core/src/wlan_pmo_lphb.o \
864 $(PMO_DIR)/core/src/wlan_pmo_suspend_resume.o \
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +0530865 $(PMO_DIR)/core/src/wlan_pmo_hw_bcast_fltr.o \
Mukul Sharmac5de6772017-01-05 14:32:36 +0530866 $(PMO_DIR)/dispatcher/src/wlan_pmo_obj_mgmt_api.o \
867 $(PMO_DIR)/dispatcher/src/wlan_pmo_ucfg_api.o \
868 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_arp.o \
869 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_ns.o \
870 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_gtk.o \
871 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_wow.o \
872 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_static_config.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530873 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_mc_addr_filtering.o \
874 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_lphb.o \
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +0530875 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_suspend_resume.o \
876 $(PMO_DIR)/dispatcher/src/wlan_pmo_tgt_non_arp_bcast_fltr.o
Mukul Sharmac5de6772017-01-05 14:32:36 +0530877
Wu Gao64b31482017-03-10 15:16:10 +0800878############## UMAC P2P ###########
879P2P_DIR := umac/p2p
880P2P_CORE_DIR := $(P2P_DIR)/core
881P2P_CORE_SRC_DIR := $(P2P_CORE_DIR)/src
882P2P_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_CORE_SRC_DIR)
883P2P_DISPATCHER_DIR := $(P2P_DIR)/dispatcher
884P2P_DISPATCHER_INC_DIR := $(P2P_DISPATCHER_DIR)/inc
885P2P_DISPATCHER_SRC_DIR := $(P2P_DISPATCHER_DIR)/src
886P2P_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(P2P_DISPATCHER_SRC_DIR)
887UMAC_P2P_INC := -I$(WLAN_COMMON_INC)/$(P2P_DISPATCHER_INC_DIR) \
888 -I$(WLAN_COMMON_INC)/umac/scan/dispatcher/inc
889UMAC_P2P_OBJS := $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_ucfg_api.o \
890 $(P2P_DISPATCHER_OBJ_DIR)/wlan_p2p_tgt_api.o \
891 $(P2P_CORE_OBJ_DIR)/wlan_p2p_main.o \
892 $(P2P_CORE_OBJ_DIR)/wlan_p2p_roc.o \
893 $(P2P_CORE_OBJ_DIR)/wlan_p2p_off_chan_tx.o
894
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -0800895###### UMAC POLICY MGR ########
896UMAC_POLICY_MGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/policy_mgr
897
898UMAC_POLICY_MGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/inc \
899 -I$(WLAN_COMMON_INC)/umac/cmn_services/policy_mgr/src
900
901UMAC_POLICY_MGR_OBJS := $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_action.o \
902 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_core.o \
903 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_get_set_utils.o \
904 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_init_deinit.o \
905 $(UMAC_POLICY_MGR_DIR)/src/wlan_policy_mgr_pcl.o \
906
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800907########### BMI ###########
908BMI_DIR := core/bmi
909
910BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
911
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800912BMI_OBJS := $(BMI_DIR)/src/bmi.o \
Poddar, Siddarthef1f3022016-05-10 20:10:43 +0530913 $(BMI_DIR)/src/ol_fw.o \
914 $(BMI_DIR)/src/ol_fw_common.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800915BMI_OBJS += $(BMI_DIR)/src/bmi_1.o
Govind Singh0fea23a2016-03-18 12:59:27 +0530916
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530917########## TARGET_IF #######
918TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
919
920TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
Rajeev Kumarda2444c2017-01-10 22:42:07 -0800921 -I$(WLAN_COMMON_INC)/target_if/core/src \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530922 -I$(WLAN_COMMON_INC)/target_if/init_deinit/inc \
923 -I$(WLAN_COMMON_INC)/target_if/pmo/inc \
Wu Gao64b31482017-03-10 15:16:10 +0800924 -I$(WLAN_COMMON_INC)/target_if/pmo/src \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -0800925 -I$(WLAN_COMMON_INC)/target_if/p2p/inc \
926 -I$(WLAN_COMMON_INC)/target_if/regulatory/inc
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530927
Rajeev Kumarda2444c2017-01-10 22:42:07 -0800928TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530929 $(TARGET_IF_DIR)/init_deinit/src/service_ready_event_handler.o \
930 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_main.o \
931 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_arp.o \
932 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_ns.o \
933 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_gtk.o \
934 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_wow.o \
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +0530935 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_non_arp_bcast_fltr.o \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530936 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_mc_addr_filtering.o \
Mukul Sharma4c60a7e2017-03-06 19:42:18 +0530937 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_static_config.o \
938 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_lphb.o \
Wu Gao64b31482017-03-10 15:16:10 +0800939 $(TARGET_IF_DIR)/pmo/src/target_if_pmo_suspend_resume.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -0800940 $(TARGET_IF_DIR)/p2p/src/target_if_p2p.o \
941 $(TARGET_IF_DIR)/regulatory/src/target_if_reg.o
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530942
Mukul Sharmadad267e2017-02-04 13:25:34 +0530943########### GLOBAL_LMAC_IF ##########
944GLOBAL_LMAC_IF_DIR := $(WLAN_COMMON_ROOT)/global_lmac_if
945
946GLOBAL_LMAC_IF_INC := -I$(WLAN_COMMON_INC)/global_lmac_if/inc \
947 -I$(WLAN_COMMON_INC)/global_lmac_if/src
948
949GLOBAL_LMAC_IF_OBJ := $(GLOBAL_LMAC_IF_DIR)/src/wlan_global_lmac_if.o
950
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800951########### WMI ###########
Govind Singh0fea23a2016-03-18 12:59:27 +0530952WMI_ROOT_DIR := wmi
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800953
Govind Singh0fea23a2016-03-18 12:59:27 +0530954WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
955WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
956WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800957
Govind Singh0fea23a2016-03-18 12:59:27 +0530958WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
959
960WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
961 $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
962 $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
963 $(WMI_OBJ_DIR)/wmi_unified_api.o \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +0530964 $(WMI_OBJ_DIR)/wmi_unified_pmo_api.o \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -0800965 $(WMI_OBJ_DIR)/wmi_unified_reg_api.o \
Govind Singh0fea23a2016-03-18 12:59:27 +0530966 $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800967
968########### FWLOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800969FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800970
971FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
972
973FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
974
975############ TXRX ############
976TXRX_DIR := core/dp/txrx
977TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
978
979TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
980 $(TXRX_DIR)/ol_cfg.o \
981 $(TXRX_DIR)/ol_rx.o \
982 $(TXRX_DIR)/ol_rx_fwd.o \
983 $(TXRX_DIR)/ol_txrx.o \
984 $(TXRX_DIR)/ol_rx_defrag.o \
985 $(TXRX_DIR)/ol_tx_desc.o \
986 $(TXRX_DIR)/ol_tx.o \
987 $(TXRX_DIR)/ol_rx_reorder_timeout.o \
988 $(TXRX_DIR)/ol_rx_reorder.o \
989 $(TXRX_DIR)/ol_rx_pn.o \
990 $(TXRX_DIR)/ol_tx_queue.o \
991 $(TXRX_DIR)/ol_txrx_peer_find.o \
992 $(TXRX_DIR)/ol_txrx_event.o \
993 $(TXRX_DIR)/ol_txrx_encap.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530994 $(TXRX_DIR)/ol_tx_send.o \
995 $(TXRX_DIR)/ol_tx_sched.o \
996 $(TXRX_DIR)/ol_tx_classify.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800997
998ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
999TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
1000endif
1001
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001002ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001003############ DP 3.0 ############
1004DP_INC := -I$(WLAN_COMMON_ROOT)/dp/inc \
1005 -I$(WLAN_COMMON_ROOT)/dp/wifi3.0
1006
1007DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
1008DP_OBJS := $(DP_SRC)/dp_main.o \
1009 $(DP_SRC)/dp_tx.o \
1010 $(DP_SRC)/dp_tx_desc.o \
1011 $(DP_SRC)/dp_rx.o \
1012 $(DP_SRC)/dp_rx_err.o \
1013 $(DP_SRC)/dp_htt.o \
1014 $(DP_SRC)/dp_peer.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001015 $(DP_SRC)/dp_rx_desc.o \
Ravi Joshi12665a02017-03-08 16:35:04 -08001016 $(DP_SRC)/dp_reo.o \
1017 $(DP_SRC)/dp_rx_mon_dest.o \
1018 $(DP_SRC)/dp_rx_mon_status.o
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001019endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001020
1021############ CFG ############
Ravi Joshid55b18a2017-02-17 10:48:14 -08001022WCFG_DIR := wlan_cfg
1023WCFG_INC := -I$(WLAN_COMMON_INC)/$(WCFG_DIR)
1024WCFG_SRC := $(WLAN_COMMON_ROOT)/$(WCFG_DIR)
1025WCFG_OBJS := $(WCFG_SRC)/wlan_cfg.o
Leo Chang5f7a1e02016-11-04 14:04:26 -07001026
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001027############ OL ############
1028OL_DIR := core/dp/ol
1029OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
1030
Dhanashri Atre12a08392016-02-17 13:10:34 -08001031############ CDP ############
1032CDP_ROOT_DIR := dp
1033CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
1034CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
1035
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001036############ PKTLOG ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -08001037PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001038PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
1039
1040PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
1041 $(PKTLOG_DIR)/pktlog_internal.o \
1042 $(PKTLOG_DIR)/linux_ac.o
1043
1044############ HTT ############
1045HTT_DIR := core/dp/htt
1046HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
1047
1048HTT_OBJS := $(HTT_DIR)/htt_tx.o \
1049 $(HTT_DIR)/htt.o \
1050 $(HTT_DIR)/htt_t2h.o \
1051 $(HTT_DIR)/htt_h2t.o \
1052 $(HTT_DIR)/htt_fw_stats.o \
1053 $(HTT_DIR)/htt_rx.o
1054
Rajeev Kumar97767a02016-11-30 11:20:40 -08001055
1056############## INIT-DEINIT ###########
1057INIT_DEINIT_DIR := init_deinit/dispatcher
1058INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
1059INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
1060INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
1061INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
1062INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
1063
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001064############## REGULATORY ###########
1065REGULATORY_DIR := umac/regulatory
1066REGULATORY_CORE_INC_DIR := $(REGULATORY_DIR)/core/inc
1067REGULATORY_CORE_SRC_DIR := $(REGULATORY_DIR)/core/src
1068REG_DISPATCHER_INC_DIR := $(REGULATORY_DIR)/dispatcher/inc
1069REG_DISPATCHER_SRC_DIR := $(REGULATORY_DIR)/dispatcher/src
1070REG_CORE_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REGULATORY_CORE_SRC_DIR)
1071REG_DISPATCHER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(REG_DISPATCHER_SRC_DIR)
1072REGULATORY_INC := -I$(WLAN_COMMON_INC)/$(REGULATORY_CORE_INC_DIR)
1073REGULATORY_INC += -I$(WLAN_COMMON_INC)/$(REG_DISPATCHER_INC_DIR)
1074REGULATORY_OBJS := $(REG_CORE_OBJ_DIR)/reg_db.o \
1075 $(REG_CORE_OBJ_DIR)/reg_services.o \
1076 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_services_api.o \
1077 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_tgt_api.o \
1078 $(REG_DISPATCHER_OBJ_DIR)/wlan_reg_ucfg_api.o
1079
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001080############## Control path common scheduler ##########
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001081SCHEDULER_DIR := scheduler
1082SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
1083SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
1084SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
1085SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
1086SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
1087 $(SCHEDULER_OBJ_DIR)/scheduler_core.o
Rajeev Kumar1705fc22016-11-30 16:12:16 -08001088
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001089###### UMAC SERIALIZATION ########
1090UMAC_SER_DIR := umac/cmn_services/serialization
1091UMAC_SER_INC_DIR := $(UMAC_SER_DIR)/inc
1092UMAC_SER_SRC_DIR := $(UMAC_SER_DIR)/src
1093UMAC_SER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_SER_SRC_DIR)
Rajeev Kumar97767a02016-11-30 11:20:40 -08001094
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001095UMAC_SER_INC := -I$(WLAN_COMMON_INC)/$(UMAC_SER_INC_DIR)
1096UMAC_SER_OBJS := $(UMAC_SER_OBJ_DIR)/wlan_serialization_dequeue.o \
1097 $(UMAC_SER_OBJ_DIR)/wlan_serialization_enqueue.o \
1098 $(UMAC_SER_OBJ_DIR)/wlan_serialization_main.o \
1099 $(UMAC_SER_OBJ_DIR)/wlan_serialization_api.o \
1100 $(UMAC_SER_OBJ_DIR)/wlan_serialization_utils.o \
Varun Reddy Yeturu35c07f92017-02-28 10:35:00 -08001101 $(UMAC_SER_OBJ_DIR)/wlan_serialization_legacy_api.o \
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001102 $(UMAC_SER_OBJ_DIR)/wlan_serialization_rules.o
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001103
1104###### WIFI POS ########
Naveen Rawat91a27b72017-03-20 18:49:57 -07001105CONFIG_WIFI_POS_CONVERGED := y
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001106
1107WIFI_POS_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/wifi_pos/src
1108WIFI_POS_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/wifi_pos/inc
1109WIFI_POS_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/wifi_pos/src
1110WIFI_POS_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/wifi_pos/inc
1111WIFI_POS_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/wifi_pos/src
1112WIFI_POS_API_INC := -I$(WLAN_COMMON_INC)/umac/wifi_pos/inc
1113
1114
1115ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1116WIFI_POS_OBJS := $(WIFI_POS_CORE_DIR)/wifi_pos_api.o \
1117 $(WIFI_POS_CORE_DIR)/wifi_pos_main.o \
1118 $(WIFI_POS_CORE_DIR)/wifi_pos_ucfg.o \
1119 $(WIFI_POS_CORE_DIR)/wifi_pos_utils.o \
1120 $(WIFI_POS_OS_IF_DIR)/os_if_wifi_pos.o \
1121 $(WIFI_POS_TGT_DIR)/target_if_wifi_pos.o
1122endif
1123
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001124######################### NAN #########################
1125NAN_CORE_DIR := $(WLAN_COMMON_ROOT)/umac/nan/core/src
1126NAN_CORE_INC := -I$(WLAN_COMMON_INC)/umac/nan/core/inc
1127NAN_UCFG_DIR := $(WLAN_COMMON_ROOT)/umac/nan/dispatcher/src
1128NAN_UCFG_INC := -I$(WLAN_COMMON_INC)/umac/nan/dispatcher/inc
1129NAN_TGT_DIR := $(WLAN_COMMON_ROOT)/target_if/nan/src
1130NAN_TGT_INC := -I$(WLAN_COMMON_INC)/target_if/nan/inc
1131NAN_OS_IF_DIR := $(WLAN_COMMON_ROOT)/os_if/linux/nan/src
1132NAN_OS_IF_INC := -I$(WLAN_COMMON_INC)/os_if/linux/nan/inc
1133
1134ifeq ($(CONFIG_NAN_CONVERGENCE), y)
1135WLAN_NAN_OBJS := $(NAN_CORE_DIR)/nan_main.o \
1136 $(NAN_CORE_DIR)/nan_api.o \
1137 $(NAN_CORE_DIR)/nan_utils.o \
1138 $(NAN_UCFG_DIR)/nan_ucfg_api.o \
1139 $(NAN_TGT_DIR)/target_if_nan.o \
1140 $(NAN_OS_IF_DIR)/os_if_nan.o
1141endif
1142#######################################################
1143
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001144############## HTC ##########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001145HTC_DIR := htc
1146HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001147
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001148HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
1149 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
1150 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
1151 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001152
1153########### HIF ###########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001154HIF_DIR := hif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001155HIF_CE_DIR := $(HIF_DIR)/src/ce
Houston Hoffman1edffd32016-01-27 16:30:34 -08001156
1157HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
1158
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001159HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001160HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
Mohit Khannada4f4432016-05-17 15:02:09 -07001161HIF_USB_DIR := $(HIF_DIR)/src/usb
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301162HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
1163
1164HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
1165HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
1166HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001167
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001168HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
1169 -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src \
Yuanyuan Liu91353612016-05-04 12:02:00 -07001170 -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001171
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001172ifeq ($(CONFIG_HIF_PCI), 1)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001173HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001174HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001175endif
1176
1177ifeq ($(CONFIG_HIF_SNOC), 1)
1178HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001179HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001180endif
1181
Mohit Khannada4f4432016-05-17 15:02:09 -07001182ifeq ($(CONFIG_HIF_USB), 1)
1183HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1184HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
1185endif
1186
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301187ifeq ($(CONFIG_HIF_SDIO), 1)
1188HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
1189HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
1190HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
1191endif
1192
1193HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
1194 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
1195 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o
1196
1197HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o \
1198 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
1199 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
1200 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
1201 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001202 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301203
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001204ifeq ($(CONFIG_LITHIUM), y)
1205HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o \
1206 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
Houston Hoffmana0f93492016-11-18 13:42:12 -08001207endif
1208
Mohit Khannada4f4432016-05-17 15:02:09 -07001209HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
1210 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
1211 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
1212 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
1213
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301214HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_send.o \
1215 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o \
1216 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
1217 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
1218 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
1219 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_recv.o \
1220 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o
1221
1222HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
1223 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001224
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001225ifeq ($(CONFIG_WLAN_NAPI), y)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001226HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001227endif
1228
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001229HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001230HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301231HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001232
Houston Hoffman1edffd32016-01-27 16:30:34 -08001233HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
Houston Hoffmanb61b9b12016-03-03 20:04:16 -08001234HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
Houston Hoffman1edffd32016-01-27 16:30:34 -08001235
1236ifeq ($(CONFIG_HIF_PCI), 1)
1237HIF_OBJS += $(HIF_PCIE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301238HIF_OBJS += $(HIF_COMMON_OBJS)
1239HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001240HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
1241endif
1242
1243ifeq ($(CONFIG_HIF_SNOC), 1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001244HIF_OBJS += $(HIF_SNOC_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301245HIF_OBJS += $(HIF_COMMON_OBJS)
1246HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001247HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001248endif
1249
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301250ifeq ($(CONFIG_HIF_SDIO), 1)
1251HIF_OBJS += $(HIF_SDIO_OBJS)
1252HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
1253HIF_OBJS += $(HIF_COMMON_OBJS)
1254HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
1255endif
1256
Mohit Khannada4f4432016-05-17 15:02:09 -07001257ifeq ($(CONFIG_HIF_USB), 1)
1258HIF_OBJS += $(HIF_USB_OBJS)
1259HIF_OBJS += $(HIF_COMMON_OBJS)
1260HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
1261endif
1262
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001263ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001264############ HAL ############
1265HAL_DIR := hal
1266HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
1267 -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
1268
1269HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
1270 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001271 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \
1272 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001273endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001274
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001275############ WMA ############
1276WMA_DIR := core/wma
1277
1278WMA_INC_DIR := $(WMA_DIR)/inc
1279WMA_SRC_DIR := $(WMA_DIR)/src
1280
1281WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
1282 -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
1283
Ravi Joshia063dd92016-05-25 16:43:13 -07001284ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
1285WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
1286endif
1287
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001288WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
1289 $(WMA_SRC_DIR)/wma_scan_roam.o \
1290 $(WMA_SRC_DIR)/wma_dev_if.o \
1291 $(WMA_SRC_DIR)/wma_mgmt.o \
1292 $(WMA_SRC_DIR)/wma_power.o \
1293 $(WMA_SRC_DIR)/wma_data.o \
1294 $(WMA_SRC_DIR)/wma_utils.o \
1295 $(WMA_SRC_DIR)/wma_features.o \
1296 $(WMA_SRC_DIR)/wma_dfs_interface.o \
Ravi Joshia063dd92016-05-25 16:43:13 -07001297 $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
1298 $(WMA_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001299
Agrawal Ashishb141b092016-09-02 19:59:26 +05301300ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonb90ab572017-01-31 15:57:35 -08001301WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
Agrawal Ashishb141b092016-09-02 19:59:26 +05301302endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001303ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
1304WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
1305endif
Krishna Kumaar Natarajand0bbb3c2017-03-13 17:04:58 -07001306ifeq ($(CONFIG_WLAN_FEATURE_11AX), y)
1307WMA_OBJS+= $(WMA_SRC_DIR)/wma_he.o
1308endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001309
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001310############## PLD ##########
1311PLD_DIR := core/pld
1312PLD_INC_DIR := $(PLD_DIR)/inc
1313PLD_SRC_DIR := $(PLD_DIR)/src
1314
1315PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
1316 -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
1317
1318PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
1319
1320ifeq ($(CONFIG_PCI), y)
1321PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
1322endif
1323ifeq ($(CONFIG_ICNSS),y)
1324PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
1325endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301326ifeq ($(CONFIG_CNSS_SDIO),y)
1327PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
1328endif
Mohit Khannae7a43572016-10-10 17:34:21 -07001329ifeq ($(CONFIG_PLD_USB_CNSS), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001330PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
1331endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001332
Leo Chang5f7a1e02016-11-04 14:04:26 -07001333TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v1 \
1334 -I$(WLAN_ROOT)/../fw-api/fw
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001335
1336LINUX_INC := -Iinclude/linux
1337
1338INCS := $(HDD_INC) \
1339 $(EPPING_INC) \
1340 $(LINUX_INC) \
1341 $(MAC_INC) \
1342 $(SAP_INC) \
1343 $(SME_INC) \
1344 $(SYS_INC) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001345 $(QDF_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001346 $(CDS_INC) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301347 $(DFS_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301348 $(TARGET_IF_INC) \
Sandeep Puligillafdd201e2017-02-02 18:43:46 -08001349 $(OS_IF_INC) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301350 $(GLOBAL_LMAC_IF_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001351
1352INCS += $(WMA_INC) \
1353 $(UAPI_INC) \
1354 $(COMMON_INC) \
1355 $(WMI_INC) \
1356 $(FWLOG_INC) \
1357 $(TXRX_INC) \
1358 $(OL_INC) \
Dhanashri Atre12a08392016-02-17 13:10:34 -08001359 $(CDP_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001360 $(PKTLOG_INC) \
1361 $(HTT_INC) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001362 $(INIT_DEINIT_INC) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001363 $(SCHEDULER_INC) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001364 $(REGULATORY_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001365 $(HTC_INC) \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001366 $(DFS_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001367 $(WCFG_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001368
1369INCS += $(HIF_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001370 $(BMI_INC)
1371
1372ifeq ($(CONFIG_LITHIUM), y)
1373INCS += $(HAL_INC) \
1374 $(DP_INC)
1375endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001376
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001377################ WIFI POS ################
1378INCS += $(WIFI_POS_API_INC)
1379INCS += $(WIFI_POS_TGT_INC)
1380INCS += $(WIFI_POS_OS_IF_INC)
1381##########################################
1382
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001383################ NAN POS ################
1384INCS += $(NAN_CORE_INC)
1385INCS += $(NAN_UCFG_INC)
1386INCS += $(NAN_TGT_INC)
1387INCS += $(NAN_OS_IF_INC)
1388##########################################
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301389INCS += $(UMAC_OBJMGR_INC)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301390INCS += $(UMAC_MGMT_TXRX_INC)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301391INCS += $(PMO_INC)
Wu Gao64b31482017-03-10 15:16:10 +08001392INCS += $(UMAC_P2P_INC)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001393INCS += $(UMAC_POLICY_MGR_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001394INCS += $(TARGET_INC)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001395INCS += $(UMAC_SER_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001396INCS += $(NLINK_INC) \
1397 $(PTT_INC) \
1398 $(WLAN_LOGGING_INC)
1399
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001400INCS += $(PLD_INC)
1401
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001402ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
1403INCS += $(PKTLOG_INC)
1404endif
1405
1406ifeq ($(BUILD_DIAG_VERSION), 1)
1407INCS += $(HOST_DIAG_LOG_INC)
1408endif
1409
Frank Liu65b17d92016-11-23 15:58:44 +08001410INCS += $(UMAC_DISP_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301411INCS += $(UMAC_SCAN_INC)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301412INCS += $(UMAC_TARGET_SCAN_INC)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301413INCS += $(UMAC_COMMON_INC)
Frank Liu65b17d92016-11-23 15:58:44 +08001414
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001415OBJS := $(HDD_OBJS) \
1416 $(EPPING_OBJS) \
1417 $(MAC_OBJS) \
1418 $(SAP_OBJS) \
1419 $(SME_OBJS) \
1420 $(SYS_OBJS) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001421 $(QDF_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001422 $(CDS_OBJS) \
1423 $(DFS_OBJS)
1424
1425OBJS += $(WMA_OBJS) \
1426 $(TXRX_OBJS) \
1427 $(WMI_OBJS) \
1428 $(FWLOG_OBJS) \
1429 $(HTC_OBJS) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001430 $(INIT_DEINIT_OBJS) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001431 $(SCHEDULER_OBJS) \
Kiran Kumar Lokere3fbafbc2017-01-10 12:57:52 -08001432 $(REGULATORY_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001433 $(DFS_OBJS)
1434
1435OBJS += $(HIF_OBJS) \
1436 $(BMI_OBJS) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301437 $(HTT_OBJS) \
Wu Gao64b31482017-03-10 15:16:10 +08001438 $(OS_IF_OBJ) \
Mukul Sharmadad267e2017-02-04 13:25:34 +05301439 $(TARGET_IF_OBJ) \
1440 $(GLOBAL_LMAC_IF_OBJ)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001441
1442ifeq ($(CONFIG_LITHIUM), y)
1443OBJS += $(HAL_OBJS)
1444endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001445
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301446OBJS += $(UMAC_OBJMGR_OBJS)
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001447OBJS += $(WIFI_POS_OBJS)
Naveen Rawat6d2bf182017-03-22 10:18:00 -07001448OBJS += $(WLAN_NAN_OBJS)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301449OBJS += $(UMAC_MGMT_TXRX_OBJS)
Mukul Sharmac5de6772017-01-05 14:32:36 +05301450OBJS += $(PMO_OBJS)
Wu Gao64b31482017-03-10 15:16:10 +08001451OBJS += $(UMAC_P2P_OBJS)
Tushnim Bhattacharyya44939d42017-02-15 17:08:12 -08001452OBJS += $(UMAC_POLICY_MGR_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001453OBJS += $(WLAN_LOGGING_OBJS)
1454OBJS += $(NLINK_OBJS)
1455OBJS += $(PTT_OBJS)
Varun Reddy Yeturu269eca12017-01-03 06:32:07 -08001456OBJS += $(UMAC_SER_OBJS)
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001457OBJS += $(PLD_OBJS)
1458
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001459ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
1460OBJS += $(PKTLOG_OBJS)
1461endif
1462
1463ifeq ($(BUILD_DIAG_VERSION), 1)
1464OBJS += $(HOST_DIAG_LOG_OBJS)
1465endif
1466
Frank Liu65b17d92016-11-23 15:58:44 +08001467OBJS += $(UMAC_DISP_OBJS)
Abhishek Singh9be07e22017-02-21 10:59:57 +05301468OBJS += $(UMAC_SCAN_OBJS)
Abhishek Singh8dfbd692017-02-21 11:11:10 +05301469OBJS += $(UMAC_COMMON_OBJS)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001470OBJS += $(WCFG_OBJS)
1471
1472ifeq ($(CONFIG_LITHIUM), y)
1473OBJS += $(DP_OBJS)
1474endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001475
1476EXTRA_CFLAGS += $(INCS)
1477
1478CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \
1479 -DANI_LITTLE_BIT_ENDIAN \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001480 -DDOT11F_LITTLE_ENDIAN_HOST \
1481 -DANI_COMPILER_TYPE_GCC \
1482 -DANI_OS_TYPE_ANDROID=6 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001483 -DPTT_SOCK_SVC_ENABLE \
1484 -Wall\
1485 -Werror\
1486 -D__linux__ \
1487 -DHAL_SELF_STA_PER_BSS=1 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001488 -DFEATURE_WLAN_WAPI \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001489 -DSOFTAP_CHANNEL_RANGE \
1490 -DWLAN_AP_STA_CONCURRENCY \
1491 -DFEATURE_WLAN_SCAN_PNO \
1492 -DWLAN_FEATURE_PACKET_FILTERING \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001493 -DWLAN_FEATURE_P2P_DEBUG \
1494 -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
1495 -DWLANTL_DEBUG\
1496 -DWLAN_NS_OFFLOAD \
1497 -DWLAN_SOFTAP_VSTA_FEATURE \
1498 -DWLAN_FEATURE_GTK_OFFLOAD \
1499 -DWLAN_WAKEUP_EVENTS \
1500 -DFEATURE_WLAN_RA_FILTERING\
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001501 -DWLAN_NL80211_TESTMODE \
1502 -DFEATURE_WLAN_LPHB \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001503 -DQCA_SUPPORT_TX_THROTTLE \
1504 -DWMI_INTERFACE_EVENT_LOGGING \
1505 -DATH_SUPPORT_WAPI \
1506 -DWLAN_FEATURE_LINK_LAYER_STATS \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001507 -DFEATURE_WLAN_EXTSCAN \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001508 -DWLAN_FEATURE_MBSSID \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001509 -DCONFIG_160MHZ_SUPPORT \
Mukul Sharma0cdf8b32017-02-04 14:27:56 +05301510 -DCONFIG_MCL \
Sandeep Puligilla1fcdb772017-02-22 21:14:59 -08001511 -DNAPIER_SCAN \
Wu Gao64b31482017-03-10 15:16:10 +08001512 -DWLAN_PMO_ENABLE \
Wu Gao5491e522017-03-20 20:32:32 +08001513 -DCONVERGED_P2P_ENABLE \
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08001514 -DWLAN_POLICY_MGR_ENABLE \
1515 -DSUPPORT_11AX
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001516
Naveen Rawat4e2c2562017-03-06 10:47:02 -08001517
1518############ WIFI POS ##############
1519ifeq ($(CONFIG_WIFI_POS_CONVERGED), y)
1520CDEFINES += -DWIFI_POS_CONVERGED
1521else
1522CDEFINES += -DFEATURE_OEM_DATA_SUPPORT
1523endif
1524####################################
1525
Mohit Khannada4f4432016-05-17 15:02:09 -07001526ifneq ($(CONFIG_HIF_USB), 1)
1527CDEFINES += -DWLAN_LOGGING_SOCK_SVC_ENABLE
1528endif
1529
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001530ifeq ($(CONFIG_CNSS), y)
1531ifeq ($(CONFIG_CNSS_SDIO), y)
1532CDEFINES += -DCONFIG_PLD_SDIO_CNSS
1533else
1534CDEFINES += -DCONFIG_PLD_PCIE_CNSS
1535endif
1536endif
1537
Yue Mae6a7a322016-08-31 11:09:23 -07001538ifeq ($(CONFIG_CNSS2), y)
1539CDEFINES += -DCONFIG_PLD_PCIE_CNSS
Houston Hoffman435cd442016-11-23 14:20:42 -08001540CDEFINES += -DCONFIG_PLD_PCIE_INIT
Yue Mae6a7a322016-08-31 11:09:23 -07001541endif
1542
Yue Ma2b091312017-02-15 15:56:47 -08001543# Flag to enable bus auto suspend
1544ifeq ($(CONFIG_ROME_IF),pci)
1545ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
1546CDEFINES += -DFEATURE_RUNTIME_PM
1547endif
1548endif
1549
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001550ifeq ($(CONFIG_ICNSS), y)
1551CDEFINES += -DCONFIG_PLD_SNOC_ICNSS
1552endif
1553
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001554ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
1555CDEFINES += -DQCA_WIFI_3_0
1556CDEFINES += -DQCA_WIFI_3_0_EMU
1557endif
1558
1559ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1560CDEFINES += -DQCA_WIFI_3_0_ADRASTEA
1561CDEFINES += -DADRASTEA_SHADOW_REGISTERS
Sanjay Devnanicdab59e2015-11-12 14:43:58 -08001562CDEFINES += -DADRASTEA_RRI_ON_DDR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001563endif
1564
1565ifeq ($(CONFIG_WLAN_FASTPATH), y)
1566CDEFINES += -DWLAN_FEATURE_FASTPATH
1567endif
1568
Poddar, Siddartheefe3482016-09-21 18:12:59 +05301569ifeq ($(CONFIG_FEATURE_PKTLOG), y)
1570CDEFINES += -DFEATURE_PKTLOG
1571endif
1572
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05301573ifeq ($(CONFIG_FEATURE_DP_TRACE), y)
1574CDEFINES += -DFEATURE_DP_TRACE
1575endif
1576
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001577ifeq ($(CONFIG_WLAN_NAPI), y)
1578CDEFINES += -DFEATURE_NAPI
1579ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
1580CDEFINES += -DFEATURE_NAPI_DEBUG
1581endif
1582endif
1583
Yue Madf224b82016-04-21 12:46:04 -07001584ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
Yuanyuan Liu5af44362016-04-01 21:57:06 -07001585CDEFINES += -DMSM_PLATFORM
1586endif
1587
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001588CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
1589
1590ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1591CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2
1592CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
1593else
1594ifeq ($(CONFIG_ROME_IF),pci)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001595ifneq ($(CONFIG_LITHIUM),y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001596CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
1597endif
1598endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001599endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001600
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001601ifneq ($(CONFIG_QCA_CLD_WLAN),)
1602CDEFINES += -DWCN_PRONTO
1603CDEFINES += -DWCN_PRONTO_V1
1604endif
1605
1606ifeq ($(BUILD_DEBUG_VERSION),1)
1607CDEFINES += -DWLAN_DEBUG \
1608 -DTRACE_RECORD \
1609 -DLIM_TRACE_RECORD \
1610 -DSME_TRACE_RECORD \
1611 -DHDD_TRACE_RECORD \
1612 -DPE_DEBUG_LOGW \
Srinivas Girigowda6147c582016-10-18 12:26:15 -07001613 -DPE_DEBUG_LOGE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001614endif
1615
1616ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
1617CDEFINES += -DTIMER_MANAGER
1618CDEFINES += -DMEMORY_DEBUG
Rajeev Kumar04223052017-04-07 20:44:15 -07001619CDEFINES += -DCONFIG_HALT_KMEMLEAK
Dustin Brown8b28e082016-12-06 15:37:34 -08001620CDEFINES += -DWLAN_SUSPEND_RESUME_TEST
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001621endif
1622
1623ifeq ($(HAVE_CFG80211),1)
1624CDEFINES += -DWLAN_FEATURE_P2P
1625CDEFINES += -DWLAN_FEATURE_WFD
1626ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
1627CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
1628CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
1629endif
1630endif
1631
1632ifeq ($(CONFIG_QCOM_ESE),y)
1633CDEFINES += -DFEATURE_WLAN_ESE
1634CDEFINES += -DQCA_COMPUTE_TX_DELAY
1635CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001636endif
1637
1638#normally, TDLS negative behavior is not needed
1639ifeq ($(CONFIG_QCOM_TDLS),y)
1640CDEFINES += -DFEATURE_WLAN_TDLS
1641endif
1642
1643ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y)
1644CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD
1645endif
1646
Selvaraj, Sridhar046d77d2017-03-07 14:53:13 +05301647ifeq ($(CONFIG_CNSS_GENL), y)
1648CDEFINES += -DCNSS_GENL
1649endif
1650
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -08001651ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
1652CDEFINES += -DWLAN_FEATURE_HOST_ROAM
1653endif
1654
Sridhar Selvarajdc400d22016-10-18 17:18:03 +05301655ifeq ($(CONFIG_WLAN_POWER_DEBUGFS), y)
1656CDEFINES += -DWLAN_POWER_DEBUGFS
1657endif
1658
Rajeev Kumar69d7d492017-02-13 21:48:16 -08001659# Enable object manager reference count debug infrastructure
1660CDEFINES += -DWLAN_OBJMGR_DEBUG
1661
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001662ifeq ($(BUILD_DIAG_VERSION),1)
1663CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
1664CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
1665CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
1666ifeq ($(CONFIG_HIF_PCI), 1)
1667CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1668endif
1669endif
1670
1671ifeq ($(CONFIG_HIF_USB), 1)
1672CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1673CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
1674CDEFINES += -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 -08001675endif
1676
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001677ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
1678CDEFINES += -DWLAN_FEATURE_11W
1679endif
1680
gbiane55c9562016-11-01 14:47:47 +08001681ifeq ($(CONFIG_QCA_TXDESC_SANITY_CHECKS), 1)
1682CDEFINES += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
1683endif
1684
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001685ifeq ($(CONFIG_QCOM_LTE_COEX),y)
1686CDEFINES += -DFEATURE_WLAN_CH_AVOID
1687endif
1688
1689ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
1690CDEFINES += -DWLAN_FEATURE_LPSS
1691endif
1692
Nirav Shah76291962016-04-25 10:50:37 +05301693ifneq ($(TARGET_BUILD_VARIANT),user)
1694CDEFINES += -DDESC_DUP_DETECT_DEBUG
Manjunathappa Prakashc8e75642016-06-03 19:32:27 -07001695CDEFINES += -DDEBUG_RX_RING_BUFFER
Nirav Shah76291962016-04-25 10:50:37 +05301696endif
1697
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001698ifeq ($(PANIC_ON_BUG),1)
1699CDEFINES += -DPANIC_ON_BUG
1700endif
1701
1702ifeq ($(WLAN_OPEN_SOURCE), 1)
1703CDEFINES += -DWLAN_OPEN_SOURCE
1704endif
1705
1706ifeq ($(CONFIG_FEATURE_STATS_EXT), 1)
1707CDEFINES += -DWLAN_FEATURE_STATS_EXT
1708endif
1709
1710ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
1711CDEFINES += -DWLAN_FEATURE_NAN
1712endif
1713
1714ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1)
1715CDEFINES += -DQCA_IBSS_SUPPORT
1716endif
1717
1718#Enable OL debug and wmi unified functions
1719ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1)
1720CDEFINES += -DATH_PERF_PWR_OFFLOAD
1721endif
1722
1723#Disable packet log
1724ifeq ($(CONFIG_REMOVE_PKT_LOG), 1)
1725CDEFINES += -DREMOVE_PKT_LOG
1726endif
1727
1728#Enable 11AC TX
1729ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1)
1730CDEFINES += -DATH_11AC_TXCOMPACT
1731endif
1732
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001733#Enable OS specific IRQ abstraction
1734ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1)
1735CDEFINES += -DATH_SUPPORT_SHARED_IRQ
1736endif
1737
1738#Enable message based HIF instead of RAW access in BMI
1739ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1)
1740CDEFINES += -DHIF_MESSAGE_BASED
1741endif
1742
1743#Enable PCI specific APIS (dma, etc)
1744ifeq ($(CONFIG_HIF_PCI), 1)
1745CDEFINES += -DHIF_PCI
1746endif
1747
Houston Hoffman1edffd32016-01-27 16:30:34 -08001748ifeq ($(CONFIG_HIF_SNOC), 1)
1749CDEFINES += -DHIF_SNOC
1750endif
1751
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301752#Enable High Latency related Flags
1753ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
1754CDEFINES += -DCONFIG_HL_SUPPORT \
1755 -DCONFIG_AR6320_SUPPORT \
1756 -DSDIO_3_0 \
1757 -DHIF_SDIO \
1758 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
1759 -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
1760 -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \
1761 -DHIF_MBOX_SLEEP_WAR \
1762 -DDEBUG_HL_LOGGING \
1763 -DQCA_BAD_PEER_TX_FLOW_CL \
1764 -DCONFIG_TX_DESC_HI_PRIO_RESERVE \
1765 -DCONFIG_PER_VDEV_TX_DESC_POOL \
1766 -DCONFIG_SDIO \
1767 -DFEATURE_WLAN_FORCE_SAP_SCC
1768endif
1769
Agrawal Ashishb141b092016-09-02 19:59:26 +05301770ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1771CDEFINES += -DWLAN_FEATURE_DSRC
1772endif
1773
bings7762da12017-03-06 07:21:04 +08001774ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
1775ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
1776ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y)
1777CDEFINES += -DFEATURE_SKB_PRE_ALLOC
1778endif
1779endif
1780endif
1781
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001782#Enable USB specific APIS
1783ifeq ($(CONFIG_HIF_USB), 1)
Mohit Khannada4f4432016-05-17 15:02:09 -07001784CDEFINES += -DHIF_USB \
Mohit Khannae7a43572016-10-10 17:34:21 -07001785 -DCONFIG_PLD_USB_CNSS \
1786 -DCONFIG_HL_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001787endif
1788
1789#Enable FW logs through ini
1790CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI
1791
1792#Enable pci read/write config functions
1793ifeq ($(CONFIG_ATH_PCI), 1)
1794CDEFINES += -DATH_PCI
1795endif
1796
1797#Enable power management suspend/resume functionality
1798ifeq ($(CONFIG_ATH_BUS_PM), 1)
1799CDEFINES += -DATH_BUS_PM
1800endif
1801
1802#Enable FLOWMAC module support
1803ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1)
1804CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE
1805endif
1806
1807#Enable spectral support
1808ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1)
1809CDEFINES += -DATH_SUPPORT_SPECTRAL
1810endif
1811
1812#Enable WDI Event support
1813ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
1814CDEFINES += -DWDI_EVENT_ENABLE
1815endif
1816
1817#Endianess selection
1818ifeq ($(CONFIG_LITTLE_ENDIAN), 1)
1819AH_LITTLE_ENDIAN=1234
1820CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN)
1821else
1822AH_BIG_ENDIAN=4321
1823CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN)
1824CDEFINES += -DBIG_ENDIAN_HOST
1825endif
1826
1827#Enable TX reclaim support
1828ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1)
1829CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT
1830endif
1831
1832#Enable FTM support
1833ifeq ($(CONFIG_QCA_WIFI_FTM), 1)
1834CDEFINES += -DQCA_WIFI_FTM
1835endif
1836
1837#Enable Checksum Offload support
1838ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1)
1839CDEFINES += -DCHECKSUM_OFFLOAD
1840endif
1841
1842#Enable Checksum Offload support
1843ifeq ($(CONFIG_IPA_OFFLOAD), 1)
1844CDEFINES += -DIPA_OFFLOAD
1845endif
1846
bings7762da12017-03-06 07:21:04 +08001847ifeq ($(CONFIG_ARCH_SDXHEDGEHOG), y)
1848CDEFINES += -DSYNC_IPA_READY
1849endif
1850
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001851#Enable GTK Offload
1852ifeq ($(CONFIG_GTK_OFFLOAD), 1)
1853CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD
1854CDEFINES += -DIGTK_OFFLOAD
1855endif
1856
1857#Enable GTK Offload
1858ifeq ($(CONFIG_EXT_WOW), 1)
1859CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT
1860endif
1861
1862#Mark it as SMP Kernel
1863ifeq ($(CONFIG_SMP),y)
1864CDEFINES += -DQCA_CONFIG_SMP
1865endif
1866
Sandeep Puligilla2111d3c2016-02-03 01:46:15 -08001867#Enable Channel Matrix restriction for all Rome only targets
1868ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001869CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
Sandeep Puligilla2111d3c2016-02-03 01:46:15 -08001870endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001871
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07001872#Enable OBSS feature
1873CDEFINES += -DQCA_HT_2040_COEX
1874
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001875#features specific to mobile router use case
1876ifeq ($(CONFIG_MOBILE_ROUTER), y)
1877
1878#enable MCC TO SCC switch
1879CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
1880
1881#enable wlan auto shutdown feature
1882CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN
1883
1884#enable for MBSSID
1885CDEFINES += -DWLAN_FEATURE_MBSSID
1886
1887#enable AP-AP ACS Optimization
1888CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
1889
1890#Enable 4address scheme
1891CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME
1892
1893#Disable STA-AP Mode DFS support
1894CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
1895
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001896else #CONFIG_MOBILE_ROUTER
1897
1898#Open P2P device interface only for non-Mobile router use cases
1899CDEFINES += -DWLAN_OPEN_P2P_INTERFACE
1900
1901#Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
1902CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
1903
1904endif #CONFIG_MOBILE_ROUTER
1905
1906#Green AP feature
1907ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
1908CDEFINES += -DFEATURE_GREEN_AP
1909endif
1910
Yun Park637d6482016-10-05 10:51:33 -07001911#Stats & Quota Metering feature
1912ifeq ($(CONFIG_QCACLD_FEATURE_METERING),y)
1913CDEFINES += -DFEATURE_METERING
1914endif
1915
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001916#Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform"
1917ifneq ($(CONFIG_ARCH_MDM9630), y)
1918ifeq ($(CONFIG_HIF_PCI), 1)
1919CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
1920endif
1921endif
1922
Yu Wang66e4ff22017-02-15 19:09:24 +08001923ifeq ($(CONFIG_ARCH_MDM9607), y)
1924CDEFINES += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
1925endif
1926
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001927#Enable Signed firmware support for split binary format
1928ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1)
1929CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
1930endif
1931
1932#Enable single firmware binary format
1933ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1)
1934CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT
1935endif
1936
1937#Enable collecting target RAM dump after kernel panic
1938ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1)
1939CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
1940endif
1941
1942#Enable/disable secure firmware feature
1943ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1)
1944CDEFINES += -DFEATURE_SECURE_FIRMWARE
1945endif
1946
1947ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1)
1948CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
1949endif
1950
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001951# Enable feature support fo Linux version QCMBR
1952ifeq ($(CONFIG_LINUX_QCMBR),y)
1953CDEFINES += -DLINUX_QCMBR
1954endif
1955
Manikandan Mohandcc21ba2016-03-15 14:31:56 -07001956# Enable featue sync tsf between multi devices
1957ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
1958CDEFINES += -DWLAN_FEATURE_TSF
1959endif
Rajeev Kumare0fd9dd2015-11-16 13:33:07 -08001960
1961# Enable full rx re-order offload for adrastea
1962ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1963CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
1964endif
1965
Rajeev Kumar321a19a2015-12-08 12:54:46 -08001966# Enable athdiag procfs debug support for adrastea
1967ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1968CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1969endif
1970
Rajeev Kumar9c4809e2016-01-13 18:32:40 -08001971# Enable 11AC TX compact feature for adrastea
1972ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1973CDEFINES += -DATH_11AC_TXCOMPACT
1974endif
1975
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001976# NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS
1977ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
1978CONFIG_HELIUMPLUS := y
1979CONFIG_64BIT_PADDR := y
1980CONFIG_FEATURE_TSO := y
1981CONFIG_FEATURE_TSO_DEBUG := y
1982ifeq ($(CONFIG_HELIUMPLUS),y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001983CDEFINES += -DHELIUMPLUS
Dhanashri Atre48c2ae62015-12-15 18:07:10 -08001984CDEFINES += -DAR900B
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001985ifeq ($(CONFIG_64BIT_PADDR),y)
1986CDEFINES += -DHTT_PADDR64
1987endif
1988endif
1989endif
1990
1991ifeq ($(CONFIG_FEATURE_TSO),y)
1992CDEFINES += -DFEATURE_TSO
1993endif
1994ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y)
1995CDEFINES += -DFEATURE_TSO_DEBUG
1996endif
1997
1998ifeq ($(CONFIG_WLAN_LRO), y)
1999CDEFINES += -DFEATURE_LRO
2000endif
2001
2002ifeq ($(CONFIG_MOBILE_ROUTER), y)
2003CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
2004endif
2005
2006ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
2007CDEFINES += -DMPC_UT_FRAMEWORK
2008endif
2009
2010ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y)
2011CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS
2012endif
2013
2014ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
2015CDEFINES += -DWLAN_FEATURE_MEMDUMP
2016endif
2017
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +05302018ifeq ($(CONFIG_WLAN_FEATURE_DISA),y)
2019CDEFINES += -DWLAN_FEATURE_DISA
2020endif
2021
Ravi Joshi61c3c7a2015-11-09 18:41:20 -08002022ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
2023CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION
2024endif
2025
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +05302026ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y)
2027CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
2028endif
2029
Ravi Joshia063dd92016-05-25 16:43:13 -07002030ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
2031CDEFINES += -DWLAN_FEATURE_NAN_DATAPATH
2032endif
2033
Naveen Rawat6d2bf182017-03-22 10:18:00 -07002034ifeq ($(CONFIG_NAN_CONVERGENCE), y)
2035CDEFINES += -DWLAN_FEATURE_NAN_CONVERGENCE
2036endif
2037
Leo Chang5f7a1e02016-11-04 14:04:26 -07002038ifeq ($(CONFIG_LITHIUM),y)
Houston Hoffman06fd5662017-02-08 21:41:20 -08002039CDEFINES += -DCONFIG_SHADOW_V2
Aravind Narasimhan4ed314d2016-11-14 16:56:42 -08002040CDEFINES += -DQCA6290_HEADERS_DEF
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08002041CDEFINES += -DQCA_WIFI_QCA6290
Leo Chang5f7a1e02016-11-04 14:04:26 -07002042CDEFINES += -DQCA_WIFI_QCA8074
Leo Chang395cbb52016-11-11 14:35:03 -08002043CDEFINES += -DQCA_WIFI_NAPIER_EMULATION
Leo Chang5f7a1e02016-11-04 14:04:26 -07002044CDEFINES += -DQCA_WIFI_QCA8074_VP
Ravi Joshifc2ed782016-11-22 17:36:50 -08002045CDEFINES += -DDP_INTR_POLL_BASED
Ravi Joshifa5536f2017-02-14 12:25:09 -08002046CDEFINES += -DTX_PER_PDEV_DESC_POOL
Dhanashri Atre2f507a72017-03-28 13:52:29 -07002047CDEFINES += -DWLAN_RX_HASH
Pramod Simha707a3562017-03-22 13:15:37 -07002048CDEFINES += -DDP_LFR
Leo Chang5f7a1e02016-11-04 14:04:26 -07002049endif
2050
Krishna Kumaar Natarajan639c6ff2017-02-13 14:01:04 -08002051ifeq ($(CONFIG_WLAN_FEATURE_11AX),y)
2052CDEFINES += -DWLAN_FEATURE_11AX
2053endif
2054
Leo Chang5f7a1e02016-11-04 14:04:26 -07002055# Dummy flag for WIN/MCL converged data path compilation
2056CDEFINES += -DDP_PRINT_ENABLE=0
2057CDEFINES += -DATH_SUPPORT_WRAP=0
Dhanashri Atre33e147e2017-01-20 14:52:18 -08002058CDEFINES += -DQCA_HOST2FW_RXBUF_RING
Leo Chang5f7a1e02016-11-04 14:04:26 -07002059#endof dummy flags
2060
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -07002061ifeq ($(CONFIG_WLAN_DEBUGFS), y)
2062CDEFINES += -DWLAN_DEBUGFS
2063endif
2064
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002065KBUILD_CPPFLAGS += $(CDEFINES)
2066
2067# Currently, for versions of gcc which support it, the kernel Makefile
2068# is disabling the maybe-uninitialized warning. Re-enable it for the
2069# WLAN driver. Note that we must use EXTRA_CFLAGS here so that it
2070# will override the kernel settings.
2071ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
2072EXTRA_CFLAGS += -Wmaybe-uninitialized
Leo Chang5f7a1e02016-11-04 14:04:26 -07002073ifneq (y,$(CONFIG_ARCH_MSM))
2074EXTRA_CFLAGS += -Wframe-larger-than=4096
2075endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002076endif
Jeff Johnson522db002016-10-05 16:30:41 -07002077EXTRA_CFLAGS += -Wmissing-prototypes
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002078
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002079ifeq ($(call cc-option-yn, -Wheader-guard),y)
2080EXTRA_CFLAGS += -Wheader-guard
2081endif
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302082# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
Yu Wang66e4ff22017-02-15 19:09:24 +08002083# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302084# any string that must be unique for all instances of the driver on the system.
2085# This allows multiple instances of the driver with different module names.
2086# If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
2087# treat the driver as the primary driver.
2088ifneq ($(MODNAME), wlan)
Yu Wang66e4ff22017-02-15 19:09:24 +08002089CHIP_NAME ?= $(MODNAME)
2090CDEFINES += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05302091endif
2092
2093# WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
2094# system. If it is not defined, then the host driver will use the first 4
2095# characters (including NULL) of MULTI_IF_NAME to construct
2096# WLAN_HDD_ADAPTER_MAGIC.
2097ifdef WLAN_HDD_ADAPTER_MAGIC
2098CDEFINES += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
2099endif
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08002100
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002101# Module information used by KBuild framework
2102obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
2103$(MODNAME)-y := $(OBJS)