Kbuild 73 KB

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