Kbuild 73 KB

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