blob: b090b9ab2468b6e4a5e9638234b6a6e5c3135764 [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
11endif
Leo Chang5f7a1e02016-11-04 14:04:26 -070012
Poddar, Siddarth29296fb2016-05-16 18:06:30 +053013ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y)
14 CONFIG_QCA_WIFI_SDIO := 1
15endif
16
17ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
18 CONFIG_ROME_IF = sdio
19endif
20
Houston Hoffman57d10c22016-03-08 13:04:20 -080021ifdef CONFIG_ICNSS
22 CONFIG_ROME_IF = snoc
23endif
24
Yue Mae6a7a322016-08-31 11:09:23 -070025ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080026ifndef CONFIG_ROME_IF
27 #use pci as default interface
28 CONFIG_ROME_IF = pci
29endif
30endif
31
32ifeq ($(KERNEL_BUILD),1)
33 # These are provided in external module based builds
34 # Need to explicitly define for Kernel-based builds
35 MODNAME := wlan
36 WLAN_ROOT := drivers/staging/qcacld-3.0
Houston Hoffman52ec6692016-04-21 16:36:45 -070037 WLAN_COMMON_ROOT := ../qca-wifi-host-cmn
38 WLAN_COMMON_INC := $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080039endif
40
41# Make WLAN as open-source driver by default
42WLAN_OPEN_SOURCE := 1
43
44ifeq ($(KERNEL_BUILD), 0)
45 # These are configurable via Kconfig for kernel-based builds
46 # Need to explicitly configure for Android-based builds
47
48 ifeq ($(CONFIG_ARCH_MDM9630), y)
49 CONFIG_MOBILE_ROUTER := y
50 endif
51
52 ifeq ($(CONFIG_ARCH_MDM9640), y)
53 CONFIG_MOBILE_ROUTER := y
54 endif
55
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +053056 # As per target team, build is done as follows:
57 # Defconfig : build with default flags
58 # Slub : defconfig + CONFIG_SLUB_DEBUG=y +
59 # CONFIG_SLUB_DEBUG_ON=y + CONFIG_PAGE_POISONING=y
60 # Perf : Using appropriate msmXXXX-perf_defconfig
61 #
62 # Shipment builds (user variants) should not have any debug feature
63 # enabled. This is identified using 'TARGET_BUILD_VARIANT'. Slub builds
64 # are identified using the CONFIG_SLUB_DEBUG_ON configuration. Since
65 # there is no other way to identify defconfig builds, QCOMs internal
66 # representation of perf builds (identified using the string 'perf'),
67 # is used to identify if the build is a slub or defconfig one. This
68 # way no critical debug feature will be enabled for perf and shipment
69 # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT
70 # config.
71 ifneq ($(TARGET_BUILD_VARIANT),user)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -080072 ifeq ($(CONFIG_LITHIUM), y)
Ravi Joshifc2ed782016-11-22 17:36:50 -080073 CONFIG_FEATURE_PKTLOG := n
74 else
75 CONFIG_FEATURE_PKTLOG := y
76 endif
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +053077 ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
Nirav Shahcc1f1ae2016-04-26 11:41:29 +053078 CONFIG_FEATURE_DP_TRACE := y
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +053079 else
80 ifeq ($(findstring perf,$(KERNEL_DEFCONFIG)),)
Nirav Shahcc1f1ae2016-04-26 11:41:29 +053081 CONFIG_FEATURE_DP_TRACE := y
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +053082 endif
83 endif
84 endif
85
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -080086 #Flag to enable Legacy Fast Roaming2(LFR2)
87 CONFIG_QCACLD_WLAN_LFR2 := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080088 #Flag to enable Legacy Fast Roaming3(LFR3)
89 CONFIG_QCACLD_WLAN_LFR3 := y
90
Sridhar Selvarajdc400d22016-10-18 17:18:03 +053091 #Enable Power debugfs feature only if debug_fs is enabled
92 ifeq ($(CONFIG_DEBUG_FS), y)
93 CONFIG_WLAN_POWER_DEBUGFS := y
94 endif
95
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080096 # JB kernel has CPU enablement patches, so enable
97 ifeq ($(CONFIG_ROME_IF),pci)
98 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y
99 endif
100 ifeq ($(CONFIG_ROME_IF),usb)
101 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
102 endif
103 ifeq ($(CONFIG_ROME_IF),sdio)
104 CONFIG_PRIMA_WLAN_11AC_HIGH_TP := n
105 endif
106
107 ifneq ($(CONFIG_MOBILE_ROUTER), y)
108 #Flag to enable TDLS feature
109 CONFIG_QCOM_TDLS := y
110 endif
111
112 ifeq ($(CONFIG_MOBILE_ROUTER), y)
113 CONFIG_QCACLD_FEATURE_GREEN_AP := y
114 endif
Ashwini Muduganti79649822016-11-16 11:29:50 -0800115 ifeq ($(CONFIG_ARCH_MSM8998), y)
Jeff Johnsona6300252016-09-28 15:58:55 -0700116 CONFIG_QCACLD_FEATURE_GREEN_AP := y
117 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800118
Poddar, Siddarth1bec7ae2017-01-24 18:02:31 +0530119 ifeq ($(CONFIG_ARCH_SDM660), y)
120 CONFIG_QCACLD_FEATURE_METERING := y
121 endif
122
123 ifeq ($(CONFIG_ARCH_SDM630), y)
124 CONFIG_QCACLD_FEATURE_METERING := y
125 endif
126
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800127 #Flag to enable Fast Transition (11r) feature
128 CONFIG_QCOM_VOWIFI_11R := y
129
130 ifneq ($(CONFIG_QCA_CLD_WLAN),)
Yue Mae6a7a322016-08-31 11:09:23 -0700131 ifeq (y,$(findstring y,$(CONFIG_CNSS) $(CONFIG_CNSS2) $(CONFIG_ICNSS)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800132 #Flag to enable Protected Managment Frames (11w) feature
133 CONFIG_WLAN_FEATURE_11W := y
134 #Flag to enable LTE CoEx feature
135 CONFIG_QCOM_LTE_COEX := y
136 ifneq ($(CONFIG_MOBILE_ROUTER), y)
137 #Flag to enable LPSS feature
138 CONFIG_WLAN_FEATURE_LPSS := y
139 endif
140 endif
141 endif
142
Ravi Joshia063dd92016-05-25 16:43:13 -0700143 #Flag to enable Protected Managment Frames (11w) feature
144 ifeq ($(CONFIG_ROME_IF),usb)
145 CONFIG_WLAN_FEATURE_11W := y
146 endif
147 ifeq ($(CONFIG_ROME_IF),sdio)
148 CONFIG_WLAN_FEATURE_11W := y
149 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800150
gbiane55c9562016-11-01 14:47:47 +0800151 #Flag to enable the tx desc sanity check
152 ifeq ($(CONFIG_ROME_IF),usb)
153 CONFIG_QCA_TXDESC_SANITY_CHECKS := y
154 endif
155
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800156 ifneq ($(CONFIG_MOBILE_ROUTER), y)
157 #Flag to enable NAN
158 CONFIG_QCACLD_FEATURE_NAN := y
159 endif
160
Ravi Joshia063dd92016-05-25 16:43:13 -0700161 ifneq ($(CONFIG_MOBILE_ROUTER), y)
162 #Flag to enable NAN Data path
163 CONFIG_WLAN_FEATURE_NAN_DATAPATH := y
164 endif
165
166 #Flag to enable Linux QCMBR feature as default feature
167 ifeq ($(CONFIG_ROME_IF),usb)
168 CONFIG_LINUX_QCMBR :=y
169 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800170
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800171 CONFIG_MPC_UT_FRAMEWORK := y
172
173 #Flag to enable offload packets feature
174 CONFIG_WLAN_OFFLOAD_PACKETS := y
175
Manikandan Mohan5356c2b2016-04-03 15:51:35 -0700176 #enable TSF get feature
177 CONFIG_WLAN_SYNC_TSF := y
Agrawal Ashishb141b092016-09-02 19:59:26 +0530178 #Enable DSRC feature
179
180 ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
181 CONFIG_WLAN_FEATURE_DSRC := y
182 endif
Manikandan Mohan5356c2b2016-04-03 15:51:35 -0700183
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530184ifneq ($(CONFIG_ROME_IF),sdio)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800185 #Flag to enable memdump feature
Krishna Kumaar Natarajane42bb172016-06-09 18:24:04 -0700186 CONFIG_WLAN_FEATURE_MEMDUMP := n
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800187
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530188 #Flag to enable DISA
189 CONFIG_WLAN_FEATURE_DISA := y
190
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800191 #Flag to enable Fast Path feature
192 CONFIG_WLAN_FASTPATH := y
193
194 # Flag to enable NAPI
Leo Chang395cbb52016-11-11 14:35:03 -0800195ifeq (y,$(CONFIG_LITHIUM))
Leo Chang5f7a1e02016-11-04 14:04:26 -0700196 CONFIG_WLAN_NAPI := n
197 CONFIG_WLAN_NAPI_DEBUG := n
198else
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800199 CONFIG_WLAN_NAPI := y
200 CONFIG_WLAN_NAPI_DEBUG := n
Leo Chang5f7a1e02016-11-04 14:04:26 -0700201endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800202 # Flag to enable FW based TX Flow control
Nirav Shah9d7f2e82015-09-28 11:09:09 -0700203 ifeq ($(CONFIG_CNSS_EOS),y)
204 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
205 else
206 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := n
207 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800208
209 # Flag to enable LRO (Large Receive Offload)
Manjunathappa Prakashbeeacb12016-06-17 18:18:32 -0700210 ifeq ($(CONFIG_INET_LRO), y)
Tang Yingying4c0e83e2017-01-19 17:10:39 +0800211 ifeq ($(VERSION), 4)
212 CONFIG_WLAN_LRO := y
213 else
214 CONFIG_WLAN_LRO := n
215 endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800216 endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530217endif
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800218
Manjunathappa Prakashfa345992016-04-21 16:45:40 -0700219ifeq ($(CONFIG_ROME_IF), snoc)
220 CONFIG_WLAN_TX_FLOW_CONTROL_V2 := y
221endif
222
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800223 # Flag to enable LFR Subnet Detection
224 CONFIG_LFR_SUBNET_DETECTION := y
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +0530225
226 # Flag to enable MCC to SCC switch feature
227 CONFIG_MCC_TO_SCC_SWITCH := y
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700228
229ifeq ($(CONFIG_DEBUG_FS), y)
230 # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel
231 # configuration.
232 CONFIG_WLAN_DEBUGFS := y
233endif
234
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800235endif
236
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800237# If not set, assume, Common driver is with in the build tree
238WLAN_COMMON_ROOT ?= qca-wifi-host-cmn
239WLAN_COMMON_INC ?= $(WLAN_ROOT)/$(WLAN_COMMON_ROOT)
240
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800241ifneq ($(CONFIG_MOBILE_ROUTER), y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800242CONFIG_QCOM_ESE := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800243endif
244
245# Feature flags which are not (currently) configurable via Kconfig
246
247#Whether to build debug version
248BUILD_DEBUG_VERSION := 1
249
250#Enable this flag to build driver in diag version
251BUILD_DIAG_VERSION := 1
252
253#Do we panic on bug? default is to warn
254PANIC_ON_BUG := 1
255
256#Enable OL debug and wmi unified functions
257CONFIG_ATH_PERF_PWR_OFFLOAD := 1
258
259#Disable packet log
260CONFIG_REMOVE_PKT_LOG := 0
261
262#Enable 11AC TX
263ifeq ($(CONFIG_ROME_IF),pci)
264 CONFIG_ATH_11AC_TXCOMPACT := 1
265endif
266ifeq ($(CONFIG_ROME_IF),usb)
267 CONFIG_ATH_11AC_TXCOMPACT := 0
268endif
269
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800270#Enable OS specific IRQ abstraction
271CONFIG_ATH_SUPPORT_SHARED_IRQ := 1
272
273#Enable message based HIF instead of RAW access in BMI
274ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
275CONFIG_HIF_MESSAGE_BASED := 0
276else
277CONFIG_HIF_MESSAGE_BASED := 1
278endif
279
280#Enable PCI specific APIS (dma, etc)
281ifeq ($(CONFIG_ROME_IF),pci)
282 CONFIG_HIF_PCI := 1
283endif
284
Mohit Khannada4f4432016-05-17 15:02:09 -0700285#Enable USB specific APIS
286ifeq ($(CONFIG_ROME_IF),usb)
287 CONFIG_HIF_USB := 1
Mohit Khannae7a43572016-10-10 17:34:21 -0700288 CONFIG_PLD_USB_CNSS := y
Mohit Khannada4f4432016-05-17 15:02:09 -0700289endif
290
Yu Wang58e1cad2017-02-10 17:43:15 +0800291#Enable SDIO specific APIS
292ifeq ($(CONFIG_ROME_IF),sdio)
293 CONFIG_HIF_SDIO := 1
294endif
295
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800296#Enable pci read/write config functions
297ifeq ($(CONFIG_ROME_IF),pci)
298 CONFIG_ATH_PCI := 1
299endif
Houston Hoffman52ec6692016-04-21 16:36:45 -0700300
301ifeq ($(CONFIG_ROME_IF),snoc)
302 CONFIG_HIF_SNOC:= 1
303endif
304
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800305ifneq ($(CONFIG_MOBILE_ROUTER), y)
306#Enable IBSS support on CLD
307CONFIG_QCA_IBSS_SUPPORT := 1
308endif
309
310#Enable power management suspend/resume functionality to PCI
311CONFIG_ATH_BUS_PM := 1
312
313#Enable FLOWMAC module support
314CONFIG_ATH_SUPPORT_FLOWMAC_MODULE := 0
315
316#Enable spectral support
317CONFIG_ATH_SUPPORT_SPECTRAL := 0
318
319#Enable HOST statistics support
320CONFIG_SUPPORT_HOST_STATISTICS := 0
321
322#Enable WDI Event support
323CONFIG_WDI_EVENT_ENABLE := 1
324
325#Endianess selection
326CONFIG_LITTLE_ENDIAN := 1
327
328#Enable TX reclaim support
329CONFIG_TX_CREDIT_RECLAIM_SUPPORT := 0
330
331#Enable FTM support
332CONFIG_QCA_WIFI_FTM := 1
333
334#Enable Checksum Offload
335CONFIG_CHECKSUM_OFFLOAD := 1
336
337#Enable GTK offload
338CONFIG_GTK_OFFLOAD := 1
339
340#Enable EXT WOW
341ifeq ($(CONFIG_ROME_IF),pci)
342 CONFIG_EXT_WOW := 1
343endif
344
Houston Hoffman1158c0a2016-07-11 18:24:36 -0700345# Flag to enable bus auto suspend
346ifeq ($(CONFIG_ROME_IF),pci)
347ifeq ($(CONFIG_BUS_AUTO_SUSPEND), y)
348CDEFINES += -DFEATURE_RUNTIME_PM
349endif
350endif
351
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800352#Set this to 1 to catch erroneous Target accesses during debug.
353CONFIG_ATH_PCIE_ACCESS_DEBUG := 0
354
355#Enable IPA offload
356ifeq ($(CONFIG_IPA), y)
357CONFIG_IPA_OFFLOAD := 1
358endif
359
360#Enable Signed firmware support for split binary format
361CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := 0
362
363#Enable single firmware binary format
364CONFIG_QCA_SINGLE_BINARY_SUPPORT := 0
365
366#Enable collecting target RAM dump after kernel panic
367CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC := 1
368
369#Flag to enable/disable secure firmware feature
370CONFIG_FEATURE_SECURE_FIRMWARE := 0
371
372#Flag to enable Stats Ext implementation
373CONFIG_FEATURE_STATS_EXT := 1
374
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800375ifeq ($(CONFIG_CFG80211),y)
376HAVE_CFG80211 := 1
377else
378ifeq ($(CONFIG_CFG80211),m)
379HAVE_CFG80211 := 1
380else
381HAVE_CFG80211 := 0
382endif
383endif
384
385############ UAPI ############
386UAPI_DIR := uapi
387UAPI_INC := -I$(WLAN_ROOT)/$(UAPI_DIR)/linux
388
389############ COMMON ############
390COMMON_DIR := core/common
391COMMON_INC := -I$(WLAN_ROOT)/$(COMMON_DIR)
392
393############ HDD ############
394HDD_DIR := core/hdd
395HDD_INC_DIR := $(HDD_DIR)/inc
396HDD_SRC_DIR := $(HDD_DIR)/src
397
398HDD_INC := -I$(WLAN_ROOT)/$(HDD_INC_DIR) \
399 -I$(WLAN_ROOT)/$(HDD_SRC_DIR)
400
401HDD_OBJS := $(HDD_SRC_DIR)/wlan_hdd_assoc.o \
402 $(HDD_SRC_DIR)/wlan_hdd_cfg.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800403 $(HDD_SRC_DIR)/wlan_hdd_driver_ops.o \
404 $(HDD_SRC_DIR)/wlan_hdd_ftm.o \
405 $(HDD_SRC_DIR)/wlan_hdd_hostapd.o \
406 $(HDD_SRC_DIR)/wlan_hdd_ioctl.o \
407 $(HDD_SRC_DIR)/wlan_hdd_main.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800408 $(HDD_SRC_DIR)/wlan_hdd_oemdata.o \
409 $(HDD_SRC_DIR)/wlan_hdd_power.o \
Amar Singhale4f28ee2015-10-21 14:36:56 -0700410 $(HDD_SRC_DIR)/wlan_hdd_regulatory.o \
Jeff Johnsona2d9bb32017-01-18 13:23:24 -0800411 $(HDD_SRC_DIR)/wlan_hdd_request_manager.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800412 $(HDD_SRC_DIR)/wlan_hdd_scan.o \
413 $(HDD_SRC_DIR)/wlan_hdd_softap_tx_rx.o \
414 $(HDD_SRC_DIR)/wlan_hdd_tx_rx.o \
415 $(HDD_SRC_DIR)/wlan_hdd_trace.o \
416 $(HDD_SRC_DIR)/wlan_hdd_wext.o \
417 $(HDD_SRC_DIR)/wlan_hdd_wmm.o \
Rajeev Kumar699debf2017-01-06 14:17:00 -0800418 $(HDD_SRC_DIR)/wlan_hdd_wowl.o \
419 $(HDD_SRC_DIR)/wlan_hdd_object_manager.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800420
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700421ifeq ($(CONFIG_WLAN_DEBUGFS), y)
422HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_debugfs.o
423endif
424
Agrawal Ashishb141b092016-09-02 19:59:26 +0530425ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
426HDD_OBJS+= $(HDD_SRC_DIR)/wlan_hdd_ocb.o
427endif
Amar Singhale4f28ee2015-10-21 14:36:56 -0700428
Jeff Johnson2b0a7b82016-05-18 15:08:02 -0700429ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
430HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lpass.o
431endif
432
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800433ifeq ($(CONFIG_WLAN_LRO), y)
434HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_lro.o
435endif
436
437ifeq ($(CONFIG_WLAN_NAPI), y)
438HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_napi.o
439endif
440
441ifeq ($(CONFIG_IPA_OFFLOAD), 1)
442HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_ipa.o
443endif
444
445ifeq ($(HAVE_CFG80211),1)
446HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_cfg80211.o \
447 $(HDD_SRC_DIR)/wlan_hdd_ext_scan.o \
448 $(HDD_SRC_DIR)/wlan_hdd_stats.o \
449 $(HDD_SRC_DIR)/wlan_hdd_p2p.o
450endif
451
452ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
453HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_green_ap.o
454endif
455
456ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
457HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan.o
458endif
459
460ifeq ($(CONFIG_QCOM_TDLS),y)
461HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
462endif
463
Manikandan Mohandcc21ba2016-03-15 14:31:56 -0700464ifeq ($(CONFIG_WLAN_SYNC_TSF),y)
465HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
466endif
467
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800468ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
469HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_conc_ut.o
470endif
471
472ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
473HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_memdump.o
474endif
475
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +0530476ifeq ($(CONFIG_WLAN_FEATURE_DISA),y)
477HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_disa.o
478endif
479
Ravi Joshi61c3c7a2015-11-09 18:41:20 -0800480ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
481HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_subnet_detect.o
482endif
483
Ravi Joshia063dd92016-05-25 16:43:13 -0700484ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
485HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_nan_datapath.o
486endif
487
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800488########### HOST DIAG LOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800489HOST_DIAG_LOG_DIR := $(WLAN_COMMON_ROOT)/utils/host_diag_log
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800490
491HOST_DIAG_LOG_INC_DIR := $(HOST_DIAG_LOG_DIR)/inc
492HOST_DIAG_LOG_SRC_DIR := $(HOST_DIAG_LOG_DIR)/src
493
494HOST_DIAG_LOG_INC := -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
495 -I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
496
497HOST_DIAG_LOG_OBJS += $(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
498
499############ EPPING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800500EPPING_DIR := $(WLAN_COMMON_ROOT)/utils/epping
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800501EPPING_INC_DIR := $(EPPING_DIR)/inc
502EPPING_SRC_DIR := $(EPPING_DIR)/src
503
504EPPING_INC := -I$(WLAN_ROOT)/$(EPPING_INC_DIR)
505
506EPPING_OBJS := $(EPPING_SRC_DIR)/epping_main.o \
507 $(EPPING_SRC_DIR)/epping_txrx.o \
508 $(EPPING_SRC_DIR)/epping_tx.o \
509 $(EPPING_SRC_DIR)/epping_rx.o \
510 $(EPPING_SRC_DIR)/epping_helper.o \
511
512
513############ MAC ############
514MAC_DIR := core/mac
515MAC_INC_DIR := $(MAC_DIR)/inc
516MAC_SRC_DIR := $(MAC_DIR)/src
517
518MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
519 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/dph \
520 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/include \
521 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/include \
Ravi Joshia063dd92016-05-25 16:43:13 -0700522 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/lim \
523 -I$(WLAN_ROOT)/$(MAC_SRC_DIR)/pe/nan
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800524
525MAC_CFG_OBJS := $(MAC_SRC_DIR)/cfg/cfg_api.o \
526 $(MAC_SRC_DIR)/cfg/cfg_debug.o \
527 $(MAC_SRC_DIR)/cfg/cfg_param_name.o \
528 $(MAC_SRC_DIR)/cfg/cfg_proc_msg.o \
529 $(MAC_SRC_DIR)/cfg/cfg_send_msg.o
530
531MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
532
533MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
534 $(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
535 $(MAC_SRC_DIR)/pe/lim/lim_api.o \
536 $(MAC_SRC_DIR)/pe/lim/lim_assoc_utils.o \
537 $(MAC_SRC_DIR)/pe/lim/lim_debug.o \
538 $(MAC_SRC_DIR)/pe/lim/lim_ft.o \
539 $(MAC_SRC_DIR)/pe/lim/lim_ibss_peer_mgmt.o \
540 $(MAC_SRC_DIR)/pe/lim/lim_link_monitoring_algo.o \
541 $(MAC_SRC_DIR)/pe/lim/lim_p2p.o \
542 $(MAC_SRC_DIR)/pe/lim/lim_process_action_frame.o \
543 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_req_frame.o \
544 $(MAC_SRC_DIR)/pe/lim/lim_process_assoc_rsp_frame.o \
545 $(MAC_SRC_DIR)/pe/lim/lim_process_auth_frame.o \
546 $(MAC_SRC_DIR)/pe/lim/lim_process_beacon_frame.o \
547 $(MAC_SRC_DIR)/pe/lim/lim_process_cfg_updates.o \
548 $(MAC_SRC_DIR)/pe/lim/lim_process_deauth_frame.o \
549 $(MAC_SRC_DIR)/pe/lim/lim_process_disassoc_frame.o \
550 $(MAC_SRC_DIR)/pe/lim/lim_process_message_queue.o \
551 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_req_messages.o \
552 $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_rsp_messages.o \
553 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_req_frame.o \
554 $(MAC_SRC_DIR)/pe/lim/lim_process_probe_rsp_frame.o \
555 $(MAC_SRC_DIR)/pe/lim/lim_process_sme_req_messages.o \
556 $(MAC_SRC_DIR)/pe/lim/lim_prop_exts_utils.o \
557 $(MAC_SRC_DIR)/pe/lim/lim_scan_result_utils.o \
558 $(MAC_SRC_DIR)/pe/lim/lim_security_utils.o \
559 $(MAC_SRC_DIR)/pe/lim/lim_send_management_frames.o \
560 $(MAC_SRC_DIR)/pe/lim/lim_send_messages.o \
561 $(MAC_SRC_DIR)/pe/lim/lim_send_sme_rsp_messages.o \
562 $(MAC_SRC_DIR)/pe/lim/lim_ser_des_utils.o \
563 $(MAC_SRC_DIR)/pe/lim/lim_session.o \
564 $(MAC_SRC_DIR)/pe/lim/lim_session_utils.o \
565 $(MAC_SRC_DIR)/pe/lim/lim_sme_req_utils.o \
566 $(MAC_SRC_DIR)/pe/lim/lim_sta_hash_api.o \
567 $(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
568 $(MAC_SRC_DIR)/pe/lim/lim_trace.o \
569 $(MAC_SRC_DIR)/pe/lim/lim_utils.o
570
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800571ifeq ($(CONFIG_QCOM_TDLS),y)
572MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o
573endif
574
Ravi Joshia063dd92016-05-25 16:43:13 -0700575ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
576MAC_NDP_OBJS += $(MAC_SRC_DIR)/pe/nan/nan_datapath.o
577endif
578
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800579ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
580 MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_mlm_host_roam.o \
581 $(MAC_SRC_DIR)/pe/lim/lim_send_frames_host_roam.o \
582 $(MAC_SRC_DIR)/pe/lim/lim_roam_timer_utils.o \
583 $(MAC_SRC_DIR)/pe/lim/lim_ft_preauth.o \
584 $(MAC_SRC_DIR)/pe/lim/lim_reassoc_utils.o
585endif
586
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800587MAC_SCH_OBJS := $(MAC_SRC_DIR)/pe/sch/sch_api.o \
588 $(MAC_SRC_DIR)/pe/sch/sch_beacon_gen.o \
589 $(MAC_SRC_DIR)/pe/sch/sch_beacon_process.o \
590 $(MAC_SRC_DIR)/pe/sch/sch_debug.o \
591 $(MAC_SRC_DIR)/pe/sch/sch_message.o
592
593MAC_RRM_OBJS := $(MAC_SRC_DIR)/pe/rrm/rrm_api.o
594
595MAC_OBJS := $(MAC_CFG_OBJS) \
596 $(MAC_DPH_OBJS) \
597 $(MAC_LIM_OBJS) \
598 $(MAC_SCH_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700599 $(MAC_RRM_OBJS) \
600 $(MAC_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800601
602############ SAP ############
603SAP_DIR := core/sap
604SAP_INC_DIR := $(SAP_DIR)/inc
605SAP_SRC_DIR := $(SAP_DIR)/src
606
607SAP_INC := -I$(WLAN_ROOT)/$(SAP_INC_DIR) \
608 -I$(WLAN_ROOT)/$(SAP_SRC_DIR)
609
610SAP_OBJS := $(SAP_SRC_DIR)/sap_api_link_cntl.o \
611 $(SAP_SRC_DIR)/sap_ch_select.o \
612 $(SAP_SRC_DIR)/sap_fsm.o \
613 $(SAP_SRC_DIR)/sap_module.o
614
615############ DFS ############ 350
616DFS_DIR := $(SAP_DIR)/dfs
617DFS_INC_DIR := $(DFS_DIR)/inc
618DFS_SRC_DIR := $(DFS_DIR)/src
619
620DFS_INC := -I$(WLAN_ROOT)/$(DFS_INC_DIR) \
621 -I$(WLAN_ROOT)/$(DFS_SRC_DIR)
622
623DFS_OBJS := $(DFS_SRC_DIR)/dfs_bindetects.o \
624 $(DFS_SRC_DIR)/dfs.o \
625 $(DFS_SRC_DIR)/dfs_debug.o\
626 $(DFS_SRC_DIR)/dfs_fcc_bin5.o\
627 $(DFS_SRC_DIR)/dfs_init.o\
628 $(DFS_SRC_DIR)/dfs_misc.o\
629 $(DFS_SRC_DIR)/dfs_nol.o\
630 $(DFS_SRC_DIR)/dfs_phyerr_tlv.o\
631 $(DFS_SRC_DIR)/dfs_process_phyerr.o\
632 $(DFS_SRC_DIR)/dfs_process_radarevent.o\
633 $(DFS_SRC_DIR)/dfs_staggered.o
634
635############ SME ############
636SME_DIR := core/sme
637SME_INC_DIR := $(SME_DIR)/inc
638SME_SRC_DIR := $(SME_DIR)/src
639
640SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
641 -I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
642
643SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
644 $(SME_SRC_DIR)/csr/csr_api_scan.o \
645 $(SME_SRC_DIR)/csr/csr_cmd_process.o \
646 $(SME_SRC_DIR)/csr/csr_link_list.o \
647 $(SME_SRC_DIR)/csr/csr_neighbor_roam.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800648 $(SME_SRC_DIR)/csr/csr_util.o \
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800649
650
651ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
652SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_roam_preauth.o \
Varun Reddy Yeturu86459d62016-02-22 10:07:02 -0800653 $(SME_SRC_DIR)/csr/csr_host_scan_roam.o
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -0800654endif
655
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800656
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800657ifeq ($(CONFIG_QCOM_TDLS),y)
658SME_CSR_OBJS += $(SME_SRC_DIR)/csr/csr_tdls_process.o
659endif
660
661SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
662
663SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
664 $(SME_SRC_DIR)/common/sme_ft_api.o \
665 $(SME_SRC_DIR)/common/sme_power_save.o \
666 $(SME_SRC_DIR)/common/sme_trace.o
667
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800668SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_api.o
669
670SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
671
672ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
673SME_NAN_OBJS = $(SME_SRC_DIR)/nan/nan_api.o
674endif
675
Ravi Joshia063dd92016-05-25 16:43:13 -0700676ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
677SME_NDP_OBJS += $(SME_SRC_DIR)/nan/nan_datapath_api.o
678endif
679
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800680SME_OBJS := $(SME_CMN_OBJS) \
681 $(SME_CSR_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800682 $(SME_P2P_OBJS) \
683 $(SME_QOS_OBJS) \
684 $(SME_RRM_OBJS) \
Ravi Joshia063dd92016-05-25 16:43:13 -0700685 $(SME_NAN_OBJS) \
686 $(SME_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800687
688############ NLINK ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800689NLINK_DIR := $(WLAN_COMMON_ROOT)/utils/nlink
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800690NLINK_INC_DIR := $(NLINK_DIR)/inc
691NLINK_SRC_DIR := $(NLINK_DIR)/src
692
693NLINK_INC := -I$(WLAN_ROOT)/$(NLINK_INC_DIR)
694NLINK_OBJS := $(NLINK_SRC_DIR)/wlan_nlink_srv.o
695
696############ PTT ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800697PTT_DIR := $(WLAN_COMMON_ROOT)/utils/ptt
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800698PTT_INC_DIR := $(PTT_DIR)/inc
699PTT_SRC_DIR := $(PTT_DIR)/src
700
701PTT_INC := -I$(WLAN_ROOT)/$(PTT_INC_DIR)
702PTT_OBJS := $(PTT_SRC_DIR)/wlan_ptt_sock_svc.o
703
704############ WLAN_LOGGING ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800705WLAN_LOGGING_DIR := $(WLAN_COMMON_ROOT)/utils/logging
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800706WLAN_LOGGING_INC_DIR := $(WLAN_LOGGING_DIR)/inc
707WLAN_LOGGING_SRC_DIR := $(WLAN_LOGGING_DIR)/src
708
709WLAN_LOGGING_INC := -I$(WLAN_ROOT)/$(WLAN_LOGGING_INC_DIR)
710WLAN_LOGGING_OBJS := $(WLAN_LOGGING_SRC_DIR)/wlan_logging_sock_svc.o
711
712############ SYS ############
713SYS_DIR := core/mac/src/sys
714
715SYS_INC := -I$(WLAN_ROOT)/$(SYS_DIR)/common/inc \
716 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/platform/inc \
717 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/system/inc \
718 -I$(WLAN_ROOT)/$(SYS_DIR)/legacy/src/utils/inc
719
720SYS_COMMON_SRC_DIR := $(SYS_DIR)/common/src
721SYS_LEGACY_SRC_DIR := $(SYS_DIR)/legacy/src
722SYS_OBJS := $(SYS_COMMON_SRC_DIR)/wlan_qct_sys.o \
723 $(SYS_LEGACY_SRC_DIR)/platform/src/sys_wrapper.o \
724 $(SYS_LEGACY_SRC_DIR)/system/src/mac_init_api.o \
725 $(SYS_LEGACY_SRC_DIR)/system/src/sys_entry_func.o \
726 $(SYS_LEGACY_SRC_DIR)/utils/src/dot11f.o \
727 $(SYS_LEGACY_SRC_DIR)/utils/src/log_api.o \
728 $(SYS_LEGACY_SRC_DIR)/utils/src/mac_trace.o \
729 $(SYS_LEGACY_SRC_DIR)/utils/src/parser_api.o \
730 $(SYS_LEGACY_SRC_DIR)/utils/src/utils_api.o \
731 $(SYS_LEGACY_SRC_DIR)/utils/src/utils_parser.o
732
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800733############ Qca-wifi-host-cmn ############
734QDF_OS_DIR := qdf
735QDF_OS_INC_DIR := $(QDF_OS_DIR)/inc
736QDF_OS_SRC_DIR := $(QDF_OS_DIR)/linux/src
737QDF_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(QDF_OS_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800738
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800739QDF_INC := -I$(WLAN_COMMON_INC)/$(QDF_OS_INC_DIR) \
740 -I$(WLAN_COMMON_INC)/$(QDF_OS_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800741
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800742QDF_OBJS := $(QDF_OBJ_DIR)/qdf_defer.o \
743 $(QDF_OBJ_DIR)/qdf_event.o \
744 $(QDF_OBJ_DIR)/qdf_list.o \
745 $(QDF_OBJ_DIR)/qdf_lock.o \
746 $(QDF_OBJ_DIR)/qdf_mc_timer.o \
747 $(QDF_OBJ_DIR)/qdf_mem.o \
748 $(QDF_OBJ_DIR)/qdf_nbuf.o \
749 $(QDF_OBJ_DIR)/qdf_threads.o \
750 $(QDF_OBJ_DIR)/qdf_trace.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800751
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -0700752ifeq ($(CONFIG_WLAN_DEBUGFS), y)
753QDF_OBJS += $(QDF_OBJ_DIR)/qdf_debugfs.o
754endif
755
Frank Liu65b17d92016-11-23 15:58:44 +0800756############ UMAC_DISP ############
757UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
758UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
759UMAC_DISP_SRC_DIR := $(UMAC_DISP_DIR)/src
760UMAC_DISP_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(UMAC_DISP_SRC_DIR)
761
762UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)
763
764UMAC_DISP_OBJS := $(UMAC_DISP_OBJ_DIR)/wlan_lmac_if.o
765
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800766############ CDS (Connectivity driver services) ############
767CDS_DIR := core/cds
768CDS_INC_DIR := $(CDS_DIR)/inc
769CDS_SRC_DIR := $(CDS_DIR)/src
770
771CDS_INC := -I$(WLAN_ROOT)/$(CDS_INC_DIR) \
772 -I$(WLAN_ROOT)/$(CDS_SRC_DIR)
773
774CDS_OBJS := $(CDS_SRC_DIR)/cds_api.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800775 $(CDS_SRC_DIR)/cds_reg_service.o \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800776 $(CDS_SRC_DIR)/cds_packet.o \
777 $(CDS_SRC_DIR)/cds_regdomain.o \
778 $(CDS_SRC_DIR)/cds_sched.o \
779 $(CDS_SRC_DIR)/cds_concurrency.o \
Krunal Sonid32c6bc2016-10-18 18:00:21 -0700780 $(CDS_SRC_DIR)/cds_utils.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800781
782
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +0530783###### UMAC OBJMGR ########
784UMAC_OBJMGR_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/obj_mgr
785
786UMAC_OBJMGR_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/inc \
787 -I$(WLAN_COMMON_INC)/umac/cmn_services/obj_mgr/src \
788 -I$(WLAN_COMMON_INC)/umac/cmn_services/inc \
789 -I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc
790
791UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
792 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_pdev_obj.o \
793 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_peer_obj.o \
794 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
795 $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
796
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530797
798########### UMAC MGMT TXRX ##########
799UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
800
Himanshu Agarwal795b7f72017-01-17 21:19:43 +0530801UMAC_MGMT_TXRX_INC := -I$(WLAN_COMMON_INC)/umac/cmn_services/mgmt_txrx/dispatcher/inc \
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +0530802
803UMAC_MGMT_TXRX_OBJS := $(UMAC_MGMT_TXRX_DIR)/core/src/wlan_mgmt_txrx_main.o \
804 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_utils_api.o \
805 $(UMAC_MGMT_TXRX_DIR)/dispatcher/src/wlan_mgmt_txrx_tgt_api.o
806
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800807########### BMI ###########
808BMI_DIR := core/bmi
809
810BMI_INC := -I$(WLAN_ROOT)/$(BMI_DIR)/inc
811
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800812BMI_OBJS := $(BMI_DIR)/src/bmi.o \
Poddar, Siddarthef1f3022016-05-10 20:10:43 +0530813 $(BMI_DIR)/src/ol_fw.o \
814 $(BMI_DIR)/src/ol_fw_common.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800815BMI_OBJS += $(BMI_DIR)/src/bmi_1.o
Govind Singh0fea23a2016-03-18 12:59:27 +0530816
Mukul Sharmac3e7a782017-02-03 12:16:11 +0530817########## TARGET_IF #######
818TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if
819
820TARGET_IF_INC := -I$(WLAN_COMMON_INC)/target_if/core/inc \
821 -I$(WLAN_COMMON_INC)/target_if/core/src
822
823TARGET_IF_OBJ := $(TARGET_IF_DIR)/core/src/target_if_main.o
824
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800825########### WMI ###########
Govind Singh0fea23a2016-03-18 12:59:27 +0530826WMI_ROOT_DIR := wmi
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800827
Govind Singh0fea23a2016-03-18 12:59:27 +0530828WMI_SRC_DIR := $(WMI_ROOT_DIR)/src
829WMI_INC_DIR := $(WMI_ROOT_DIR)/inc
830WMI_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(WMI_SRC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800831
Govind Singh0fea23a2016-03-18 12:59:27 +0530832WMI_INC := -I$(WLAN_COMMON_INC)/$(WMI_INC_DIR)
833
834WMI_OBJS := $(WMI_OBJ_DIR)/wmi_unified.o \
835 $(WMI_OBJ_DIR)/wmi_tlv_helper.o \
836 $(WMI_OBJ_DIR)/wmi_unified_tlv.o \
837 $(WMI_OBJ_DIR)/wmi_unified_api.o \
838 $(WMI_OBJ_DIR)/wmi_unified_non_tlv.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800839
840########### FWLOG ###########
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800841FWLOG_DIR := $(WLAN_COMMON_ROOT)/utils/fwlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800842
843FWLOG_INC := -I$(WLAN_ROOT)/$(FWLOG_DIR)
844
845FWLOG_OBJS := $(FWLOG_DIR)/dbglog_host.o
846
847############ TXRX ############
848TXRX_DIR := core/dp/txrx
849TXRX_INC := -I$(WLAN_ROOT)/$(TXRX_DIR)
850
851TXRX_OBJS := $(TXRX_DIR)/ol_txrx.o \
852 $(TXRX_DIR)/ol_cfg.o \
853 $(TXRX_DIR)/ol_rx.o \
854 $(TXRX_DIR)/ol_rx_fwd.o \
855 $(TXRX_DIR)/ol_txrx.o \
856 $(TXRX_DIR)/ol_rx_defrag.o \
857 $(TXRX_DIR)/ol_tx_desc.o \
858 $(TXRX_DIR)/ol_tx.o \
859 $(TXRX_DIR)/ol_rx_reorder_timeout.o \
860 $(TXRX_DIR)/ol_rx_reorder.o \
861 $(TXRX_DIR)/ol_rx_pn.o \
862 $(TXRX_DIR)/ol_tx_queue.o \
863 $(TXRX_DIR)/ol_txrx_peer_find.o \
864 $(TXRX_DIR)/ol_txrx_event.o \
865 $(TXRX_DIR)/ol_txrx_encap.o \
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530866 $(TXRX_DIR)/ol_tx_send.o \
867 $(TXRX_DIR)/ol_tx_sched.o \
868 $(TXRX_DIR)/ol_tx_classify.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800869
870ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
871TXRX_OBJS += $(TXRX_DIR)/ol_txrx_flow_control.o
872endif
873
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -0800874ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -0700875############ DP 3.0 ############
876DP_INC := -I$(WLAN_COMMON_ROOT)/dp/inc \
877 -I$(WLAN_COMMON_ROOT)/dp/wifi3.0
878
879DP_SRC := $(WLAN_COMMON_ROOT)/dp/wifi3.0
880DP_OBJS := $(DP_SRC)/dp_main.o \
881 $(DP_SRC)/dp_tx.o \
882 $(DP_SRC)/dp_tx_desc.o \
883 $(DP_SRC)/dp_rx.o \
884 $(DP_SRC)/dp_rx_err.o \
885 $(DP_SRC)/dp_htt.o \
886 $(DP_SRC)/dp_peer.o \
Debashis Dutt237c6142017-01-04 11:28:59 -0800887 $(DP_SRC)/dp_rx_desc.o \
888 $(DP_SRC)/dp_reo.o
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -0800889endif
Leo Chang5f7a1e02016-11-04 14:04:26 -0700890
891############ CFG ############
892WCFG_DIR := $(WLAN_COMMON_ROOT)/wlan_cfg
893WCFG_INC := -I$(WCFG_DIR)
894WCFG_OBJS := $(WCFG_DIR)/wlan_cfg.o
895
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800896############ OL ############
897OL_DIR := core/dp/ol
898OL_INC := -I$(WLAN_ROOT)/$(OL_DIR)/inc
899
Dhanashri Atre12a08392016-02-17 13:10:34 -0800900############ CDP ############
901CDP_ROOT_DIR := dp
902CDP_INC_DIR := $(CDP_ROOT_DIR)/inc
903CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
904
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800905############ PKTLOG ############
Srinivas Girigowdac1bb1bd2017-01-10 16:56:54 -0800906PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800907PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
908
909PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
910 $(PKTLOG_DIR)/pktlog_internal.o \
911 $(PKTLOG_DIR)/linux_ac.o
912
913############ HTT ############
914HTT_DIR := core/dp/htt
915HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)
916
917HTT_OBJS := $(HTT_DIR)/htt_tx.o \
918 $(HTT_DIR)/htt.o \
919 $(HTT_DIR)/htt_t2h.o \
920 $(HTT_DIR)/htt_h2t.o \
921 $(HTT_DIR)/htt_fw_stats.o \
922 $(HTT_DIR)/htt_rx.o
923
Rajeev Kumar97767a02016-11-30 11:20:40 -0800924
925############## INIT-DEINIT ###########
926INIT_DEINIT_DIR := init_deinit/dispatcher
927INIT_DEINIT_INC_DIR := $(INIT_DEINIT_DIR)/inc
928INIT_DEINIT_SRC_DIR := $(INIT_DEINIT_DIR)/src
929INIT_DEINIT_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(INIT_DEINIT_SRC_DIR)
930INIT_DEINIT_INC := -I$(WLAN_COMMON_INC)/$(INIT_DEINIT_INC_DIR)
931INIT_DEINIT_OBJS := $(INIT_DEINIT_OBJ_DIR)/dispatcher_init_deinit.o
932
Rajeev Kumar1705fc22016-11-30 16:12:16 -0800933############## Control path common scheduler ##########
Rajeev Kumarebb0a732016-12-24 19:05:44 -0800934SCHEDULER_DIR := scheduler
935SCHEDULER_INC_DIR := $(SCHEDULER_DIR)/inc
936SCHEDULER_SRC_DIR := $(SCHEDULER_DIR)/src
937SCHEDULER_OBJ_DIR := $(WLAN_COMMON_ROOT)/$(SCHEDULER_SRC_DIR)
938SCHEDULER_INC := -I$(WLAN_COMMON_INC)/$(SCHEDULER_INC_DIR)
939SCHEDULER_OBJS := $(SCHEDULER_OBJ_DIR)/scheduler_api.o \
940 $(SCHEDULER_OBJ_DIR)/scheduler_core.o
Rajeev Kumar1705fc22016-11-30 16:12:16 -0800941
Rajeev Kumar97767a02016-11-30 11:20:40 -0800942
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800943############## HTC ##########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800944HTC_DIR := htc
945HTC_INC := -I$(WLAN_COMMON_INC)/$(HTC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800946
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800947HTC_OBJS := $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc.o \
948 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_send.o \
949 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_recv.o \
950 $(WLAN_COMMON_ROOT)/$(HTC_DIR)/htc_services.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800951
952########### HIF ###########
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800953HIF_DIR := hif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800954HIF_CE_DIR := $(HIF_DIR)/src/ce
Houston Hoffman1edffd32016-01-27 16:30:34 -0800955
956HIF_DISPATCHER_DIR := $(HIF_DIR)/src/dispatcher
957
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800958HIF_PCIE_DIR := $(HIF_DIR)/src/pcie
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800959HIF_SNOC_DIR := $(HIF_DIR)/src/snoc
Mohit Khannada4f4432016-05-17 15:02:09 -0700960HIF_USB_DIR := $(HIF_DIR)/src/usb
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530961HIF_SDIO_DIR := $(HIF_DIR)/src/sdio
962
963HIF_SDIO_NATIVE_DIR := $(HIF_SDIO_DIR)/native_sdio
964HIF_SDIO_NATIVE_INC_DIR := $(HIF_SDIO_NATIVE_DIR)/include
965HIF_SDIO_NATIVE_SRC_DIR := $(HIF_SDIO_NATIVE_DIR)/src
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800966
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800967HIF_INC := -I$(WLAN_COMMON_INC)/$(HIF_DIR)/inc \
968 -I$(WLAN_COMMON_INC)/$(HIF_DIR)/src \
Yuanyuan Liu91353612016-05-04 12:02:00 -0700969 -I$(WLAN_COMMON_INC)/$(HIF_CE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -0800970
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800971ifeq ($(CONFIG_HIF_PCI), 1)
Houston Hoffman1edffd32016-01-27 16:30:34 -0800972HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800973HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_PCIE_DIR)
Houston Hoffman1edffd32016-01-27 16:30:34 -0800974endif
975
976ifeq ($(CONFIG_HIF_SNOC), 1)
977HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -0800978HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SNOC_DIR)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800979endif
980
Mohit Khannada4f4432016-05-17 15:02:09 -0700981ifeq ($(CONFIG_HIF_USB), 1)
982HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
983HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_USB_DIR)
984endif
985
Poddar, Siddarth29296fb2016-05-16 18:06:30 +0530986ifeq ($(CONFIG_HIF_SDIO), 1)
987HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_DISPATCHER_DIR)
988HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_DIR)
989HIF_INC += -I$(WLAN_COMMON_INC)/$(HIF_SDIO_NATIVE_INC_DIR)
990endif
991
992HIF_COMMON_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/ath_procfs.o \
993 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_main.o \
994 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/mp_dev.o
995
996HIF_CE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_bmi.o \
997 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_diag.o \
998 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_main.o \
999 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service.o \
1000 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_tasklet.o \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001001 $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/regtable.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301002
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001003ifeq ($(CONFIG_LITHIUM), y)
1004HIF_CE_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/qca6290def.o \
1005 $(WLAN_COMMON_ROOT)/$(HIF_CE_DIR)/ce_service_srng.o
Houston Hoffmana0f93492016-11-18 13:42:12 -08001006endif
1007
Mohit Khannada4f4432016-05-17 15:02:09 -07001008HIF_USB_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/usbdrv.o \
1009 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/hif_usb.o \
1010 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/if_usb.o \
1011 $(WLAN_COMMON_ROOT)/$(HIF_USB_DIR)/regtable_usb.o
1012
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301013HIF_SDIO_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_send.o \
1014 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_bmi_reg_access.o \
1015 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_diag_reg_access.o \
1016 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_dev.o \
1017 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio.o \
1018 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/hif_sdio_recv.o \
1019 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/regtable_sdio.o
1020
1021HIF_SDIO_NATIVE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif.o \
1022 $(WLAN_COMMON_ROOT)/$(HIF_SDIO_NATIVE_SRC_DIR)/hif_scatter.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001023
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001024ifeq ($(CONFIG_WLAN_NAPI), y)
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001025HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DIR)/src/hif_napi.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001026endif
1027
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001028HIF_PCIE_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_PCIE_DIR)/if_pci.o
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001029HIF_SNOC_OBJS := $(WLAN_COMMON_ROOT)/$(HIF_SNOC_DIR)/if_snoc.o
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301030HIF_SDIO_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_SDIO_DIR)/if_sdio.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001031
Houston Hoffman1edffd32016-01-27 16:30:34 -08001032HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus.o
Houston Hoffmanb61b9b12016-03-03 20:04:16 -08001033HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/dummy.o
Houston Hoffman1edffd32016-01-27 16:30:34 -08001034
1035ifeq ($(CONFIG_HIF_PCI), 1)
1036HIF_OBJS += $(HIF_PCIE_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301037HIF_OBJS += $(HIF_COMMON_OBJS)
1038HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001039HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_pci.o
1040endif
1041
1042ifeq ($(CONFIG_HIF_SNOC), 1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001043HIF_OBJS += $(HIF_SNOC_OBJS)
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301044HIF_OBJS += $(HIF_COMMON_OBJS)
1045HIF_OBJS += $(HIF_CE_OBJS)
Houston Hoffman1edffd32016-01-27 16:30:34 -08001046HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_snoc.o
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001047endif
1048
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301049ifeq ($(CONFIG_HIF_SDIO), 1)
1050HIF_OBJS += $(HIF_SDIO_OBJS)
1051HIF_OBJS += $(HIF_SDIO_NATIVE_OBJS)
1052HIF_OBJS += $(HIF_COMMON_OBJS)
1053HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_sdio.o
1054endif
1055
Mohit Khannada4f4432016-05-17 15:02:09 -07001056ifeq ($(CONFIG_HIF_USB), 1)
1057HIF_OBJS += $(HIF_USB_OBJS)
1058HIF_OBJS += $(HIF_COMMON_OBJS)
1059HIF_OBJS += $(WLAN_COMMON_ROOT)/$(HIF_DISPATCHER_DIR)/multibus_usb.o
1060endif
1061
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001062ifeq ($(CONFIG_LITHIUM), y)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001063############ HAL ############
1064HAL_DIR := hal
1065HAL_INC := -I$(WLAN_COMMON_INC)/$(HAL_DIR)/inc \
1066 -I$(WLAN_COMMON_INC)/$(HAL_DIR)/wifi3.0
1067
1068HAL_OBJS := $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_srng.o \
1069 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_rx.o \
Debashis Dutt237c6142017-01-04 11:28:59 -08001070 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_wbm.o \
1071 $(WLAN_COMMON_ROOT)/$(HAL_DIR)/wifi3.0/hal_reo.o
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001072endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001073
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001074############ WMA ############
1075WMA_DIR := core/wma
1076
1077WMA_INC_DIR := $(WMA_DIR)/inc
1078WMA_SRC_DIR := $(WMA_DIR)/src
1079
1080WMA_INC := -I$(WLAN_ROOT)/$(WMA_INC_DIR) \
1081 -I$(WLAN_ROOT)/$(WMA_SRC_DIR)
1082
Ravi Joshia063dd92016-05-25 16:43:13 -07001083ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
1084WMA_NDP_OBJS += $(WMA_SRC_DIR)/wma_nan_datapath.o
1085endif
1086
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001087WMA_OBJS := $(WMA_SRC_DIR)/wma_main.o \
1088 $(WMA_SRC_DIR)/wma_scan_roam.o \
1089 $(WMA_SRC_DIR)/wma_dev_if.o \
1090 $(WMA_SRC_DIR)/wma_mgmt.o \
1091 $(WMA_SRC_DIR)/wma_power.o \
1092 $(WMA_SRC_DIR)/wma_data.o \
1093 $(WMA_SRC_DIR)/wma_utils.o \
1094 $(WMA_SRC_DIR)/wma_features.o \
1095 $(WMA_SRC_DIR)/wma_dfs_interface.o \
Ravi Joshia063dd92016-05-25 16:43:13 -07001096 $(WMA_SRC_DIR)/wlan_qct_wma_legacy.o\
1097 $(WMA_NDP_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001098
Agrawal Ashishb141b092016-09-02 19:59:26 +05301099ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
Jeff Johnsonb90ab572017-01-31 15:57:35 -08001100WMA_OBJS+= $(WMA_SRC_DIR)/wma_ocb.o
Agrawal Ashishb141b092016-09-02 19:59:26 +05301101endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001102ifeq ($(CONFIG_MPC_UT_FRAMEWORK),y)
1103WMA_OBJS += $(WMA_SRC_DIR)/wma_utils_ut.o
1104endif
1105
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001106############## PLD ##########
1107PLD_DIR := core/pld
1108PLD_INC_DIR := $(PLD_DIR)/inc
1109PLD_SRC_DIR := $(PLD_DIR)/src
1110
1111PLD_INC := -I$(WLAN_ROOT)/$(PLD_INC_DIR) \
1112 -I$(WLAN_ROOT)/$(PLD_SRC_DIR)
1113
1114PLD_OBJS := $(PLD_SRC_DIR)/pld_common.o
1115
1116ifeq ($(CONFIG_PCI), y)
1117PLD_OBJS += $(PLD_SRC_DIR)/pld_pcie.o
1118endif
1119ifeq ($(CONFIG_ICNSS),y)
1120PLD_OBJS += $(PLD_SRC_DIR)/pld_snoc.o
1121endif
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301122ifeq ($(CONFIG_CNSS_SDIO),y)
1123PLD_OBJS += $(PLD_SRC_DIR)/pld_sdio.o
1124endif
Mohit Khannae7a43572016-10-10 17:34:21 -07001125ifeq ($(CONFIG_PLD_USB_CNSS), y)
Mohit Khannada4f4432016-05-17 15:02:09 -07001126PLD_OBJS += $(PLD_SRC_DIR)/pld_usb.o
1127endif
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001128
Leo Chang5f7a1e02016-11-04 14:04:26 -07001129TARGET_INC := -I$(WLAN_ROOT)/../fw-api/hw/qca6290/v1 \
1130 -I$(WLAN_ROOT)/../fw-api/fw
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001131
1132LINUX_INC := -Iinclude/linux
1133
1134INCS := $(HDD_INC) \
1135 $(EPPING_INC) \
1136 $(LINUX_INC) \
1137 $(MAC_INC) \
1138 $(SAP_INC) \
1139 $(SME_INC) \
1140 $(SYS_INC) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001141 $(QDF_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001142 $(CDS_INC) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301143 $(DFS_INC) \
1144 $(TARGET_IF_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001145
1146INCS += $(WMA_INC) \
1147 $(UAPI_INC) \
1148 $(COMMON_INC) \
1149 $(WMI_INC) \
1150 $(FWLOG_INC) \
1151 $(TXRX_INC) \
1152 $(OL_INC) \
Dhanashri Atre12a08392016-02-17 13:10:34 -08001153 $(CDP_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001154 $(PKTLOG_INC) \
1155 $(HTT_INC) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001156 $(INIT_DEINIT_INC) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001157 $(SCHEDULER_INC) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001158 $(HTC_INC) \
Leo Chang5f7a1e02016-11-04 14:04:26 -07001159 $(DFS_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001160 $(WCFG_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001161
1162INCS += $(HIF_INC) \
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001163 $(BMI_INC)
1164
1165ifeq ($(CONFIG_LITHIUM), y)
1166INCS += $(HAL_INC) \
1167 $(DP_INC)
1168endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001169
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301170INCS += $(UMAC_OBJMGR_INC)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301171INCS += $(UMAC_MGMT_TXRX_INC)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001172INCS += $(TARGET_INC)
1173
1174INCS += $(NLINK_INC) \
1175 $(PTT_INC) \
1176 $(WLAN_LOGGING_INC)
1177
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001178INCS += $(PLD_INC)
1179
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001180ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
1181INCS += $(PKTLOG_INC)
1182endif
1183
1184ifeq ($(BUILD_DIAG_VERSION), 1)
1185INCS += $(HOST_DIAG_LOG_INC)
1186endif
1187
Frank Liu65b17d92016-11-23 15:58:44 +08001188INCS += $(UMAC_DISP_INC)
Frank Liu65b17d92016-11-23 15:58:44 +08001189
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001190OBJS := $(HDD_OBJS) \
1191 $(EPPING_OBJS) \
1192 $(MAC_OBJS) \
1193 $(SAP_OBJS) \
1194 $(SME_OBJS) \
1195 $(SYS_OBJS) \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001196 $(QDF_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001197 $(CDS_OBJS) \
1198 $(DFS_OBJS)
1199
1200OBJS += $(WMA_OBJS) \
1201 $(TXRX_OBJS) \
1202 $(WMI_OBJS) \
1203 $(FWLOG_OBJS) \
1204 $(HTC_OBJS) \
Rajeev Kumar97767a02016-11-30 11:20:40 -08001205 $(INIT_DEINIT_OBJS) \
Rajeev Kumarebb0a732016-12-24 19:05:44 -08001206 $(SCHEDULER_OBJS) \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001207 $(DFS_OBJS)
1208
1209OBJS += $(HIF_OBJS) \
1210 $(BMI_OBJS) \
Mukul Sharmac3e7a782017-02-03 12:16:11 +05301211 $(HTT_OBJS) \
1212 $(TARGET_IF_OBJ)
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001213
1214ifeq ($(CONFIG_LITHIUM), y)
1215OBJS += $(HAL_OBJS)
1216endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001217
Selvaraj, Sridhar0672a122016-12-29 16:11:48 +05301218OBJS += $(UMAC_OBJMGR_OBJS)
Himanshu Agarwal2fdf77a2016-12-29 11:41:00 +05301219OBJS += $(UMAC_MGMT_TXRX_OBJS)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001220OBJS += $(WLAN_LOGGING_OBJS)
1221OBJS += $(NLINK_OBJS)
1222OBJS += $(PTT_OBJS)
1223
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001224OBJS += $(PLD_OBJS)
1225
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001226ifeq ($(CONFIG_REMOVE_PKT_LOG), 0)
1227OBJS += $(PKTLOG_OBJS)
1228endif
1229
1230ifeq ($(BUILD_DIAG_VERSION), 1)
1231OBJS += $(HOST_DIAG_LOG_OBJS)
1232endif
1233
Frank Liu65b17d92016-11-23 15:58:44 +08001234OBJS += $(UMAC_DISP_OBJS)
Frank Liu65b17d92016-11-23 15:58:44 +08001235
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001236OBJS += $(WCFG_OBJS)
1237
1238ifeq ($(CONFIG_LITHIUM), y)
1239OBJS += $(DP_OBJS)
1240endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001241
1242EXTRA_CFLAGS += $(INCS)
1243
1244CDEFINES := -DANI_LITTLE_BYTE_ENDIAN \
1245 -DANI_LITTLE_BIT_ENDIAN \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001246 -DDOT11F_LITTLE_ENDIAN_HOST \
1247 -DANI_COMPILER_TYPE_GCC \
1248 -DANI_OS_TYPE_ANDROID=6 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001249 -DPTT_SOCK_SVC_ENABLE \
1250 -Wall\
1251 -Werror\
1252 -D__linux__ \
1253 -DHAL_SELF_STA_PER_BSS=1 \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001254 -DFEATURE_WLAN_WAPI \
1255 -DFEATURE_OEM_DATA_SUPPORT\
1256 -DSOFTAP_CHANNEL_RANGE \
1257 -DWLAN_AP_STA_CONCURRENCY \
1258 -DFEATURE_WLAN_SCAN_PNO \
1259 -DWLAN_FEATURE_PACKET_FILTERING \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001260 -DWLAN_FEATURE_P2P_DEBUG \
1261 -DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
1262 -DWLANTL_DEBUG\
1263 -DWLAN_NS_OFFLOAD \
1264 -DWLAN_SOFTAP_VSTA_FEATURE \
1265 -DWLAN_FEATURE_GTK_OFFLOAD \
1266 -DWLAN_WAKEUP_EVENTS \
1267 -DFEATURE_WLAN_RA_FILTERING\
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001268 -DWLAN_NL80211_TESTMODE \
1269 -DFEATURE_WLAN_LPHB \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001270 -DQCA_SUPPORT_TX_THROTTLE \
1271 -DWMI_INTERFACE_EVENT_LOGGING \
1272 -DATH_SUPPORT_WAPI \
1273 -DWLAN_FEATURE_LINK_LAYER_STATS \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001274 -DFEATURE_WLAN_EXTSCAN \
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001275 -DWLAN_FEATURE_MBSSID \
Prashanth Bhatta7e58dd32016-02-16 15:46:46 -08001276 -DCONFIG_160MHZ_SUPPORT \
1277 -DCONFIG_MCL
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001278
Mohit Khannada4f4432016-05-17 15:02:09 -07001279ifneq ($(CONFIG_HIF_USB), 1)
1280CDEFINES += -DWLAN_LOGGING_SOCK_SVC_ENABLE
1281endif
1282
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001283ifeq ($(CONFIG_CNSS), y)
1284ifeq ($(CONFIG_CNSS_SDIO), y)
1285CDEFINES += -DCONFIG_PLD_SDIO_CNSS
1286else
1287CDEFINES += -DCONFIG_PLD_PCIE_CNSS
1288endif
1289endif
1290
Yue Mae6a7a322016-08-31 11:09:23 -07001291ifeq ($(CONFIG_CNSS2), y)
1292CDEFINES += -DCONFIG_PLD_PCIE_CNSS
Houston Hoffman435cd442016-11-23 14:20:42 -08001293CDEFINES += -DCONFIG_PLD_PCIE_INIT
Yue Mae6a7a322016-08-31 11:09:23 -07001294endif
1295
Yuanyuan Liu11f526a2016-05-18 10:22:07 -07001296ifeq ($(CONFIG_ICNSS), y)
1297CDEFINES += -DCONFIG_PLD_SNOC_ICNSS
1298endif
1299
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001300ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
1301CDEFINES += -DQCA_WIFI_3_0
1302CDEFINES += -DQCA_WIFI_3_0_EMU
1303endif
1304
1305ifeq (y,$(filter y,$(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1306CDEFINES += -DQCA_WIFI_3_0_ADRASTEA
1307CDEFINES += -DADRASTEA_SHADOW_REGISTERS
Sanjay Devnanicdab59e2015-11-12 14:43:58 -08001308CDEFINES += -DADRASTEA_RRI_ON_DDR
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001309endif
1310
1311ifeq ($(CONFIG_WLAN_FASTPATH), y)
1312CDEFINES += -DWLAN_FEATURE_FASTPATH
1313endif
1314
Poddar, Siddartheefe3482016-09-21 18:12:59 +05301315ifeq ($(CONFIG_FEATURE_PKTLOG), y)
1316CDEFINES += -DFEATURE_PKTLOG
1317endif
1318
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05301319ifeq ($(CONFIG_FEATURE_DP_TRACE), y)
1320CDEFINES += -DFEATURE_DP_TRACE
1321endif
1322
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001323ifeq ($(CONFIG_WLAN_NAPI), y)
1324CDEFINES += -DFEATURE_NAPI
1325ifeq ($(CONFIG_WLAN_NAPI_DEBUG), y)
1326CDEFINES += -DFEATURE_NAPI_DEBUG
1327endif
1328endif
1329
Yue Madf224b82016-04-21 12:46:04 -07001330ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
Yuanyuan Liu5af44362016-04-01 21:57:06 -07001331CDEFINES += -DMSM_PLATFORM
1332endif
1333
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001334CDEFINES += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
1335
1336ifeq ($(CONFIG_WLAN_TX_FLOW_CONTROL_V2), y)
1337CDEFINES += -DQCA_LL_TX_FLOW_CONTROL_V2
1338CDEFINES += -DQCA_LL_TX_FLOW_GLOBAL_MGMT_POOL
1339else
1340ifeq ($(CONFIG_ROME_IF),pci)
Leo Chang5f7a1e02016-11-04 14:04:26 -07001341ifneq ($(CONFIG_LITHIUM),y)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001342CDEFINES += -DQCA_LL_LEGACY_TX_FLOW_CONTROL
1343endif
1344endif
Leo Chang5f7a1e02016-11-04 14:04:26 -07001345endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001346
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001347ifneq ($(CONFIG_QCA_CLD_WLAN),)
1348CDEFINES += -DWCN_PRONTO
1349CDEFINES += -DWCN_PRONTO_V1
1350endif
1351
1352ifeq ($(BUILD_DEBUG_VERSION),1)
1353CDEFINES += -DWLAN_DEBUG \
1354 -DTRACE_RECORD \
1355 -DLIM_TRACE_RECORD \
1356 -DSME_TRACE_RECORD \
1357 -DHDD_TRACE_RECORD \
1358 -DPE_DEBUG_LOGW \
Srinivas Girigowda6147c582016-10-18 12:26:15 -07001359 -DPE_DEBUG_LOGE
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001360endif
1361
1362ifeq ($(CONFIG_SLUB_DEBUG_ON),y)
1363CDEFINES += -DTIMER_MANAGER
1364CDEFINES += -DMEMORY_DEBUG
Dustin Brown8b28e082016-12-06 15:37:34 -08001365CDEFINES += -DWLAN_SUSPEND_RESUME_TEST
Houston Hoffmand4ba4312017-01-13 18:30:15 -08001366CONFIG_LOCK_STATS_ON := y
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001367endif
1368
Houston Hoffmand4ba4312017-01-13 18:30:15 -08001369ifeq ($(CONFIG_LOCK_STATS_ON),y)
1370CDEFINES += -DQDF_LOCK_STATS=1
1371CDEFINES += -DQDF_LOCK_STATS_DESTROY_PRINT=0
1372CDEFINES += -DQDF_LOCK_STATS_BUG_ON=1
1373CDEFINES += -DQDF_LOCK_STATS_LIST=1
1374CDEFINES += -DQDF_LOCK_STATS_LIST_SIZE=256
1375endif
1376
1377
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001378ifeq ($(HAVE_CFG80211),1)
1379CDEFINES += -DWLAN_FEATURE_P2P
1380CDEFINES += -DWLAN_FEATURE_WFD
1381ifeq ($(CONFIG_QCOM_VOWIFI_11R),y)
1382CDEFINES += -DKERNEL_SUPPORT_11R_CFG80211
1383CDEFINES += -DUSE_80211_WMMTSPEC_FOR_RIC
1384endif
1385endif
1386
1387ifeq ($(CONFIG_QCOM_ESE),y)
1388CDEFINES += -DFEATURE_WLAN_ESE
1389CDEFINES += -DQCA_COMPUTE_TX_DELAY
1390CDEFINES += -DQCA_COMPUTE_TX_DELAY_PER_TID
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001391endif
1392
1393#normally, TDLS negative behavior is not needed
1394ifeq ($(CONFIG_QCOM_TDLS),y)
1395CDEFINES += -DFEATURE_WLAN_TDLS
1396endif
1397
1398ifeq ($(CONFIG_QCACLD_WLAN_LFR3),y)
1399CDEFINES += -DWLAN_FEATURE_ROAM_OFFLOAD
1400endif
1401
Varun Reddy Yeturubbbbe232016-02-29 14:01:57 -08001402ifeq ($(CONFIG_QCACLD_WLAN_LFR2),y)
1403CDEFINES += -DWLAN_FEATURE_HOST_ROAM
1404endif
1405
Sridhar Selvarajdc400d22016-10-18 17:18:03 +05301406ifeq ($(CONFIG_WLAN_POWER_DEBUGFS), y)
1407CDEFINES += -DWLAN_POWER_DEBUGFS
1408endif
1409
Rajeev Kumar69d7d492017-02-13 21:48:16 -08001410# Enable object manager reference count debug infrastructure
1411CDEFINES += -DWLAN_OBJMGR_DEBUG
1412
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001413ifeq ($(BUILD_DIAG_VERSION),1)
1414CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT
1415CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_CSR
1416CDEFINES += -DFEATURE_WLAN_DIAG_SUPPORT_LIM
1417ifeq ($(CONFIG_HIF_PCI), 1)
1418CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1419endif
1420endif
1421
1422ifeq ($(CONFIG_HIF_USB), 1)
1423CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1424CDEFINES += -DQCA_SUPPORT_OL_RX_REORDER_TIMEOUT
1425CDEFINES += -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 -08001426endif
1427
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001428ifeq ($(CONFIG_WLAN_FEATURE_11W),y)
1429CDEFINES += -DWLAN_FEATURE_11W
1430endif
1431
gbiane55c9562016-11-01 14:47:47 +08001432ifeq ($(CONFIG_QCA_TXDESC_SANITY_CHECKS), 1)
1433CDEFINES += -DQCA_SUPPORT_TXDESC_SANITY_CHECKS
1434endif
1435
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001436ifeq ($(CONFIG_QCOM_LTE_COEX),y)
1437CDEFINES += -DFEATURE_WLAN_CH_AVOID
1438endif
1439
1440ifeq ($(CONFIG_WLAN_FEATURE_LPSS),y)
1441CDEFINES += -DWLAN_FEATURE_LPSS
1442endif
1443
Nirav Shah76291962016-04-25 10:50:37 +05301444ifneq ($(TARGET_BUILD_VARIANT),user)
1445CDEFINES += -DDESC_DUP_DETECT_DEBUG
Manjunathappa Prakashc8e75642016-06-03 19:32:27 -07001446CDEFINES += -DDEBUG_RX_RING_BUFFER
Nirav Shah76291962016-04-25 10:50:37 +05301447endif
1448
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001449ifeq ($(PANIC_ON_BUG),1)
1450CDEFINES += -DPANIC_ON_BUG
1451endif
1452
1453ifeq ($(WLAN_OPEN_SOURCE), 1)
1454CDEFINES += -DWLAN_OPEN_SOURCE
1455endif
1456
1457ifeq ($(CONFIG_FEATURE_STATS_EXT), 1)
1458CDEFINES += -DWLAN_FEATURE_STATS_EXT
1459endif
1460
1461ifeq ($(CONFIG_QCACLD_FEATURE_NAN),y)
1462CDEFINES += -DWLAN_FEATURE_NAN
1463endif
1464
1465ifeq ($(CONFIG_QCA_IBSS_SUPPORT), 1)
1466CDEFINES += -DQCA_IBSS_SUPPORT
1467endif
1468
1469#Enable OL debug and wmi unified functions
1470ifeq ($(CONFIG_ATH_PERF_PWR_OFFLOAD), 1)
1471CDEFINES += -DATH_PERF_PWR_OFFLOAD
1472endif
1473
1474#Disable packet log
1475ifeq ($(CONFIG_REMOVE_PKT_LOG), 1)
1476CDEFINES += -DREMOVE_PKT_LOG
1477endif
1478
1479#Enable 11AC TX
1480ifeq ($(CONFIG_ATH_11AC_TXCOMPACT), 1)
1481CDEFINES += -DATH_11AC_TXCOMPACT
1482endif
1483
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001484#Enable OS specific IRQ abstraction
1485ifeq ($(CONFIG_ATH_SUPPORT_SHARED_IRQ), 1)
1486CDEFINES += -DATH_SUPPORT_SHARED_IRQ
1487endif
1488
1489#Enable message based HIF instead of RAW access in BMI
1490ifeq ($(CONFIG_HIF_MESSAGE_BASED), 1)
1491CDEFINES += -DHIF_MESSAGE_BASED
1492endif
1493
1494#Enable PCI specific APIS (dma, etc)
1495ifeq ($(CONFIG_HIF_PCI), 1)
1496CDEFINES += -DHIF_PCI
1497endif
1498
Houston Hoffman1edffd32016-01-27 16:30:34 -08001499ifeq ($(CONFIG_HIF_SNOC), 1)
1500CDEFINES += -DHIF_SNOC
1501endif
1502
Poddar, Siddarth29296fb2016-05-16 18:06:30 +05301503#Enable High Latency related Flags
1504ifeq ($(CONFIG_QCA_WIFI_SDIO), 1)
1505CDEFINES += -DCONFIG_HL_SUPPORT \
1506 -DCONFIG_AR6320_SUPPORT \
1507 -DSDIO_3_0 \
1508 -DHIF_SDIO \
1509 -DCONFIG_DISABLE_CDC_MAX_PERF_WAR=0 \
1510 -DCONFIG_ATH_PROCFS_DIAG_SUPPORT \
1511 -DFEATURE_HL_GROUP_CREDIT_FLOW_CONTROL \
1512 -DHIF_MBOX_SLEEP_WAR \
1513 -DDEBUG_HL_LOGGING \
1514 -DQCA_BAD_PEER_TX_FLOW_CL \
1515 -DCONFIG_TX_DESC_HI_PRIO_RESERVE \
1516 -DCONFIG_PER_VDEV_TX_DESC_POOL \
1517 -DCONFIG_SDIO \
1518 -DFEATURE_WLAN_FORCE_SAP_SCC
1519endif
1520
Agrawal Ashishb141b092016-09-02 19:59:26 +05301521ifeq ($(CONFIG_WLAN_FEATURE_DSRC), y)
1522CDEFINES += -DWLAN_FEATURE_DSRC
1523endif
1524
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001525#Enable USB specific APIS
1526ifeq ($(CONFIG_HIF_USB), 1)
Mohit Khannada4f4432016-05-17 15:02:09 -07001527CDEFINES += -DHIF_USB \
Mohit Khannae7a43572016-10-10 17:34:21 -07001528 -DCONFIG_PLD_USB_CNSS \
1529 -DCONFIG_HL_SUPPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001530endif
1531
1532#Enable FW logs through ini
1533CDEFINES += -DCONFIG_FW_LOGS_BASED_ON_INI
1534
1535#Enable pci read/write config functions
1536ifeq ($(CONFIG_ATH_PCI), 1)
1537CDEFINES += -DATH_PCI
1538endif
1539
1540#Enable power management suspend/resume functionality
1541ifeq ($(CONFIG_ATH_BUS_PM), 1)
1542CDEFINES += -DATH_BUS_PM
1543endif
1544
1545#Enable FLOWMAC module support
1546ifeq ($(CONFIG_ATH_SUPPORT_FLOWMAC_MODULE), 1)
1547CDEFINES += -DATH_SUPPORT_FLOWMAC_MODULE
1548endif
1549
1550#Enable spectral support
1551ifeq ($(CONFIG_ATH_SUPPORT_SPECTRAL), 1)
1552CDEFINES += -DATH_SUPPORT_SPECTRAL
1553endif
1554
1555#Enable WDI Event support
1556ifeq ($(CONFIG_WDI_EVENT_ENABLE), 1)
1557CDEFINES += -DWDI_EVENT_ENABLE
1558endif
1559
1560#Endianess selection
1561ifeq ($(CONFIG_LITTLE_ENDIAN), 1)
1562AH_LITTLE_ENDIAN=1234
1563CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN)
1564else
1565AH_BIG_ENDIAN=4321
1566CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN)
1567CDEFINES += -DBIG_ENDIAN_HOST
1568endif
1569
1570#Enable TX reclaim support
1571ifeq ($(CONFIG_TX_CREDIT_RECLAIM_SUPPORT), 1)
1572CDEFINES += -DTX_CREDIT_RECLAIM_SUPPORT
1573endif
1574
1575#Enable FTM support
1576ifeq ($(CONFIG_QCA_WIFI_FTM), 1)
1577CDEFINES += -DQCA_WIFI_FTM
1578endif
1579
1580#Enable Checksum Offload support
1581ifeq ($(CONFIG_CHECKSUM_OFFLOAD), 1)
1582CDEFINES += -DCHECKSUM_OFFLOAD
1583endif
1584
1585#Enable Checksum Offload support
1586ifeq ($(CONFIG_IPA_OFFLOAD), 1)
1587CDEFINES += -DIPA_OFFLOAD
1588endif
1589
1590ifneq ($(CONFIG_ARCH_MDM9630), y)
1591ifeq ($(CONFIG_ARCH_MDM9640), y)
1592CDEFINES += -DQCA_CONFIG_SMP
1593endif
1594endif
1595
1596#Enable GTK Offload
1597ifeq ($(CONFIG_GTK_OFFLOAD), 1)
1598CDEFINES += -DWLAN_FEATURE_GTK_OFFLOAD
1599CDEFINES += -DIGTK_OFFLOAD
1600endif
1601
1602#Enable GTK Offload
1603ifeq ($(CONFIG_EXT_WOW), 1)
1604CDEFINES += -DWLAN_FEATURE_EXTWOW_SUPPORT
1605endif
1606
1607#Mark it as SMP Kernel
1608ifeq ($(CONFIG_SMP),y)
1609CDEFINES += -DQCA_CONFIG_SMP
1610endif
1611
Sandeep Puligilla2111d3c2016-02-03 01:46:15 -08001612#Enable Channel Matrix restriction for all Rome only targets
1613ifneq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001614CDEFINES += -DWLAN_ENABLE_CHNL_MATRIX_RESTRICTION
Sandeep Puligilla2111d3c2016-02-03 01:46:15 -08001615endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001616
Sandeep Puligilla0e64b612016-08-26 13:20:58 -07001617#Enable OBSS feature
1618CDEFINES += -DQCA_HT_2040_COEX
1619
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001620#features specific to mobile router use case
1621ifeq ($(CONFIG_MOBILE_ROUTER), y)
1622
1623#enable MCC TO SCC switch
1624CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
1625
1626#enable wlan auto shutdown feature
1627CDEFINES += -DFEATURE_WLAN_AUTO_SHUTDOWN
1628
1629#enable for MBSSID
1630CDEFINES += -DWLAN_FEATURE_MBSSID
1631
1632#enable AP-AP ACS Optimization
1633CDEFINES += -DFEATURE_WLAN_AP_AP_ACS_OPTIMIZE
1634
1635#Enable 4address scheme
1636CDEFINES += -DFEATURE_WLAN_STA_4ADDR_SCHEME
1637
1638#Disable STA-AP Mode DFS support
1639CDEFINES += -DFEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
1640
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001641else #CONFIG_MOBILE_ROUTER
1642
1643#Open P2P device interface only for non-Mobile router use cases
1644CDEFINES += -DWLAN_OPEN_P2P_INTERFACE
1645
1646#Enable 2.4 GHz social channels in 5 GHz only mode for p2p usage
1647CDEFINES += -DWLAN_ENABLE_SOCIAL_CHANNELS_5G_ONLY
1648
1649endif #CONFIG_MOBILE_ROUTER
1650
1651#Green AP feature
1652ifeq ($(CONFIG_QCACLD_FEATURE_GREEN_AP),y)
1653CDEFINES += -DFEATURE_GREEN_AP
1654endif
1655
1656#Enable RX Full re-order OL feature only "LL and NON-MDM9630 platform"
1657ifneq ($(CONFIG_ARCH_MDM9630), y)
1658ifeq ($(CONFIG_HIF_PCI), 1)
1659CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
1660endif
1661endif
1662
1663#Enable Signed firmware support for split binary format
1664ifeq ($(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT), 1)
1665CDEFINES += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT
1666endif
1667
1668#Enable single firmware binary format
1669ifeq ($(CONFIG_QCA_SINGLE_BINARY_SUPPORT), 1)
1670CDEFINES += -DQCA_SINGLE_BINARY_SUPPORT
1671endif
1672
1673#Enable collecting target RAM dump after kernel panic
1674ifeq ($(CONFIG_TARGET_RAMDUMP_AFTER_KERNEL_PANIC), 1)
1675CDEFINES += -DTARGET_RAMDUMP_AFTER_KERNEL_PANIC
1676endif
1677
1678#Enable/disable secure firmware feature
1679ifeq ($(CONFIG_FEATURE_SECURE_FIRMWARE), 1)
1680CDEFINES += -DFEATURE_SECURE_FIRMWARE
1681endif
1682
1683ifeq ($(CONFIG_ATH_PCIE_ACCESS_DEBUG), 1)
1684CDEFINES += -DCONFIG_ATH_PCIE_ACCESS_DEBUG
1685endif
1686
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001687# Enable feature support fo Linux version QCMBR
1688ifeq ($(CONFIG_LINUX_QCMBR),y)
1689CDEFINES += -DLINUX_QCMBR
1690endif
1691
Manikandan Mohandcc21ba2016-03-15 14:31:56 -07001692# Enable featue sync tsf between multi devices
1693ifeq ($(CONFIG_WLAN_SYNC_TSF), y)
1694CDEFINES += -DWLAN_FEATURE_TSF
1695endif
Rajeev Kumare0fd9dd2015-11-16 13:33:07 -08001696
1697# Enable full rx re-order offload for adrastea
1698ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1699CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL
1700endif
1701
Rajeev Kumar321a19a2015-12-08 12:54:46 -08001702# Enable athdiag procfs debug support for adrastea
1703ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1704CDEFINES += -DCONFIG_ATH_PROCFS_DIAG_SUPPORT
1705endif
1706
Rajeev Kumar9c4809e2016-01-13 18:32:40 -08001707# Enable 11AC TX compact feature for adrastea
1708ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
1709CDEFINES += -DATH_11AC_TXCOMPACT
1710endif
1711
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001712# NOTE: CONFIG_64BIT_PADDR requires CONFIG_HELIUMPLUS
1713ifeq (y,$(filter y,$(CONFIG_CNSS_EOS) $(CONFIG_ICNSS)))
1714CONFIG_HELIUMPLUS := y
1715CONFIG_64BIT_PADDR := y
1716CONFIG_FEATURE_TSO := y
1717CONFIG_FEATURE_TSO_DEBUG := y
1718ifeq ($(CONFIG_HELIUMPLUS),y)
1719CDEFINES += -DHELIUMPLUS_PADDR64
1720CDEFINES += -DHELIUMPLUS
Dhanashri Atre48c2ae62015-12-15 18:07:10 -08001721CDEFINES += -DAR900B
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001722ifeq ($(CONFIG_64BIT_PADDR),y)
1723CDEFINES += -DHTT_PADDR64
1724endif
1725endif
1726endif
1727
1728ifeq ($(CONFIG_FEATURE_TSO),y)
1729CDEFINES += -DFEATURE_TSO
1730endif
1731ifeq ($(CONFIG_FEATURE_TSO_DEBUG),y)
1732CDEFINES += -DFEATURE_TSO_DEBUG
1733endif
1734
1735ifeq ($(CONFIG_WLAN_LRO), y)
1736CDEFINES += -DFEATURE_LRO
1737endif
1738
1739ifeq ($(CONFIG_MOBILE_ROUTER), y)
1740CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
1741endif
1742
1743ifeq ($(CONFIG_MPC_UT_FRAMEWORK), y)
1744CDEFINES += -DMPC_UT_FRAMEWORK
1745endif
1746
1747ifeq ($(CONFIG_WLAN_OFFLOAD_PACKETS),y)
1748CDEFINES += -DWLAN_FEATURE_OFFLOAD_PACKETS
1749endif
1750
1751ifeq ($(CONFIG_WLAN_FEATURE_MEMDUMP),y)
1752CDEFINES += -DWLAN_FEATURE_MEMDUMP
1753endif
1754
Padma, Santhosh Kumard7cc0792016-06-28 18:54:12 +05301755ifeq ($(CONFIG_WLAN_FEATURE_DISA),y)
1756CDEFINES += -DWLAN_FEATURE_DISA
1757endif
1758
Ravi Joshi61c3c7a2015-11-09 18:41:20 -08001759ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y)
1760CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION
1761endif
1762
Chandrasekaran Manishekar068e25e2016-03-07 11:51:07 +05301763ifeq ($(CONFIG_MCC_TO_SCC_SWITCH), y)
1764CDEFINES += -DFEATURE_WLAN_MCC_TO_SCC_SWITCH
1765endif
1766
Ravi Joshia063dd92016-05-25 16:43:13 -07001767ifeq ($(CONFIG_WLAN_FEATURE_NAN_DATAPATH), y)
1768CDEFINES += -DWLAN_FEATURE_NAN_DATAPATH
1769endif
1770
Leo Chang5f7a1e02016-11-04 14:04:26 -07001771ifeq ($(CONFIG_LITHIUM),y)
Houston Hoffman06fd5662017-02-08 21:41:20 -08001772CDEFINES += -DCONFIG_SHADOW_V2
Aravind Narasimhan4ed314d2016-11-14 16:56:42 -08001773CDEFINES += -DQCA6290_HEADERS_DEF
Venkata Sharath Chandra Manchala5d714d82017-01-18 14:56:32 -08001774CDEFINES += -DQCA_WIFI_QCA6290
Leo Chang5f7a1e02016-11-04 14:04:26 -07001775CDEFINES += -DQCA_WIFI_QCA8074
Leo Chang395cbb52016-11-11 14:35:03 -08001776CDEFINES += -DQCA_WIFI_NAPIER_EMULATION
Leo Chang5f7a1e02016-11-04 14:04:26 -07001777CDEFINES += -DQCA_WIFI_QCA8074_VP
Ravi Joshifc2ed782016-11-22 17:36:50 -08001778CDEFINES += -DDP_INTR_POLL_BASED
Ankit Gupta120b9b02016-12-06 16:27:51 -08001779CDEFINES += -DTX_PER_VDEV_DESC_POOL
Leo Chang5f7a1e02016-11-04 14:04:26 -07001780endif
1781
1782# Dummy flag for WIN/MCL converged data path compilation
1783CDEFINES += -DDP_PRINT_ENABLE=0
1784CDEFINES += -DATH_SUPPORT_WRAP=0
Dhanashri Atre33e147e2017-01-20 14:52:18 -08001785CDEFINES += -DQCA_HOST2FW_RXBUF_RING
Leo Chang5f7a1e02016-11-04 14:04:26 -07001786#endof dummy flags
1787
Mahesh Kumar Kalikot Veetilc0233a72016-10-27 15:06:05 -07001788ifeq ($(CONFIG_WLAN_DEBUGFS), y)
1789CDEFINES += -DWLAN_DEBUGFS
1790endif
1791
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001792KBUILD_CPPFLAGS += $(CDEFINES)
1793
1794# Currently, for versions of gcc which support it, the kernel Makefile
1795# is disabling the maybe-uninitialized warning. Re-enable it for the
1796# WLAN driver. Note that we must use EXTRA_CFLAGS here so that it
1797# will override the kernel settings.
1798ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
1799EXTRA_CFLAGS += -Wmaybe-uninitialized
Houston Hoffmand4ba4312017-01-13 18:30:15 -08001800
Leo Chang5f7a1e02016-11-04 14:04:26 -07001801ifneq (y,$(CONFIG_ARCH_MSM))
1802EXTRA_CFLAGS += -Wframe-larger-than=4096
1803endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001804endif
Jeff Johnson522db002016-10-05 16:30:41 -07001805EXTRA_CFLAGS += -Wmissing-prototypes
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001806
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08001807ifeq ($(call cc-option-yn, -Wheader-guard),y)
1808EXTRA_CFLAGS += -Wheader-guard
1809endif
Samuel Ahnc9c48ca2016-09-19 15:46:36 +05301810# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
1811# same a the module name. The host driver will then append MULTI_IF_NAME to
1812# any string that must be unique for all instances of the driver on the system.
1813# This allows multiple instances of the driver with different module names.
1814# If the module name is wlan, leave MULTI_IF_NAME undefined and the code will
1815# treat the driver as the primary driver.
1816ifneq ($(MODNAME), wlan)
1817CDEFINES += -DMULTI_IF_NAME=\"$(MODNAME)\"
1818endif
1819
1820# WLAN_HDD_ADAPTER_MAGIC must be unique for all instances of the driver on the
1821# system. If it is not defined, then the host driver will use the first 4
1822# characters (including NULL) of MULTI_IF_NAME to construct
1823# WLAN_HDD_ADAPTER_MAGIC.
1824ifdef WLAN_HDD_ADAPTER_MAGIC
1825CDEFINES += -DWLAN_HDD_ADAPTER_MAGIC=$(WLAN_HDD_ADAPTER_MAGIC)
1826endif
Srinivas Girigowda0a85ccd2016-12-01 14:58:08 -08001827
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001828# Module information used by KBuild framework
1829obj-$(CONFIG_QCA_CLD_WLAN) += $(MODNAME).o
1830$(MODNAME)-y := $(OBJS)