Kbuild 73 KB

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