Android.mk 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610
  1. #
  2. # Copyright (C) 2008 The Android Open Source Project
  3. #
  4. # This software may be distributed under the terms of the BSD license.
  5. # See README for more details.
  6. #
  7. LOCAL_PATH := $(call my-dir)
  8. PKG_CONFIG ?= pkg-config
  9. ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),)
  10. CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) := y
  11. endif
  12. include $(LOCAL_PATH)/android.config
  13. # To ignore possible wrong network configurations
  14. L_CFLAGS = -DWPA_IGNORE_CONFIG_ERRORS
  15. L_CFLAGS += -DVERSION_STR_POSTFIX=\"-$(PLATFORM_VERSION)\"
  16. # Set Android log name
  17. L_CFLAGS += -DANDROID_LOG_NAME=\"wpa_supplicant\"
  18. # Disable unused parameter warnings
  19. L_CFLAGS += -Wno-unused-parameter
  20. # Set Android extended P2P functionality
  21. L_CFLAGS += -DANDROID_P2P
  22. ifeq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),)
  23. L_CFLAGS += -DANDROID_P2P_STUB
  24. endif
  25. # Disable roaming in wpa_supplicant
  26. ifdef CONFIG_NO_ROAMING
  27. L_CFLAGS += -DCONFIG_NO_ROAMING
  28. endif
  29. # Use Android specific directory for control interface sockets
  30. L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\"
  31. L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/system/wpa_supplicant\"
  32. # To force sizeof(enum) = 4
  33. ifeq ($(TARGET_ARCH),arm)
  34. L_CFLAGS += -mabi=aapcs-linux
  35. endif
  36. INCLUDES = $(LOCAL_PATH)
  37. INCLUDES += $(LOCAL_PATH)/src
  38. INCLUDES += $(LOCAL_PATH)/src/common
  39. # INCLUDES += $(LOCAL_PATH)/src/crypto # To force proper includes
  40. INCLUDES += $(LOCAL_PATH)/src/drivers
  41. INCLUDES += $(LOCAL_PATH)/src/eap_common
  42. INCLUDES += $(LOCAL_PATH)/src/eapol_supp
  43. INCLUDES += $(LOCAL_PATH)/src/eap_peer
  44. INCLUDES += $(LOCAL_PATH)/src/eap_server
  45. INCLUDES += $(LOCAL_PATH)/src/hlr_auc_gw
  46. INCLUDES += $(LOCAL_PATH)/src/l2_packet
  47. INCLUDES += $(LOCAL_PATH)/src/radius
  48. INCLUDES += $(LOCAL_PATH)/src/rsn_supp
  49. INCLUDES += $(LOCAL_PATH)/src/tls
  50. INCLUDES += $(LOCAL_PATH)/src/utils
  51. INCLUDES += $(LOCAL_PATH)/src/wps
  52. INCLUDES += external/openssl/include
  53. INCLUDES += system/security/keystore/include
  54. ifdef CONFIG_DRIVER_NL80211
  55. ifneq ($(wildcard external/libnl),)
  56. INCLUDES += external/libnl/include
  57. else
  58. INCLUDES += external/libnl-headers
  59. endif
  60. endif
  61. ifdef CONFIG_FIPS
  62. CONFIG_NO_RANDOM_POOL=
  63. CONFIG_OPENSSL_CMAC=y
  64. endif
  65. OBJS = config.c
  66. OBJS += notify.c
  67. OBJS += bss.c
  68. OBJS += eap_register.c
  69. OBJS += src/utils/common.c
  70. OBJS += src/utils/wpa_debug.c
  71. OBJS += src/utils/wpabuf.c
  72. OBJS += wmm_ac.c
  73. OBJS_p = wpa_passphrase.c
  74. OBJS_p += src/utils/common.c
  75. OBJS_p += src/utils/wpa_debug.c
  76. OBJS_p += src/utils/wpabuf.c
  77. OBJS_c = wpa_cli.c src/common/wpa_ctrl.c
  78. OBJS_c += src/utils/wpa_debug.c
  79. OBJS_c += src/utils/common.c
  80. OBJS_d =
  81. OBJS_priv =
  82. ifndef CONFIG_OS
  83. ifdef CONFIG_NATIVE_WINDOWS
  84. CONFIG_OS=win32
  85. else
  86. CONFIG_OS=unix
  87. endif
  88. endif
  89. ifeq ($(CONFIG_OS), internal)
  90. L_CFLAGS += -DOS_NO_C_LIB_DEFINES
  91. endif
  92. OBJS += src/utils/os_$(CONFIG_OS).c
  93. OBJS_p += src/utils/os_$(CONFIG_OS).c
  94. OBJS_c += src/utils/os_$(CONFIG_OS).c
  95. ifdef CONFIG_WPA_TRACE
  96. L_CFLAGS += -DWPA_TRACE
  97. OBJS += src/utils/trace.c
  98. OBJS_p += src/utils/trace.c
  99. OBJS_c += src/utils/trace.c
  100. LDFLAGS += -rdynamic
  101. L_CFLAGS += -funwind-tables
  102. ifdef CONFIG_WPA_TRACE_BFD
  103. L_CFLAGS += -DWPA_TRACE_BFD
  104. LIBS += -lbfd
  105. LIBS_p += -lbfd
  106. LIBS_c += -lbfd
  107. endif
  108. endif
  109. ifndef CONFIG_ELOOP
  110. CONFIG_ELOOP=eloop
  111. endif
  112. OBJS += src/utils/$(CONFIG_ELOOP).c
  113. OBJS_c += src/utils/$(CONFIG_ELOOP).c
  114. ifdef CONFIG_ELOOP_POLL
  115. L_CFLAGS += -DCONFIG_ELOOP_POLL
  116. endif
  117. ifdef CONFIG_ELOOP_EPOLL
  118. L_CFLAGS += -DCONFIG_ELOOP_EPOLL
  119. endif
  120. ifdef CONFIG_EAPOL_TEST
  121. L_CFLAGS += -Werror -DEAPOL_TEST
  122. endif
  123. ifdef CONFIG_HT_OVERRIDES
  124. L_CFLAGS += -DCONFIG_HT_OVERRIDES
  125. endif
  126. ifdef CONFIG_VHT_OVERRIDES
  127. L_CFLAGS += -DCONFIG_VHT_OVERRIDES
  128. endif
  129. ifndef CONFIG_BACKEND
  130. CONFIG_BACKEND=file
  131. endif
  132. ifeq ($(CONFIG_BACKEND), file)
  133. OBJS += config_file.c
  134. ifndef CONFIG_NO_CONFIG_BLOBS
  135. NEED_BASE64=y
  136. endif
  137. L_CFLAGS += -DCONFIG_BACKEND_FILE
  138. endif
  139. ifeq ($(CONFIG_BACKEND), winreg)
  140. OBJS += config_winreg.c
  141. endif
  142. ifeq ($(CONFIG_BACKEND), none)
  143. OBJS += config_none.c
  144. endif
  145. ifdef CONFIG_NO_CONFIG_WRITE
  146. L_CFLAGS += -DCONFIG_NO_CONFIG_WRITE
  147. endif
  148. ifdef CONFIG_NO_CONFIG_BLOBS
  149. L_CFLAGS += -DCONFIG_NO_CONFIG_BLOBS
  150. endif
  151. ifdef CONFIG_NO_SCAN_PROCESSING
  152. L_CFLAGS += -DCONFIG_NO_SCAN_PROCESSING
  153. endif
  154. ifdef CONFIG_SUITEB
  155. L_CFLAGS += -DCONFIG_SUITEB
  156. NEED_SHA256=y
  157. NEED_AES_OMAC1=y
  158. endif
  159. ifdef CONFIG_IEEE80211W
  160. L_CFLAGS += -DCONFIG_IEEE80211W
  161. NEED_SHA256=y
  162. NEED_AES_OMAC1=y
  163. endif
  164. ifdef CONFIG_IEEE80211R
  165. L_CFLAGS += -DCONFIG_IEEE80211R
  166. OBJS += src/rsn_supp/wpa_ft.c
  167. NEED_SHA256=y
  168. NEED_AES_OMAC1=y
  169. endif
  170. ifdef CONFIG_MESH
  171. NEED_80211_COMMON=y
  172. NEED_SHA256=y
  173. NEED_AES_SIV=y
  174. NEED_AES_OMAC1=y
  175. NEED_AES_CTR=y
  176. CONFIG_SAE=y
  177. CONFIG_AP=y
  178. L_CFLAGS += -DCONFIG_MESH
  179. OBJS += mesh.c
  180. OBJS += mesh_mpm.c
  181. OBJS += mesh_rsn.c
  182. endif
  183. ifdef CONFIG_SAE
  184. L_CFLAGS += -DCONFIG_SAE
  185. OBJS += src/common/sae.c
  186. NEED_ECC=y
  187. NEED_DH_GROUPS=y
  188. endif
  189. ifdef CONFIG_WNM
  190. L_CFLAGS += -DCONFIG_WNM
  191. OBJS += wnm_sta.c
  192. endif
  193. ifdef CONFIG_TDLS
  194. L_CFLAGS += -DCONFIG_TDLS
  195. OBJS += src/rsn_supp/tdls.c
  196. NEED_SHA256=y
  197. NEED_AES_OMAC1=y
  198. endif
  199. ifdef CONFIG_TDLS_TESTING
  200. L_CFLAGS += -DCONFIG_TDLS_TESTING
  201. endif
  202. ifdef CONFIG_PEERKEY
  203. L_CFLAGS += -DCONFIG_PEERKEY
  204. endif
  205. ifndef CONFIG_NO_WPA
  206. OBJS += src/rsn_supp/wpa.c
  207. OBJS += src/rsn_supp/preauth.c
  208. OBJS += src/rsn_supp/pmksa_cache.c
  209. OBJS += src/rsn_supp/peerkey.c
  210. OBJS += src/rsn_supp/wpa_ie.c
  211. OBJS += src/common/wpa_common.c
  212. NEED_AES=y
  213. NEED_SHA1=y
  214. NEED_MD5=y
  215. NEED_RC4=y
  216. else
  217. L_CFLAGS += -DCONFIG_NO_WPA
  218. endif
  219. ifdef CONFIG_IBSS_RSN
  220. NEED_RSN_AUTHENTICATOR=y
  221. L_CFLAGS += -DCONFIG_IBSS_RSN
  222. OBJS += ibss_rsn.c
  223. endif
  224. ifdef CONFIG_P2P
  225. OBJS += p2p_supplicant.c
  226. OBJS += src/p2p/p2p.c
  227. OBJS += src/p2p/p2p_utils.c
  228. OBJS += src/p2p/p2p_parse.c
  229. OBJS += src/p2p/p2p_build.c
  230. OBJS += src/p2p/p2p_go_neg.c
  231. OBJS += src/p2p/p2p_sd.c
  232. OBJS += src/p2p/p2p_pd.c
  233. OBJS += src/p2p/p2p_invitation.c
  234. OBJS += src/p2p/p2p_dev_disc.c
  235. OBJS += src/p2p/p2p_group.c
  236. OBJS += src/ap/p2p_hostapd.c
  237. OBJS += src/utils/bitfield.c
  238. L_CFLAGS += -DCONFIG_P2P
  239. NEED_GAS=y
  240. NEED_OFFCHANNEL=y
  241. CONFIG_WPS=y
  242. CONFIG_AP=y
  243. ifdef CONFIG_P2P_STRICT
  244. L_CFLAGS += -DCONFIG_P2P_STRICT
  245. endif
  246. endif
  247. ifdef CONFIG_WIFI_DISPLAY
  248. L_CFLAGS += -DCONFIG_WIFI_DISPLAY
  249. OBJS += wifi_display.c
  250. endif
  251. ifdef CONFIG_HS20
  252. OBJS += hs20_supplicant.c
  253. L_CFLAGS += -DCONFIG_HS20
  254. CONFIG_INTERWORKING=y
  255. NEED_AES_OMAC1=y
  256. endif
  257. ifdef CONFIG_INTERWORKING
  258. OBJS += interworking.c
  259. L_CFLAGS += -DCONFIG_INTERWORKING
  260. NEED_GAS=y
  261. endif
  262. include $(LOCAL_PATH)/src/drivers/drivers.mk
  263. ifdef CONFIG_AP
  264. OBJS_d += $(DRV_BOTH_OBJS)
  265. L_CFLAGS += $(DRV_BOTH_CFLAGS)
  266. LDFLAGS += $(DRV_BOTH_LDFLAGS)
  267. LIBS += $(DRV_BOTH_LIBS)
  268. else
  269. NEED_AP_MLME=
  270. OBJS_d += $(DRV_WPA_OBJS)
  271. L_CFLAGS += $(DRV_WPA_CFLAGS)
  272. LDFLAGS += $(DRV_WPA_LDFLAGS)
  273. LIBS += $(DRV_WPA_LIBS)
  274. endif
  275. ifndef CONFIG_L2_PACKET
  276. CONFIG_L2_PACKET=linux
  277. endif
  278. OBJS_l2 += src/l2_packet/l2_packet_$(CONFIG_L2_PACKET).c
  279. ifeq ($(CONFIG_L2_PACKET), pcap)
  280. ifdef CONFIG_WINPCAP
  281. L_CFLAGS += -DCONFIG_WINPCAP
  282. LIBS += -lwpcap -lpacket
  283. LIBS_w += -lwpcap
  284. else
  285. LIBS += -ldnet -lpcap
  286. endif
  287. endif
  288. ifeq ($(CONFIG_L2_PACKET), winpcap)
  289. LIBS += -lwpcap -lpacket
  290. LIBS_w += -lwpcap
  291. endif
  292. ifeq ($(CONFIG_L2_PACKET), freebsd)
  293. LIBS += -lpcap
  294. endif
  295. ifdef CONFIG_ERP
  296. L_CFLAGS += -DCONFIG_ERP
  297. NEED_SHA256=y
  298. NEED_HMAC_SHA256_KDF=y
  299. endif
  300. ifdef CONFIG_EAP_TLS
  301. # EAP-TLS
  302. ifeq ($(CONFIG_EAP_TLS), dyn)
  303. L_CFLAGS += -DEAP_TLS_DYNAMIC
  304. EAPDYN += src/eap_peer/eap_tls.so
  305. else
  306. L_CFLAGS += -DEAP_TLS
  307. OBJS += src/eap_peer/eap_tls.c
  308. OBJS_h += src/eap_server/eap_server_tls.c
  309. endif
  310. TLS_FUNCS=y
  311. CONFIG_IEEE8021X_EAPOL=y
  312. endif
  313. ifdef CONFIG_EAP_UNAUTH_TLS
  314. # EAP-UNAUTH-TLS
  315. L_CFLAGS += -DEAP_UNAUTH_TLS
  316. ifndef CONFIG_EAP_UNAUTH_TLS
  317. OBJS += src/eap_peer/eap_tls.c
  318. OBJS_h += src/eap_server/eap_server_tls.c
  319. TLS_FUNCS=y
  320. endif
  321. CONFIG_IEEE8021X_EAPOL=y
  322. endif
  323. ifdef CONFIG_EAP_PEAP
  324. # EAP-PEAP
  325. ifeq ($(CONFIG_EAP_PEAP), dyn)
  326. L_CFLAGS += -DEAP_PEAP_DYNAMIC
  327. EAPDYN += src/eap_peer/eap_peap.so
  328. else
  329. L_CFLAGS += -DEAP_PEAP
  330. OBJS += src/eap_peer/eap_peap.c
  331. OBJS += src/eap_common/eap_peap_common.c
  332. OBJS_h += src/eap_server/eap_server_peap.c
  333. endif
  334. TLS_FUNCS=y
  335. CONFIG_IEEE8021X_EAPOL=y
  336. endif
  337. ifdef CONFIG_EAP_TTLS
  338. # EAP-TTLS
  339. ifeq ($(CONFIG_EAP_TTLS), dyn)
  340. L_CFLAGS += -DEAP_TTLS_DYNAMIC
  341. EAPDYN += src/eap_peer/eap_ttls.so
  342. else
  343. L_CFLAGS += -DEAP_TTLS
  344. OBJS += src/eap_peer/eap_ttls.c
  345. OBJS_h += src/eap_server/eap_server_ttls.c
  346. endif
  347. MS_FUNCS=y
  348. TLS_FUNCS=y
  349. CHAP=y
  350. CONFIG_IEEE8021X_EAPOL=y
  351. endif
  352. ifdef CONFIG_EAP_MD5
  353. # EAP-MD5
  354. ifeq ($(CONFIG_EAP_MD5), dyn)
  355. L_CFLAGS += -DEAP_MD5_DYNAMIC
  356. EAPDYN += src/eap_peer/eap_md5.so
  357. else
  358. L_CFLAGS += -DEAP_MD5
  359. OBJS += src/eap_peer/eap_md5.c
  360. OBJS_h += src/eap_server/eap_server_md5.c
  361. endif
  362. CHAP=y
  363. CONFIG_IEEE8021X_EAPOL=y
  364. endif
  365. # backwards compatibility for old spelling
  366. ifdef CONFIG_MSCHAPV2
  367. ifndef CONFIG_EAP_MSCHAPV2
  368. CONFIG_EAP_MSCHAPV2=y
  369. endif
  370. endif
  371. ifdef CONFIG_EAP_MSCHAPV2
  372. # EAP-MSCHAPv2
  373. ifeq ($(CONFIG_EAP_MSCHAPV2), dyn)
  374. L_CFLAGS += -DEAP_MSCHAPv2_DYNAMIC
  375. EAPDYN += src/eap_peer/eap_mschapv2.so
  376. EAPDYN += src/eap_peer/mschapv2.so
  377. else
  378. L_CFLAGS += -DEAP_MSCHAPv2
  379. OBJS += src/eap_peer/eap_mschapv2.c
  380. OBJS += src/eap_peer/mschapv2.c
  381. OBJS_h += src/eap_server/eap_server_mschapv2.c
  382. endif
  383. MS_FUNCS=y
  384. CONFIG_IEEE8021X_EAPOL=y
  385. endif
  386. ifdef CONFIG_EAP_GTC
  387. # EAP-GTC
  388. ifeq ($(CONFIG_EAP_GTC), dyn)
  389. L_CFLAGS += -DEAP_GTC_DYNAMIC
  390. EAPDYN += src/eap_peer/eap_gtc.so
  391. else
  392. L_CFLAGS += -DEAP_GTC
  393. OBJS += src/eap_peer/eap_gtc.c
  394. OBJS_h += src/eap_server/eap_server_gtc.c
  395. endif
  396. CONFIG_IEEE8021X_EAPOL=y
  397. endif
  398. ifdef CONFIG_EAP_OTP
  399. # EAP-OTP
  400. ifeq ($(CONFIG_EAP_OTP), dyn)
  401. L_CFLAGS += -DEAP_OTP_DYNAMIC
  402. EAPDYN += src/eap_peer/eap_otp.so
  403. else
  404. L_CFLAGS += -DEAP_OTP
  405. OBJS += src/eap_peer/eap_otp.c
  406. endif
  407. CONFIG_IEEE8021X_EAPOL=y
  408. endif
  409. ifdef CONFIG_EAP_SIM
  410. # EAP-SIM
  411. ifeq ($(CONFIG_EAP_SIM), dyn)
  412. L_CFLAGS += -DEAP_SIM_DYNAMIC
  413. EAPDYN += src/eap_peer/eap_sim.so
  414. else
  415. L_CFLAGS += -DEAP_SIM
  416. OBJS += src/eap_peer/eap_sim.c
  417. OBJS_h += src/eap_server/eap_server_sim.c
  418. endif
  419. CONFIG_IEEE8021X_EAPOL=y
  420. CONFIG_EAP_SIM_COMMON=y
  421. NEED_AES_CBC=y
  422. endif
  423. ifdef CONFIG_EAP_LEAP
  424. # EAP-LEAP
  425. ifeq ($(CONFIG_EAP_LEAP), dyn)
  426. L_CFLAGS += -DEAP_LEAP_DYNAMIC
  427. EAPDYN += src/eap_peer/eap_leap.so
  428. else
  429. L_CFLAGS += -DEAP_LEAP
  430. OBJS += src/eap_peer/eap_leap.c
  431. endif
  432. MS_FUNCS=y
  433. CONFIG_IEEE8021X_EAPOL=y
  434. endif
  435. ifdef CONFIG_EAP_PSK
  436. # EAP-PSK
  437. ifeq ($(CONFIG_EAP_PSK), dyn)
  438. L_CFLAGS += -DEAP_PSK_DYNAMIC
  439. EAPDYN += src/eap_peer/eap_psk.so
  440. else
  441. L_CFLAGS += -DEAP_PSK
  442. OBJS += src/eap_peer/eap_psk.c src/eap_common/eap_psk_common.c
  443. OBJS_h += src/eap_server/eap_server_psk.c
  444. endif
  445. CONFIG_IEEE8021X_EAPOL=y
  446. NEED_AES=y
  447. NEED_AES_OMAC1=y
  448. NEED_AES_ENCBLOCK=y
  449. NEED_AES_EAX=y
  450. endif
  451. ifdef CONFIG_EAP_AKA
  452. # EAP-AKA
  453. ifeq ($(CONFIG_EAP_AKA), dyn)
  454. L_CFLAGS += -DEAP_AKA_DYNAMIC
  455. EAPDYN += src/eap_peer/eap_aka.so
  456. else
  457. L_CFLAGS += -DEAP_AKA
  458. OBJS += src/eap_peer/eap_aka.c
  459. OBJS_h += src/eap_server/eap_server_aka.c
  460. endif
  461. CONFIG_IEEE8021X_EAPOL=y
  462. CONFIG_EAP_SIM_COMMON=y
  463. NEED_AES_CBC=y
  464. endif
  465. ifdef CONFIG_EAP_PROXY
  466. L_CFLAGS += -DCONFIG_EAP_PROXY
  467. OBJS += src/eap_peer/eap_proxy_$(CONFIG_EAP_PROXY).c
  468. include $(LOCAL_PATH)/eap_proxy_$(CONFIG_EAP_PROXY).mk
  469. CONFIG_IEEE8021X_EAPOL=y
  470. endif
  471. ifdef CONFIG_EAP_AKA_PRIME
  472. # EAP-AKA'
  473. ifeq ($(CONFIG_EAP_AKA_PRIME), dyn)
  474. L_CFLAGS += -DEAP_AKA_PRIME_DYNAMIC
  475. else
  476. L_CFLAGS += -DEAP_AKA_PRIME
  477. endif
  478. NEED_SHA256=y
  479. endif
  480. ifdef CONFIG_EAP_SIM_COMMON
  481. OBJS += src/eap_common/eap_sim_common.c
  482. OBJS_h += src/eap_server/eap_sim_db.c
  483. NEED_AES=y
  484. NEED_FIPS186_2_PRF=y
  485. endif
  486. ifdef CONFIG_EAP_FAST
  487. # EAP-FAST
  488. ifeq ($(CONFIG_EAP_FAST), dyn)
  489. L_CFLAGS += -DEAP_FAST_DYNAMIC
  490. EAPDYN += src/eap_peer/eap_fast.so
  491. EAPDYN += src/eap_common/eap_fast_common.c
  492. else
  493. L_CFLAGS += -DEAP_FAST
  494. OBJS += src/eap_peer/eap_fast.c src/eap_peer/eap_fast_pac.c
  495. OBJS += src/eap_common/eap_fast_common.c
  496. OBJS_h += src/eap_server/eap_server_fast.c
  497. endif
  498. TLS_FUNCS=y
  499. CONFIG_IEEE8021X_EAPOL=y
  500. NEED_T_PRF=y
  501. endif
  502. ifdef CONFIG_EAP_PAX
  503. # EAP-PAX
  504. ifeq ($(CONFIG_EAP_PAX), dyn)
  505. L_CFLAGS += -DEAP_PAX_DYNAMIC
  506. EAPDYN += src/eap_peer/eap_pax.so
  507. else
  508. L_CFLAGS += -DEAP_PAX
  509. OBJS += src/eap_peer/eap_pax.c src/eap_common/eap_pax_common.c
  510. OBJS_h += src/eap_server/eap_server_pax.c
  511. endif
  512. CONFIG_IEEE8021X_EAPOL=y
  513. endif
  514. ifdef CONFIG_EAP_SAKE
  515. # EAP-SAKE
  516. ifeq ($(CONFIG_EAP_SAKE), dyn)
  517. L_CFLAGS += -DEAP_SAKE_DYNAMIC
  518. EAPDYN += src/eap_peer/eap_sake.so
  519. else
  520. L_CFLAGS += -DEAP_SAKE
  521. OBJS += src/eap_peer/eap_sake.c src/eap_common/eap_sake_common.c
  522. OBJS_h += src/eap_server/eap_server_sake.c
  523. endif
  524. CONFIG_IEEE8021X_EAPOL=y
  525. endif
  526. ifdef CONFIG_EAP_GPSK
  527. # EAP-GPSK
  528. ifeq ($(CONFIG_EAP_GPSK), dyn)
  529. L_CFLAGS += -DEAP_GPSK_DYNAMIC
  530. EAPDYN += src/eap_peer/eap_gpsk.so
  531. else
  532. L_CFLAGS += -DEAP_GPSK
  533. OBJS += src/eap_peer/eap_gpsk.c src/eap_common/eap_gpsk_common.c
  534. OBJS_h += src/eap_server/eap_server_gpsk.c
  535. endif
  536. CONFIG_IEEE8021X_EAPOL=y
  537. ifdef CONFIG_EAP_GPSK_SHA256
  538. L_CFLAGS += -DEAP_GPSK_SHA256
  539. endif
  540. NEED_SHA256=y
  541. NEED_AES_OMAC1=y
  542. endif
  543. ifdef CONFIG_EAP_PWD
  544. L_CFLAGS += -DEAP_PWD
  545. OBJS += src/eap_peer/eap_pwd.c src/eap_common/eap_pwd_common.c
  546. OBJS_h += src/eap_server/eap_server_pwd.c
  547. CONFIG_IEEE8021X_EAPOL=y
  548. NEED_SHA256=y
  549. endif
  550. ifdef CONFIG_EAP_EKE
  551. # EAP-EKE
  552. ifeq ($(CONFIG_EAP_EKE), dyn)
  553. L_CFLAGS += -DEAP_EKE_DYNAMIC
  554. EAPDYN += src/eap_peer/eap_eke.so
  555. else
  556. L_CFLAGS += -DEAP_EKE
  557. OBJS += src/eap_peer/eap_eke.c src/eap_common/eap_eke_common.c
  558. OBJS_h += src/eap_server/eap_server_eke.c
  559. endif
  560. CONFIG_IEEE8021X_EAPOL=y
  561. NEED_DH_GROUPS=y
  562. NEED_DH_GROUPS_ALL=y
  563. NEED_SHA256=y
  564. endif
  565. ifdef CONFIG_WPS
  566. # EAP-WSC
  567. L_CFLAGS += -DCONFIG_WPS -DEAP_WSC
  568. OBJS += wps_supplicant.c
  569. OBJS += src/utils/uuid.c
  570. OBJS += src/eap_peer/eap_wsc.c src/eap_common/eap_wsc_common.c
  571. OBJS += src/wps/wps.c
  572. OBJS += src/wps/wps_common.c
  573. OBJS += src/wps/wps_attr_parse.c
  574. OBJS += src/wps/wps_attr_build.c
  575. OBJS += src/wps/wps_attr_process.c
  576. OBJS += src/wps/wps_dev_attr.c
  577. OBJS += src/wps/wps_enrollee.c
  578. OBJS += src/wps/wps_registrar.c
  579. OBJS_h += src/eap_server/eap_server_wsc.c
  580. CONFIG_IEEE8021X_EAPOL=y
  581. NEED_DH_GROUPS=y
  582. NEED_SHA256=y
  583. NEED_BASE64=y
  584. NEED_AES_CBC=y
  585. NEED_MODEXP=y
  586. ifdef CONFIG_WPS_NFC
  587. L_CFLAGS += -DCONFIG_WPS_NFC
  588. OBJS += src/wps/ndef.c
  589. NEED_WPS_OOB=y
  590. endif
  591. ifdef NEED_WPS_OOB
  592. L_CFLAGS += -DCONFIG_WPS_OOB
  593. endif
  594. ifdef CONFIG_WPS_ER
  595. CONFIG_WPS_UPNP=y
  596. L_CFLAGS += -DCONFIG_WPS_ER
  597. OBJS += src/wps/wps_er.c
  598. OBJS += src/wps/wps_er_ssdp.c
  599. endif
  600. ifdef CONFIG_WPS_UPNP
  601. L_CFLAGS += -DCONFIG_WPS_UPNP
  602. OBJS += src/wps/wps_upnp.c
  603. OBJS += src/wps/wps_upnp_ssdp.c
  604. OBJS += src/wps/wps_upnp_web.c
  605. OBJS += src/wps/wps_upnp_event.c
  606. OBJS += src/wps/wps_upnp_ap.c
  607. OBJS += src/wps/upnp_xml.c
  608. OBJS += src/wps/httpread.c
  609. OBJS += src/wps/http_client.c
  610. OBJS += src/wps/http_server.c
  611. endif
  612. ifdef CONFIG_WPS_STRICT
  613. L_CFLAGS += -DCONFIG_WPS_STRICT
  614. OBJS += src/wps/wps_validate.c
  615. endif
  616. ifdef CONFIG_WPS_TESTING
  617. L_CFLAGS += -DCONFIG_WPS_TESTING
  618. endif
  619. ifdef CONFIG_WPS_REG_DISABLE_OPEN
  620. L_CFLAGS += -DCONFIG_WPS_REG_DISABLE_OPEN
  621. endif
  622. endif
  623. ifdef CONFIG_EAP_IKEV2
  624. # EAP-IKEv2
  625. ifeq ($(CONFIG_EAP_IKEV2), dyn)
  626. L_CFLAGS += -DEAP_IKEV2_DYNAMIC
  627. EAPDYN += src/eap_peer/eap_ikev2.so src/eap_peer/ikev2.c
  628. EAPDYN += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c
  629. else
  630. L_CFLAGS += -DEAP_IKEV2
  631. OBJS += src/eap_peer/eap_ikev2.c src/eap_peer/ikev2.c
  632. OBJS += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c
  633. OBJS_h += src/eap_server/eap_server_ikev2.c
  634. OBJS_h += src/eap_server/ikev2.c
  635. endif
  636. CONFIG_IEEE8021X_EAPOL=y
  637. NEED_DH_GROUPS=y
  638. NEED_DH_GROUPS_ALL=y
  639. NEED_MODEXP=y
  640. NEED_CIPHER=y
  641. endif
  642. ifdef CONFIG_EAP_VENDOR_TEST
  643. ifeq ($(CONFIG_EAP_VENDOR_TEST), dyn)
  644. L_CFLAGS += -DEAP_VENDOR_TEST_DYNAMIC
  645. EAPDYN += src/eap_peer/eap_vendor_test.so
  646. else
  647. L_CFLAGS += -DEAP_VENDOR_TEST
  648. OBJS += src/eap_peer/eap_vendor_test.c
  649. OBJS_h += src/eap_server/eap_server_vendor_test.c
  650. endif
  651. CONFIG_IEEE8021X_EAPOL=y
  652. endif
  653. ifdef CONFIG_EAP_TNC
  654. # EAP-TNC
  655. L_CFLAGS += -DEAP_TNC
  656. OBJS += src/eap_peer/eap_tnc.c
  657. OBJS += src/eap_peer/tncc.c
  658. OBJS_h += src/eap_server/eap_server_tnc.c
  659. OBJS_h += src/eap_server/tncs.c
  660. NEED_BASE64=y
  661. ifndef CONFIG_NATIVE_WINDOWS
  662. ifndef CONFIG_DRIVER_BSD
  663. LIBS += -ldl
  664. endif
  665. endif
  666. endif
  667. ifdef CONFIG_IEEE8021X_EAPOL
  668. # IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
  669. L_CFLAGS += -DIEEE8021X_EAPOL
  670. OBJS += src/eapol_supp/eapol_supp_sm.c
  671. OBJS += src/eap_peer/eap.c src/eap_peer/eap_methods.c
  672. NEED_EAP_COMMON=y
  673. ifdef CONFIG_DYNAMIC_EAP_METHODS
  674. L_CFLAGS += -DCONFIG_DYNAMIC_EAP_METHODS
  675. LIBS += -ldl -rdynamic
  676. endif
  677. endif
  678. ifdef CONFIG_AP
  679. NEED_EAP_COMMON=y
  680. NEED_RSN_AUTHENTICATOR=y
  681. L_CFLAGS += -DCONFIG_AP
  682. OBJS += ap.c
  683. L_CFLAGS += -DCONFIG_NO_RADIUS
  684. L_CFLAGS += -DCONFIG_NO_ACCOUNTING
  685. L_CFLAGS += -DCONFIG_NO_VLAN
  686. OBJS += src/ap/hostapd.c
  687. OBJS += src/ap/wpa_auth_glue.c
  688. OBJS += src/ap/utils.c
  689. OBJS += src/ap/authsrv.c
  690. OBJS += src/ap/ap_config.c
  691. OBJS += src/utils/ip_addr.c
  692. OBJS += src/ap/sta_info.c
  693. OBJS += src/ap/tkip_countermeasures.c
  694. OBJS += src/ap/ap_mlme.c
  695. OBJS += src/ap/ieee802_1x.c
  696. OBJS += src/eapol_auth/eapol_auth_sm.c
  697. OBJS += src/ap/ieee802_11_auth.c
  698. OBJS += src/ap/ieee802_11_shared.c
  699. OBJS += src/ap/drv_callbacks.c
  700. OBJS += src/ap/ap_drv_ops.c
  701. OBJS += src/ap/beacon.c
  702. OBJS += src/ap/bss_load.c
  703. OBJS += src/ap/eap_user_db.c
  704. ifdef CONFIG_IEEE80211N
  705. OBJS += src/ap/ieee802_11_ht.c
  706. ifdef CONFIG_IEEE80211AC
  707. OBJS += src/ap/ieee802_11_vht.c
  708. endif
  709. endif
  710. ifdef CONFIG_WNM
  711. OBJS += src/ap/wnm_ap.c
  712. endif
  713. ifdef CONFIG_CTRL_IFACE
  714. OBJS += src/ap/ctrl_iface_ap.c
  715. endif
  716. L_CFLAGS += -DEAP_SERVER -DEAP_SERVER_IDENTITY
  717. OBJS += src/eap_server/eap_server.c
  718. OBJS += src/eap_server/eap_server_identity.c
  719. OBJS += src/eap_server/eap_server_methods.c
  720. ifdef CONFIG_IEEE80211N
  721. L_CFLAGS += -DCONFIG_IEEE80211N
  722. ifdef CONFIG_IEEE80211AC
  723. L_CFLAGS += -DCONFIG_IEEE80211AC
  724. endif
  725. endif
  726. ifdef NEED_AP_MLME
  727. OBJS += src/ap/wmm.c
  728. OBJS += src/ap/ap_list.c
  729. OBJS += src/ap/ieee802_11.c
  730. OBJS += src/ap/hw_features.c
  731. OBJS += src/ap/dfs.c
  732. L_CFLAGS += -DNEED_AP_MLME
  733. endif
  734. ifdef CONFIG_WPS
  735. L_CFLAGS += -DEAP_SERVER_WSC
  736. OBJS += src/ap/wps_hostapd.c
  737. OBJS += src/eap_server/eap_server_wsc.c
  738. endif
  739. ifdef CONFIG_INTERWORKING
  740. OBJS += src/ap/gas_serv.c
  741. endif
  742. ifdef CONFIG_HS20
  743. OBJS += src/ap/hs20.c
  744. endif
  745. endif
  746. ifdef NEED_RSN_AUTHENTICATOR
  747. L_CFLAGS += -DCONFIG_NO_RADIUS
  748. NEED_AES_WRAP=y
  749. OBJS += src/ap/wpa_auth.c
  750. OBJS += src/ap/wpa_auth_ie.c
  751. OBJS += src/ap/pmksa_cache_auth.c
  752. ifdef CONFIG_IEEE80211R
  753. OBJS += src/ap/wpa_auth_ft.c
  754. endif
  755. ifdef CONFIG_PEERKEY
  756. OBJS += src/ap/peerkey_auth.c
  757. endif
  758. endif
  759. ifdef CONFIG_EAP_SERVER
  760. L_CFLAGS += -DEAP_SERVER
  761. OBJS_h += src/eap_server/eap_server.c
  762. OBJS_h += src/eap_server/eap_server_identity.c
  763. OBJS_h += src/eap_server/eap_server_methods.c
  764. endif
  765. ifdef CONFIG_RADIUS_CLIENT
  766. OBJS_h += src/utils/ip_addr.c
  767. OBJS_h += src/radius/radius.c
  768. OBJS_h += src/radius/radius_client.c
  769. endif
  770. ifdef CONFIG_AUTHENTICATOR
  771. OBJS_h += src/eapol_auth/eapol_auth_sm.c
  772. OBJS_h += src/ap/ieee802_1x.c
  773. endif
  774. ifdef CONFIG_WPA_AUTHENTICATOR
  775. OBJS_h += src/ap/wpa_auth.c
  776. OBJS_h += src/ap/wpa_auth_ie.c
  777. OBJS_h += src/ap/pmksa_cache_auth.c
  778. ifdef CONFIG_IEEE80211R
  779. OBJS_h += src/ap/wpa_auth_ft.c
  780. endif
  781. ifdef CONFIG_PEERKEY
  782. OBJS_h += src/ap/peerkey_auth.c
  783. endif
  784. endif
  785. ifdef CONFIG_PCSC
  786. # PC/SC interface for smartcards (USIM, GSM SIM)
  787. L_CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
  788. OBJS += src/utils/pcsc_funcs.c
  789. # -lpthread may not be needed depending on how pcsc-lite was configured
  790. ifdef CONFIG_NATIVE_WINDOWS
  791. #Once MinGW gets support for WinScard, -lwinscard could be used instead of the
  792. #dynamic symbol loading that is now used in pcsc_funcs.c
  793. #LIBS += -lwinscard
  794. else
  795. LIBS += -lpcsclite -lpthread
  796. endif
  797. endif
  798. ifdef CONFIG_SIM_SIMULATOR
  799. L_CFLAGS += -DCONFIG_SIM_SIMULATOR
  800. NEED_MILENAGE=y
  801. endif
  802. ifdef CONFIG_USIM_SIMULATOR
  803. L_CFLAGS += -DCONFIG_USIM_SIMULATOR
  804. NEED_MILENAGE=y
  805. endif
  806. ifdef NEED_MILENAGE
  807. OBJS += src/crypto/milenage.c
  808. NEED_AES_ENCBLOCK=y
  809. endif
  810. ifdef CONFIG_PKCS12
  811. L_CFLAGS += -DPKCS12_FUNCS
  812. endif
  813. ifdef CONFIG_SMARTCARD
  814. L_CFLAGS += -DCONFIG_SMARTCARD
  815. endif
  816. ifdef MS_FUNCS
  817. OBJS += src/crypto/ms_funcs.c
  818. NEED_DES=y
  819. NEED_MD4=y
  820. endif
  821. ifdef CHAP
  822. OBJS += src/eap_common/chap.c
  823. endif
  824. ifdef TLS_FUNCS
  825. NEED_DES=y
  826. # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, and EAP_FAST)
  827. OBJS += src/eap_peer/eap_tls_common.c
  828. OBJS_h += src/eap_server/eap_server_tls_common.c
  829. ifndef CONFIG_FIPS
  830. NEED_TLS_PRF=y
  831. NEED_SHA1=y
  832. NEED_MD5=y
  833. endif
  834. endif
  835. ifndef CONFIG_TLS
  836. CONFIG_TLS=openssl
  837. endif
  838. ifdef CONFIG_TLSV11
  839. L_CFLAGS += -DCONFIG_TLSV11
  840. endif
  841. ifdef CONFIG_TLSV12
  842. L_CFLAGS += -DCONFIG_TLSV12
  843. NEED_SHA256=y
  844. endif
  845. ifeq ($(CONFIG_TLS), openssl)
  846. ifdef TLS_FUNCS
  847. L_CFLAGS += -DEAP_TLS_OPENSSL
  848. OBJS += src/crypto/tls_openssl.c
  849. LIBS += -lssl
  850. endif
  851. OBJS += src/crypto/crypto_openssl.c
  852. OBJS_p += src/crypto/crypto_openssl.c
  853. ifdef NEED_FIPS186_2_PRF
  854. OBJS += src/crypto/fips_prf_openssl.c
  855. endif
  856. LIBS += -lcrypto
  857. LIBS_p += -lcrypto
  858. ifdef CONFIG_TLS_ADD_DL
  859. LIBS += -ldl
  860. LIBS_p += -ldl
  861. endif
  862. endif
  863. ifeq ($(CONFIG_TLS), gnutls)
  864. ifdef TLS_FUNCS
  865. OBJS += src/crypto/tls_gnutls.c
  866. LIBS += -lgnutls -lgpg-error
  867. endif
  868. OBJS += src/crypto/crypto_gnutls.c
  869. OBJS_p += src/crypto/crypto_gnutls.c
  870. ifdef NEED_FIPS186_2_PRF
  871. OBJS += src/crypto/fips_prf_internal.c
  872. OBJS += src/crypto/sha1-internal.c
  873. endif
  874. LIBS += -lgcrypt
  875. LIBS_p += -lgcrypt
  876. CONFIG_INTERNAL_SHA256=y
  877. CONFIG_INTERNAL_RC4=y
  878. CONFIG_INTERNAL_DH_GROUP5=y
  879. endif
  880. ifeq ($(CONFIG_TLS), schannel)
  881. ifdef TLS_FUNCS
  882. OBJS += src/crypto/tls_schannel.c
  883. endif
  884. OBJS += src/crypto/crypto_cryptoapi.c
  885. OBJS_p += src/crypto/crypto_cryptoapi.c
  886. ifdef NEED_FIPS186_2_PRF
  887. OBJS += src/crypto/fips_prf_internal.c
  888. OBJS += src/crypto/sha1-internal.c
  889. endif
  890. CONFIG_INTERNAL_SHA256=y
  891. CONFIG_INTERNAL_RC4=y
  892. CONFIG_INTERNAL_DH_GROUP5=y
  893. endif
  894. ifeq ($(CONFIG_TLS), internal)
  895. ifndef CONFIG_CRYPTO
  896. CONFIG_CRYPTO=internal
  897. endif
  898. ifdef TLS_FUNCS
  899. OBJS += src/crypto/crypto_internal-rsa.c
  900. OBJS += src/crypto/tls_internal.c
  901. OBJS += src/tls/tlsv1_common.c
  902. OBJS += src/tls/tlsv1_record.c
  903. OBJS += src/tls/tlsv1_cred.c
  904. OBJS += src/tls/tlsv1_client.c
  905. OBJS += src/tls/tlsv1_client_write.c
  906. OBJS += src/tls/tlsv1_client_read.c
  907. OBJS += src/tls/asn1.c
  908. OBJS += src/tls/rsa.c
  909. OBJS += src/tls/x509v3.c
  910. OBJS += src/tls/pkcs1.c
  911. OBJS += src/tls/pkcs5.c
  912. OBJS += src/tls/pkcs8.c
  913. NEED_SHA256=y
  914. NEED_BASE64=y
  915. NEED_TLS_PRF=y
  916. ifdef CONFIG_TLSV12
  917. NEED_TLS_PRF_SHA256=y
  918. endif
  919. NEED_MODEXP=y
  920. NEED_CIPHER=y
  921. L_CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
  922. endif
  923. ifdef NEED_CIPHER
  924. NEED_DES=y
  925. OBJS += src/crypto/crypto_internal-cipher.c
  926. endif
  927. ifdef NEED_MODEXP
  928. OBJS += src/crypto/crypto_internal-modexp.c
  929. OBJS += src/tls/bignum.c
  930. endif
  931. ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  932. OBJS += src/crypto/crypto_libtomcrypt.c
  933. OBJS_p += src/crypto/crypto_libtomcrypt.c
  934. LIBS += -ltomcrypt -ltfm
  935. LIBS_p += -ltomcrypt -ltfm
  936. CONFIG_INTERNAL_SHA256=y
  937. CONFIG_INTERNAL_RC4=y
  938. CONFIG_INTERNAL_DH_GROUP5=y
  939. endif
  940. ifeq ($(CONFIG_CRYPTO), internal)
  941. OBJS += src/crypto/crypto_internal.c
  942. OBJS_p += src/crypto/crypto_internal.c
  943. NEED_AES_ENC=y
  944. L_CFLAGS += -DCONFIG_CRYPTO_INTERNAL
  945. ifdef CONFIG_INTERNAL_LIBTOMMATH
  946. L_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
  947. ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST
  948. L_CFLAGS += -DLTM_FAST
  949. endif
  950. else
  951. LIBS += -ltommath
  952. LIBS_p += -ltommath
  953. endif
  954. CONFIG_INTERNAL_AES=y
  955. CONFIG_INTERNAL_DES=y
  956. CONFIG_INTERNAL_SHA1=y
  957. CONFIG_INTERNAL_MD4=y
  958. CONFIG_INTERNAL_MD5=y
  959. CONFIG_INTERNAL_SHA256=y
  960. CONFIG_INTERNAL_RC4=y
  961. CONFIG_INTERNAL_DH_GROUP5=y
  962. endif
  963. ifeq ($(CONFIG_CRYPTO), cryptoapi)
  964. OBJS += src/crypto/crypto_cryptoapi.c
  965. OBJS_p += src/crypto/crypto_cryptoapi.c
  966. L_CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI
  967. CONFIG_INTERNAL_SHA256=y
  968. CONFIG_INTERNAL_RC4=y
  969. endif
  970. endif
  971. ifeq ($(CONFIG_TLS), none)
  972. ifdef TLS_FUNCS
  973. OBJS += src/crypto/tls_none.c
  974. L_CFLAGS += -DEAP_TLS_NONE
  975. CONFIG_INTERNAL_AES=y
  976. CONFIG_INTERNAL_SHA1=y
  977. CONFIG_INTERNAL_MD5=y
  978. endif
  979. OBJS += src/crypto/crypto_none.c
  980. OBJS_p += src/crypto/crypto_none.c
  981. CONFIG_INTERNAL_SHA256=y
  982. CONFIG_INTERNAL_RC4=y
  983. endif
  984. ifdef TLS_FUNCS
  985. ifdef CONFIG_SMARTCARD
  986. ifndef CONFIG_NATIVE_WINDOWS
  987. ifneq ($(CONFIG_L2_PACKET), freebsd)
  988. LIBS += -ldl
  989. endif
  990. endif
  991. endif
  992. endif
  993. ifndef TLS_FUNCS
  994. OBJS += src/crypto/tls_none.c
  995. ifeq ($(CONFIG_TLS), internal)
  996. CONFIG_INTERNAL_AES=y
  997. CONFIG_INTERNAL_SHA1=y
  998. CONFIG_INTERNAL_MD5=y
  999. CONFIG_INTERNAL_RC4=y
  1000. endif
  1001. endif
  1002. AESOBJS = # none so far (see below)
  1003. ifdef CONFIG_INTERNAL_AES
  1004. AESOBJS += src/crypto/aes-internal.c src/crypto/aes-internal-dec.c
  1005. endif
  1006. AESOBJS += src/crypto/aes-unwrap.c
  1007. ifdef NEED_AES_EAX
  1008. AESOBJS += src/crypto/aes-eax.c
  1009. NEED_AES_CTR=y
  1010. endif
  1011. ifdef NEED_AES_CTR
  1012. AESOBJS += src/crypto/aes-ctr.c
  1013. endif
  1014. ifdef NEED_AES_ENCBLOCK
  1015. AESOBJS += src/crypto/aes-encblock.c
  1016. endif
  1017. ifdef NEED_AES_OMAC1
  1018. NEED_AES_ENC=y
  1019. ifdef CONFIG_OPENSSL_CMAC
  1020. L_CFLAGS += -DCONFIG_OPENSSL_CMAC
  1021. else
  1022. AESOBJS += src/crypto/aes-omac1.c
  1023. endif
  1024. endif
  1025. ifdef NEED_AES_WRAP
  1026. NEED_AES_ENC=y
  1027. AESOBJS += src/crypto/aes-wrap.c
  1028. endif
  1029. ifdef NEED_AES_CBC
  1030. NEED_AES_ENC=y
  1031. AESOBJS += src/crypto/aes-cbc.c
  1032. endif
  1033. ifdef NEED_AES_ENC
  1034. ifdef CONFIG_INTERNAL_AES
  1035. AESOBJS += src/crypto/aes-internal-enc.c
  1036. endif
  1037. endif
  1038. ifdef NEED_AES_SIV
  1039. AESOBJS += src/crypto/aes-siv.c
  1040. endif
  1041. ifdef NEED_AES
  1042. OBJS += $(AESOBJS)
  1043. endif
  1044. SHA1OBJS =
  1045. ifdef NEED_SHA1
  1046. ifneq ($(CONFIG_TLS), openssl)
  1047. SHA1OBJS += src/crypto/sha1.c
  1048. endif
  1049. SHA1OBJS += src/crypto/sha1-prf.c
  1050. ifdef CONFIG_INTERNAL_SHA1
  1051. SHA1OBJS += src/crypto/sha1-internal.c
  1052. ifdef NEED_FIPS186_2_PRF
  1053. SHA1OBJS += src/crypto/fips_prf_internal.c
  1054. endif
  1055. endif
  1056. ifdef CONFIG_NO_WPA_PASSPHRASE
  1057. L_CFLAGS += -DCONFIG_NO_PBKDF2
  1058. else
  1059. ifneq ($(CONFIG_TLS), openssl)
  1060. SHA1OBJS += src/crypto/sha1-pbkdf2.c
  1061. endif
  1062. endif
  1063. ifdef NEED_T_PRF
  1064. SHA1OBJS += src/crypto/sha1-tprf.c
  1065. endif
  1066. ifdef NEED_TLS_PRF
  1067. SHA1OBJS += src/crypto/sha1-tlsprf.c
  1068. endif
  1069. endif
  1070. MD5OBJS =
  1071. ifndef CONFIG_FIPS
  1072. MD5OBJS += src/crypto/md5.c
  1073. endif
  1074. ifdef NEED_MD5
  1075. ifdef CONFIG_INTERNAL_MD5
  1076. MD5OBJS += src/crypto/md5-internal.c
  1077. endif
  1078. OBJS += $(MD5OBJS)
  1079. OBJS_p += $(MD5OBJS)
  1080. endif
  1081. ifdef NEED_MD4
  1082. ifdef CONFIG_INTERNAL_MD4
  1083. OBJS += src/crypto/md4-internal.c
  1084. endif
  1085. endif
  1086. DESOBJS = # none needed when not internal
  1087. ifdef NEED_DES
  1088. ifdef CONFIG_INTERNAL_DES
  1089. DESOBJS += src/crypto/des-internal.c
  1090. endif
  1091. endif
  1092. ifdef NEED_RC4
  1093. ifdef CONFIG_INTERNAL_RC4
  1094. OBJS += src/crypto/rc4.c
  1095. endif
  1096. endif
  1097. SHA256OBJS = # none by default
  1098. ifdef NEED_SHA256
  1099. L_CFLAGS += -DCONFIG_SHA256
  1100. ifneq ($(CONFIG_TLS), openssl)
  1101. SHA256OBJS += src/crypto/sha256.c
  1102. endif
  1103. SHA256OBJS += src/crypto/sha256-prf.c
  1104. ifdef CONFIG_INTERNAL_SHA256
  1105. SHA256OBJS += src/crypto/sha256-internal.c
  1106. endif
  1107. ifdef NEED_TLS_PRF_SHA256
  1108. SHA256OBJS += src/crypto/sha256-tlsprf.c
  1109. endif
  1110. ifdef NEED_HMAC_SHA256_KDF
  1111. SHA256OBJS += src/crypto/sha256-kdf.c
  1112. endif
  1113. OBJS += $(SHA256OBJS)
  1114. endif
  1115. ifdef NEED_DH_GROUPS
  1116. OBJS += src/crypto/dh_groups.c
  1117. endif
  1118. ifdef NEED_DH_GROUPS_ALL
  1119. L_CFLAGS += -DALL_DH_GROUPS
  1120. endif
  1121. ifdef CONFIG_INTERNAL_DH_GROUP5
  1122. ifdef NEED_DH_GROUPS
  1123. OBJS += src/crypto/dh_group5.c
  1124. endif
  1125. endif
  1126. ifdef NEED_ECC
  1127. L_CFLAGS += -DCONFIG_ECC
  1128. endif
  1129. ifdef CONFIG_NO_RANDOM_POOL
  1130. L_CFLAGS += -DCONFIG_NO_RANDOM_POOL
  1131. else
  1132. OBJS += src/crypto/random.c
  1133. endif
  1134. ifdef CONFIG_CTRL_IFACE
  1135. ifeq ($(CONFIG_CTRL_IFACE), y)
  1136. ifdef CONFIG_NATIVE_WINDOWS
  1137. CONFIG_CTRL_IFACE=named_pipe
  1138. else
  1139. CONFIG_CTRL_IFACE=unix
  1140. endif
  1141. endif
  1142. L_CFLAGS += -DCONFIG_CTRL_IFACE
  1143. ifeq ($(CONFIG_CTRL_IFACE), unix)
  1144. L_CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
  1145. endif
  1146. ifeq ($(CONFIG_CTRL_IFACE), udp)
  1147. L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP
  1148. endif
  1149. ifeq ($(CONFIG_CTRL_IFACE), named_pipe)
  1150. L_CFLAGS += -DCONFIG_CTRL_IFACE_NAMED_PIPE
  1151. endif
  1152. ifeq ($(CONFIG_CTRL_IFACE), udp-remote)
  1153. CONFIG_CTRL_IFACE=udp
  1154. L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP
  1155. L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP_REMOTE
  1156. endif
  1157. OBJS += ctrl_iface.c ctrl_iface_$(CONFIG_CTRL_IFACE).c
  1158. endif
  1159. ifdef CONFIG_CTRL_IFACE_DBUS
  1160. DBUS=y
  1161. DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS -DDBUS_API_SUBJECT_TO_CHANGE
  1162. DBUS_OBJS += dbus/dbus_old.c dbus/dbus_old_handlers.c
  1163. ifdef CONFIG_WPS
  1164. DBUS_OBJS += dbus/dbus_old_handlers_wps.c
  1165. endif
  1166. DBUS_OBJS += dbus/dbus_dict_helpers.c
  1167. ifndef DBUS_LIBS
  1168. DBUS_LIBS := $(shell $(PKG_CONFIG) --libs dbus-1)
  1169. endif
  1170. ifndef DBUS_INCLUDE
  1171. DBUS_INCLUDE := $(shell $(PKG_CONFIG) --cflags dbus-1)
  1172. endif
  1173. DBUS_CFLAGS += $(DBUS_INCLUDE)
  1174. endif
  1175. ifdef CONFIG_CTRL_IFACE_DBUS_NEW
  1176. DBUS=y
  1177. DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_NEW
  1178. DBUS_OBJS ?= dbus/dbus_dict_helpers.c
  1179. DBUS_OBJS += dbus/dbus_new_helpers.c
  1180. DBUS_OBJS += dbus/dbus_new.c dbus/dbus_new_handlers.c
  1181. ifdef CONFIG_WPS
  1182. DBUS_OBJS += dbus/dbus_new_handlers_wps.c
  1183. endif
  1184. ifdef CONFIG_P2P
  1185. DBUS_OBJS += dbus/dbus_new_handlers_p2p.c
  1186. endif
  1187. ifndef DBUS_LIBS
  1188. DBUS_LIBS := $(shell $(PKG_CONFIG) --libs dbus-1)
  1189. endif
  1190. ifndef DBUS_INCLUDE
  1191. DBUS_INCLUDE := $(shell $(PKG_CONFIG) --cflags dbus-1)
  1192. endif
  1193. ifdef CONFIG_CTRL_IFACE_DBUS_INTRO
  1194. DBUS_OBJS += dbus/dbus_new_introspect.c
  1195. DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_INTRO
  1196. endif
  1197. DBUS_CFLAGS += $(DBUS_INCLUDE)
  1198. endif
  1199. ifdef DBUS
  1200. DBUS_CFLAGS += -DCONFIG_DBUS
  1201. DBUS_OBJS += dbus/dbus_common.c
  1202. endif
  1203. OBJS += $(DBUS_OBJS)
  1204. L_CFLAGS += $(DBUS_CFLAGS)
  1205. LIBS += $(DBUS_LIBS)
  1206. ifdef CONFIG_READLINE
  1207. OBJS_c += src/utils/edit_readline.c
  1208. LIBS_c += -lncurses -lreadline
  1209. else
  1210. ifdef CONFIG_WPA_CLI_EDIT
  1211. OBJS_c += src/utils/edit.c
  1212. else
  1213. OBJS_c += src/utils/edit_simple.c
  1214. endif
  1215. endif
  1216. ifdef CONFIG_NATIVE_WINDOWS
  1217. L_CFLAGS += -DCONFIG_NATIVE_WINDOWS
  1218. LIBS += -lws2_32 -lgdi32 -lcrypt32
  1219. LIBS_c += -lws2_32
  1220. LIBS_p += -lws2_32 -lgdi32
  1221. ifeq ($(CONFIG_CRYPTO), cryptoapi)
  1222. LIBS_p += -lcrypt32
  1223. endif
  1224. endif
  1225. ifdef CONFIG_NO_STDOUT_DEBUG
  1226. L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
  1227. ifndef CONFIG_CTRL_IFACE
  1228. L_CFLAGS += -DCONFIG_NO_WPA_MSG
  1229. endif
  1230. endif
  1231. ifdef CONFIG_ANDROID_LOG
  1232. L_CFLAGS += -DCONFIG_ANDROID_LOG
  1233. endif
  1234. ifdef CONFIG_IPV6
  1235. # for eapol_test only
  1236. L_CFLAGS += -DCONFIG_IPV6
  1237. endif
  1238. ifdef NEED_BASE64
  1239. OBJS += src/utils/base64.c
  1240. endif
  1241. ifdef NEED_SME
  1242. OBJS += sme.c
  1243. L_CFLAGS += -DCONFIG_SME
  1244. endif
  1245. OBJS += src/common/ieee802_11_common.c
  1246. OBJS += src/common/hw_features_common.c
  1247. ifdef NEED_EAP_COMMON
  1248. OBJS += src/eap_common/eap_common.c
  1249. endif
  1250. ifndef CONFIG_MAIN
  1251. CONFIG_MAIN=main
  1252. endif
  1253. ifdef CONFIG_DEBUG_SYSLOG
  1254. L_CFLAGS += -DCONFIG_DEBUG_SYSLOG
  1255. ifdef CONFIG_DEBUG_SYSLOG_FACILITY
  1256. L_CFLAGS += -DLOG_HOSTAPD="$(CONFIG_DEBUG_SYSLOG_FACILITY)"
  1257. endif
  1258. endif
  1259. ifdef CONFIG_DEBUG_LINUX_TRACING
  1260. L_CFLAGS += -DCONFIG_DEBUG_LINUX_TRACING
  1261. endif
  1262. ifdef CONFIG_DEBUG_FILE
  1263. L_CFLAGS += -DCONFIG_DEBUG_FILE
  1264. endif
  1265. ifdef CONFIG_DELAYED_MIC_ERROR_REPORT
  1266. L_CFLAGS += -DCONFIG_DELAYED_MIC_ERROR_REPORT
  1267. endif
  1268. ifdef CONFIG_FIPS
  1269. L_CFLAGS += -DCONFIG_FIPS
  1270. endif
  1271. OBJS += $(SHA1OBJS) $(DESOBJS)
  1272. OBJS_p += $(SHA1OBJS)
  1273. OBJS_p += $(SHA256OBJS)
  1274. ifdef CONFIG_BGSCAN_SIMPLE
  1275. L_CFLAGS += -DCONFIG_BGSCAN_SIMPLE
  1276. OBJS += bgscan_simple.c
  1277. NEED_BGSCAN=y
  1278. endif
  1279. ifdef CONFIG_BGSCAN_LEARN
  1280. L_CFLAGS += -DCONFIG_BGSCAN_LEARN
  1281. OBJS += bgscan_learn.c
  1282. NEED_BGSCAN=y
  1283. endif
  1284. ifdef NEED_BGSCAN
  1285. L_CFLAGS += -DCONFIG_BGSCAN
  1286. OBJS += bgscan.c
  1287. endif
  1288. ifdef CONFIG_AUTOSCAN_EXPONENTIAL
  1289. L_CFLAGS += -DCONFIG_AUTOSCAN_EXPONENTIAL
  1290. OBJS += autoscan_exponential.c
  1291. NEED_AUTOSCAN=y
  1292. endif
  1293. ifdef CONFIG_AUTOSCAN_PERIODIC
  1294. L_CFLAGS += -DCONFIG_AUTOSCAN_PERIODIC
  1295. OBJS += autoscan_periodic.c
  1296. NEED_AUTOSCAN=y
  1297. endif
  1298. ifdef NEED_AUTOSCAN
  1299. L_CFLAGS += -DCONFIG_AUTOSCAN
  1300. OBJS += autoscan.c
  1301. endif
  1302. ifdef CONFIG_EXT_PASSWORD_TEST
  1303. OBJS += src/utils/ext_password_test.c
  1304. L_CFLAGS += -DCONFIG_EXT_PASSWORD_TEST
  1305. NEED_EXT_PASSWORD=y
  1306. endif
  1307. ifdef NEED_EXT_PASSWORD
  1308. OBJS += src/utils/ext_password.c
  1309. L_CFLAGS += -DCONFIG_EXT_PASSWORD
  1310. endif
  1311. ifdef NEED_GAS
  1312. OBJS += src/common/gas.c
  1313. OBJS += gas_query.c
  1314. L_CFLAGS += -DCONFIG_GAS
  1315. NEED_OFFCHANNEL=y
  1316. endif
  1317. ifdef NEED_OFFCHANNEL
  1318. OBJS += offchannel.c
  1319. L_CFLAGS += -DCONFIG_OFFCHANNEL
  1320. endif
  1321. OBJS += src/drivers/driver_common.c
  1322. OBJS_wpa_rm := ctrl_iface.c ctrl_iface_unix.c
  1323. OBJS_wpa := $(filter-out $(OBJS_wpa_rm),$(OBJS)) $(OBJS_h) tests/test_wpa.c
  1324. ifdef CONFIG_AUTHENTICATOR
  1325. OBJS_wpa += tests/link_test.c
  1326. endif
  1327. OBJS_wpa += $(OBJS_l2)
  1328. OBJS += wpa_supplicant.c events.c blacklist.c wpas_glue.c scan.c
  1329. OBJS_t := $(OBJS) $(OBJS_l2) eapol_test.c
  1330. OBJS_t += src/radius/radius_client.c
  1331. OBJS_t += src/radius/radius.c
  1332. ifndef CONFIG_AP
  1333. OBJS_t += src/utils/ip_addr.c
  1334. endif
  1335. OBJS_t2 := $(OBJS) $(OBJS_l2) preauth_test.c
  1336. OBJS += $(CONFIG_MAIN).c
  1337. ifdef CONFIG_PRIVSEP
  1338. OBJS_priv += $(OBJS_d) src/drivers/drivers.c
  1339. OBJS_priv += $(OBJS_l2)
  1340. OBJS_priv += src/utils/os_$(CONFIG_OS).c
  1341. OBJS_priv += src/utils/$(CONFIG_ELOOP).c
  1342. OBJS_priv += src/utils/common.c
  1343. OBJS_priv += src/utils/wpa_debug.c
  1344. OBJS_priv += src/utils/wpabuf.c
  1345. OBJS_priv += wpa_priv.c
  1346. ifdef CONFIG_DRIVER_NL80211
  1347. OBJS_priv += src/common/ieee802_11_common.c
  1348. endif
  1349. OBJS += src/l2_packet/l2_packet_privsep.c
  1350. OBJS += src/drivers/driver_privsep.c
  1351. EXTRA_progs += wpa_priv
  1352. else
  1353. OBJS += $(OBJS_d) src/drivers/drivers.c
  1354. OBJS += $(OBJS_l2)
  1355. endif
  1356. ifdef CONFIG_NDIS_EVENTS_INTEGRATED
  1357. L_CFLAGS += -DCONFIG_NDIS_EVENTS_INTEGRATED
  1358. OBJS += src/drivers/ndis_events.c
  1359. EXTRALIBS += -loleaut32 -lole32 -luuid
  1360. ifdef PLATFORMSDKLIB
  1361. EXTRALIBS += $(PLATFORMSDKLIB)/WbemUuid.Lib
  1362. else
  1363. EXTRALIBS += WbemUuid.Lib
  1364. endif
  1365. endif
  1366. ifndef LDO
  1367. LDO=$(CC)
  1368. endif
  1369. ########################
  1370. include $(CLEAR_VARS)
  1371. LOCAL_MODULE := wpa_cli
  1372. LOCAL_MODULE_TAGS := debug
  1373. LOCAL_SHARED_LIBRARIES := libc libcutils liblog
  1374. LOCAL_CFLAGS := $(L_CFLAGS)
  1375. LOCAL_SRC_FILES := $(OBJS_c)
  1376. LOCAL_C_INCLUDES := $(INCLUDES)
  1377. include $(BUILD_EXECUTABLE)
  1378. ########################
  1379. include $(CLEAR_VARS)
  1380. LOCAL_MODULE := wpa_supplicant
  1381. ifdef CONFIG_DRIVER_CUSTOM
  1382. LOCAL_STATIC_LIBRARIES := libCustomWifi
  1383. endif
  1384. ifneq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),)
  1385. LOCAL_STATIC_LIBRARIES += $(BOARD_WPA_SUPPLICANT_PRIVATE_LIB)
  1386. endif
  1387. LOCAL_SHARED_LIBRARIES := libc libcutils liblog
  1388. ifdef CONFIG_EAP_PROXY
  1389. LOCAL_STATIC_LIBRARIES += $(LIB_STATIC_EAP_PROXY)
  1390. LOCAL_SHARED_LIBRARIES += $(LIB_SHARED_EAP_PROXY)
  1391. endif
  1392. ifeq ($(CONFIG_TLS), openssl)
  1393. LOCAL_SHARED_LIBRARIES += libcrypto libssl libkeystore_binder
  1394. endif
  1395. ifdef CONFIG_DRIVER_NL80211
  1396. ifneq ($(wildcard external/libnl),)
  1397. LOCAL_SHARED_LIBRARIES += libnl
  1398. else
  1399. LOCAL_STATIC_LIBRARIES += libnl_2
  1400. endif
  1401. endif
  1402. LOCAL_CFLAGS := $(L_CFLAGS)
  1403. LOCAL_SRC_FILES := $(OBJS)
  1404. LOCAL_C_INCLUDES := $(INCLUDES)
  1405. include $(BUILD_EXECUTABLE)
  1406. ########################
  1407. #
  1408. #include $(CLEAR_VARS)
  1409. #LOCAL_MODULE := eapol_test
  1410. #ifdef CONFIG_DRIVER_CUSTOM
  1411. #LOCAL_STATIC_LIBRARIES := libCustomWifi
  1412. #endif
  1413. #LOCAL_SHARED_LIBRARIES := libc libcrypto libssl
  1414. #LOCAL_CFLAGS := $(L_CFLAGS)
  1415. #LOCAL_SRC_FILES := $(OBJS_t)
  1416. #LOCAL_C_INCLUDES := $(INCLUDES)
  1417. #include $(BUILD_EXECUTABLE)
  1418. #
  1419. ########################
  1420. #
  1421. #local_target_dir := $(TARGET_OUT)/etc/wifi
  1422. #
  1423. #include $(CLEAR_VARS)
  1424. #LOCAL_MODULE := wpa_supplicant.conf
  1425. #LOCAL_MODULE_CLASS := ETC
  1426. #LOCAL_MODULE_PATH := $(local_target_dir)
  1427. #LOCAL_SRC_FILES := $(LOCAL_MODULE)
  1428. #include $(BUILD_PREBUILT)
  1429. #
  1430. ########################
  1431. include $(CLEAR_VARS)
  1432. LOCAL_MODULE = libwpa_client
  1433. LOCAL_CFLAGS = $(L_CFLAGS)
  1434. LOCAL_SRC_FILES = src/common/wpa_ctrl.c src/utils/os_$(CONFIG_OS).c
  1435. LOCAL_C_INCLUDES = $(INCLUDES)
  1436. LOCAL_SHARED_LIBRARIES := libcutils liblog
  1437. LOCAL_COPY_HEADERS_TO := libwpa_client
  1438. LOCAL_COPY_HEADERS := src/common/wpa_ctrl.h
  1439. LOCAL_COPY_HEADERS += src/common/qca-vendor.h
  1440. include $(BUILD_SHARED_LIBRARY)