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_SUITEB192
  160. L_CFLAGS += -DCONFIG_SUITEB192
  161. NEED_SHA384=y
  162. endif
  163. ifdef CONFIG_IEEE80211W
  164. L_CFLAGS += -DCONFIG_IEEE80211W
  165. NEED_SHA256=y
  166. NEED_AES_OMAC1=y
  167. endif
  168. ifdef CONFIG_IEEE80211R
  169. L_CFLAGS += -DCONFIG_IEEE80211R
  170. OBJS += src/rsn_supp/wpa_ft.c
  171. NEED_SHA256=y
  172. NEED_AES_OMAC1=y
  173. endif
  174. ifdef CONFIG_MESH
  175. NEED_80211_COMMON=y
  176. NEED_SHA256=y
  177. NEED_AES_SIV=y
  178. NEED_AES_OMAC1=y
  179. NEED_AES_CTR=y
  180. CONFIG_SAE=y
  181. CONFIG_AP=y
  182. L_CFLAGS += -DCONFIG_MESH
  183. OBJS += mesh.c
  184. OBJS += mesh_mpm.c
  185. OBJS += mesh_rsn.c
  186. endif
  187. ifdef CONFIG_SAE
  188. L_CFLAGS += -DCONFIG_SAE
  189. OBJS += src/common/sae.c
  190. NEED_ECC=y
  191. NEED_DH_GROUPS=y
  192. endif
  193. ifdef CONFIG_WNM
  194. L_CFLAGS += -DCONFIG_WNM
  195. OBJS += wnm_sta.c
  196. endif
  197. ifdef CONFIG_TDLS
  198. L_CFLAGS += -DCONFIG_TDLS
  199. OBJS += src/rsn_supp/tdls.c
  200. NEED_SHA256=y
  201. NEED_AES_OMAC1=y
  202. endif
  203. ifdef CONFIG_TDLS_TESTING
  204. L_CFLAGS += -DCONFIG_TDLS_TESTING
  205. endif
  206. ifdef CONFIG_PEERKEY
  207. L_CFLAGS += -DCONFIG_PEERKEY
  208. endif
  209. ifndef CONFIG_NO_WPA
  210. OBJS += src/rsn_supp/wpa.c
  211. OBJS += src/rsn_supp/preauth.c
  212. OBJS += src/rsn_supp/pmksa_cache.c
  213. OBJS += src/rsn_supp/peerkey.c
  214. OBJS += src/rsn_supp/wpa_ie.c
  215. OBJS += src/common/wpa_common.c
  216. NEED_AES=y
  217. NEED_SHA1=y
  218. NEED_MD5=y
  219. NEED_RC4=y
  220. else
  221. L_CFLAGS += -DCONFIG_NO_WPA
  222. endif
  223. ifdef CONFIG_IBSS_RSN
  224. NEED_RSN_AUTHENTICATOR=y
  225. L_CFLAGS += -DCONFIG_IBSS_RSN
  226. OBJS += ibss_rsn.c
  227. endif
  228. ifdef CONFIG_P2P
  229. OBJS += p2p_supplicant.c
  230. OBJS += p2p_supplicant_sd.c
  231. OBJS += src/p2p/p2p.c
  232. OBJS += src/p2p/p2p_utils.c
  233. OBJS += src/p2p/p2p_parse.c
  234. OBJS += src/p2p/p2p_build.c
  235. OBJS += src/p2p/p2p_go_neg.c
  236. OBJS += src/p2p/p2p_sd.c
  237. OBJS += src/p2p/p2p_pd.c
  238. OBJS += src/p2p/p2p_invitation.c
  239. OBJS += src/p2p/p2p_dev_disc.c
  240. OBJS += src/p2p/p2p_group.c
  241. OBJS += src/ap/p2p_hostapd.c
  242. OBJS += src/utils/bitfield.c
  243. L_CFLAGS += -DCONFIG_P2P
  244. NEED_GAS=y
  245. NEED_OFFCHANNEL=y
  246. CONFIG_WPS=y
  247. CONFIG_AP=y
  248. ifdef CONFIG_P2P_STRICT
  249. L_CFLAGS += -DCONFIG_P2P_STRICT
  250. endif
  251. endif
  252. ifdef CONFIG_WIFI_DISPLAY
  253. L_CFLAGS += -DCONFIG_WIFI_DISPLAY
  254. OBJS += wifi_display.c
  255. endif
  256. ifdef CONFIG_HS20
  257. OBJS += hs20_supplicant.c
  258. L_CFLAGS += -DCONFIG_HS20
  259. CONFIG_INTERWORKING=y
  260. NEED_AES_OMAC1=y
  261. endif
  262. ifdef CONFIG_INTERWORKING
  263. OBJS += interworking.c
  264. L_CFLAGS += -DCONFIG_INTERWORKING
  265. NEED_GAS=y
  266. endif
  267. include $(LOCAL_PATH)/src/drivers/drivers.mk
  268. ifdef CONFIG_AP
  269. OBJS_d += $(DRV_BOTH_OBJS)
  270. L_CFLAGS += $(DRV_BOTH_CFLAGS)
  271. LDFLAGS += $(DRV_BOTH_LDFLAGS)
  272. LIBS += $(DRV_BOTH_LIBS)
  273. else
  274. NEED_AP_MLME=
  275. OBJS_d += $(DRV_WPA_OBJS)
  276. L_CFLAGS += $(DRV_WPA_CFLAGS)
  277. LDFLAGS += $(DRV_WPA_LDFLAGS)
  278. LIBS += $(DRV_WPA_LIBS)
  279. endif
  280. ifndef CONFIG_L2_PACKET
  281. CONFIG_L2_PACKET=linux
  282. endif
  283. OBJS_l2 += src/l2_packet/l2_packet_$(CONFIG_L2_PACKET).c
  284. ifeq ($(CONFIG_L2_PACKET), pcap)
  285. ifdef CONFIG_WINPCAP
  286. L_CFLAGS += -DCONFIG_WINPCAP
  287. LIBS += -lwpcap -lpacket
  288. LIBS_w += -lwpcap
  289. else
  290. LIBS += -ldnet -lpcap
  291. endif
  292. endif
  293. ifeq ($(CONFIG_L2_PACKET), winpcap)
  294. LIBS += -lwpcap -lpacket
  295. LIBS_w += -lwpcap
  296. endif
  297. ifeq ($(CONFIG_L2_PACKET), freebsd)
  298. LIBS += -lpcap
  299. endif
  300. ifdef CONFIG_ERP
  301. L_CFLAGS += -DCONFIG_ERP
  302. NEED_SHA256=y
  303. NEED_HMAC_SHA256_KDF=y
  304. endif
  305. ifdef CONFIG_EAP_TLS
  306. # EAP-TLS
  307. ifeq ($(CONFIG_EAP_TLS), dyn)
  308. L_CFLAGS += -DEAP_TLS_DYNAMIC
  309. EAPDYN += src/eap_peer/eap_tls.so
  310. else
  311. L_CFLAGS += -DEAP_TLS
  312. OBJS += src/eap_peer/eap_tls.c
  313. OBJS_h += src/eap_server/eap_server_tls.c
  314. endif
  315. TLS_FUNCS=y
  316. CONFIG_IEEE8021X_EAPOL=y
  317. endif
  318. ifdef CONFIG_EAP_UNAUTH_TLS
  319. # EAP-UNAUTH-TLS
  320. L_CFLAGS += -DEAP_UNAUTH_TLS
  321. ifndef CONFIG_EAP_TLS
  322. OBJS += src/eap_peer/eap_tls.c
  323. OBJS_h += src/eap_server/eap_server_tls.c
  324. TLS_FUNCS=y
  325. endif
  326. CONFIG_IEEE8021X_EAPOL=y
  327. endif
  328. ifdef CONFIG_EAP_PEAP
  329. # EAP-PEAP
  330. ifeq ($(CONFIG_EAP_PEAP), dyn)
  331. L_CFLAGS += -DEAP_PEAP_DYNAMIC
  332. EAPDYN += src/eap_peer/eap_peap.so
  333. else
  334. L_CFLAGS += -DEAP_PEAP
  335. OBJS += src/eap_peer/eap_peap.c
  336. OBJS += src/eap_common/eap_peap_common.c
  337. OBJS_h += src/eap_server/eap_server_peap.c
  338. endif
  339. TLS_FUNCS=y
  340. CONFIG_IEEE8021X_EAPOL=y
  341. endif
  342. ifdef CONFIG_EAP_TTLS
  343. # EAP-TTLS
  344. ifeq ($(CONFIG_EAP_TTLS), dyn)
  345. L_CFLAGS += -DEAP_TTLS_DYNAMIC
  346. EAPDYN += src/eap_peer/eap_ttls.so
  347. else
  348. L_CFLAGS += -DEAP_TTLS
  349. OBJS += src/eap_peer/eap_ttls.c
  350. OBJS_h += src/eap_server/eap_server_ttls.c
  351. endif
  352. MS_FUNCS=y
  353. TLS_FUNCS=y
  354. CHAP=y
  355. CONFIG_IEEE8021X_EAPOL=y
  356. endif
  357. ifdef CONFIG_EAP_MD5
  358. # EAP-MD5
  359. ifeq ($(CONFIG_EAP_MD5), dyn)
  360. L_CFLAGS += -DEAP_MD5_DYNAMIC
  361. EAPDYN += src/eap_peer/eap_md5.so
  362. else
  363. L_CFLAGS += -DEAP_MD5
  364. OBJS += src/eap_peer/eap_md5.c
  365. OBJS_h += src/eap_server/eap_server_md5.c
  366. endif
  367. CHAP=y
  368. CONFIG_IEEE8021X_EAPOL=y
  369. endif
  370. # backwards compatibility for old spelling
  371. ifdef CONFIG_MSCHAPV2
  372. ifndef CONFIG_EAP_MSCHAPV2
  373. CONFIG_EAP_MSCHAPV2=y
  374. endif
  375. endif
  376. ifdef CONFIG_EAP_MSCHAPV2
  377. # EAP-MSCHAPv2
  378. ifeq ($(CONFIG_EAP_MSCHAPV2), dyn)
  379. L_CFLAGS += -DEAP_MSCHAPv2_DYNAMIC
  380. EAPDYN += src/eap_peer/eap_mschapv2.so
  381. EAPDYN += src/eap_peer/mschapv2.so
  382. else
  383. L_CFLAGS += -DEAP_MSCHAPv2
  384. OBJS += src/eap_peer/eap_mschapv2.c
  385. OBJS += src/eap_peer/mschapv2.c
  386. OBJS_h += src/eap_server/eap_server_mschapv2.c
  387. endif
  388. MS_FUNCS=y
  389. CONFIG_IEEE8021X_EAPOL=y
  390. endif
  391. ifdef CONFIG_EAP_GTC
  392. # EAP-GTC
  393. ifeq ($(CONFIG_EAP_GTC), dyn)
  394. L_CFLAGS += -DEAP_GTC_DYNAMIC
  395. EAPDYN += src/eap_peer/eap_gtc.so
  396. else
  397. L_CFLAGS += -DEAP_GTC
  398. OBJS += src/eap_peer/eap_gtc.c
  399. OBJS_h += src/eap_server/eap_server_gtc.c
  400. endif
  401. CONFIG_IEEE8021X_EAPOL=y
  402. endif
  403. ifdef CONFIG_EAP_OTP
  404. # EAP-OTP
  405. ifeq ($(CONFIG_EAP_OTP), dyn)
  406. L_CFLAGS += -DEAP_OTP_DYNAMIC
  407. EAPDYN += src/eap_peer/eap_otp.so
  408. else
  409. L_CFLAGS += -DEAP_OTP
  410. OBJS += src/eap_peer/eap_otp.c
  411. endif
  412. CONFIG_IEEE8021X_EAPOL=y
  413. endif
  414. ifdef CONFIG_EAP_SIM
  415. # EAP-SIM
  416. ifeq ($(CONFIG_EAP_SIM), dyn)
  417. L_CFLAGS += -DEAP_SIM_DYNAMIC
  418. EAPDYN += src/eap_peer/eap_sim.so
  419. else
  420. L_CFLAGS += -DEAP_SIM
  421. OBJS += src/eap_peer/eap_sim.c
  422. OBJS_h += src/eap_server/eap_server_sim.c
  423. endif
  424. CONFIG_IEEE8021X_EAPOL=y
  425. CONFIG_EAP_SIM_COMMON=y
  426. NEED_AES_CBC=y
  427. endif
  428. ifdef CONFIG_EAP_LEAP
  429. # EAP-LEAP
  430. ifeq ($(CONFIG_EAP_LEAP), dyn)
  431. L_CFLAGS += -DEAP_LEAP_DYNAMIC
  432. EAPDYN += src/eap_peer/eap_leap.so
  433. else
  434. L_CFLAGS += -DEAP_LEAP
  435. OBJS += src/eap_peer/eap_leap.c
  436. endif
  437. MS_FUNCS=y
  438. CONFIG_IEEE8021X_EAPOL=y
  439. endif
  440. ifdef CONFIG_EAP_PSK
  441. # EAP-PSK
  442. ifeq ($(CONFIG_EAP_PSK), dyn)
  443. L_CFLAGS += -DEAP_PSK_DYNAMIC
  444. EAPDYN += src/eap_peer/eap_psk.so
  445. else
  446. L_CFLAGS += -DEAP_PSK
  447. OBJS += src/eap_peer/eap_psk.c src/eap_common/eap_psk_common.c
  448. OBJS_h += src/eap_server/eap_server_psk.c
  449. endif
  450. CONFIG_IEEE8021X_EAPOL=y
  451. NEED_AES=y
  452. NEED_AES_OMAC1=y
  453. NEED_AES_ENCBLOCK=y
  454. NEED_AES_EAX=y
  455. endif
  456. ifdef CONFIG_EAP_AKA
  457. # EAP-AKA
  458. ifeq ($(CONFIG_EAP_AKA), dyn)
  459. L_CFLAGS += -DEAP_AKA_DYNAMIC
  460. EAPDYN += src/eap_peer/eap_aka.so
  461. else
  462. L_CFLAGS += -DEAP_AKA
  463. OBJS += src/eap_peer/eap_aka.c
  464. OBJS_h += src/eap_server/eap_server_aka.c
  465. endif
  466. CONFIG_IEEE8021X_EAPOL=y
  467. CONFIG_EAP_SIM_COMMON=y
  468. NEED_AES_CBC=y
  469. endif
  470. ifdef CONFIG_EAP_PROXY
  471. L_CFLAGS += -DCONFIG_EAP_PROXY
  472. OBJS += src/eap_peer/eap_proxy_$(CONFIG_EAP_PROXY).c
  473. include $(LOCAL_PATH)/eap_proxy_$(CONFIG_EAP_PROXY).mk
  474. CONFIG_IEEE8021X_EAPOL=y
  475. endif
  476. ifdef CONFIG_EAP_AKA_PRIME
  477. # EAP-AKA'
  478. ifeq ($(CONFIG_EAP_AKA_PRIME), dyn)
  479. L_CFLAGS += -DEAP_AKA_PRIME_DYNAMIC
  480. else
  481. L_CFLAGS += -DEAP_AKA_PRIME
  482. endif
  483. NEED_SHA256=y
  484. endif
  485. ifdef CONFIG_EAP_SIM_COMMON
  486. OBJS += src/eap_common/eap_sim_common.c
  487. OBJS_h += src/eap_server/eap_sim_db.c
  488. NEED_AES=y
  489. NEED_FIPS186_2_PRF=y
  490. endif
  491. ifdef CONFIG_EAP_FAST
  492. # EAP-FAST
  493. ifeq ($(CONFIG_EAP_FAST), dyn)
  494. L_CFLAGS += -DEAP_FAST_DYNAMIC
  495. EAPDYN += src/eap_peer/eap_fast.so
  496. EAPDYN += src/eap_common/eap_fast_common.c
  497. else
  498. L_CFLAGS += -DEAP_FAST
  499. OBJS += src/eap_peer/eap_fast.c src/eap_peer/eap_fast_pac.c
  500. OBJS += src/eap_common/eap_fast_common.c
  501. OBJS_h += src/eap_server/eap_server_fast.c
  502. endif
  503. TLS_FUNCS=y
  504. CONFIG_IEEE8021X_EAPOL=y
  505. NEED_T_PRF=y
  506. endif
  507. ifdef CONFIG_EAP_PAX
  508. # EAP-PAX
  509. ifeq ($(CONFIG_EAP_PAX), dyn)
  510. L_CFLAGS += -DEAP_PAX_DYNAMIC
  511. EAPDYN += src/eap_peer/eap_pax.so
  512. else
  513. L_CFLAGS += -DEAP_PAX
  514. OBJS += src/eap_peer/eap_pax.c src/eap_common/eap_pax_common.c
  515. OBJS_h += src/eap_server/eap_server_pax.c
  516. endif
  517. CONFIG_IEEE8021X_EAPOL=y
  518. endif
  519. ifdef CONFIG_EAP_SAKE
  520. # EAP-SAKE
  521. ifeq ($(CONFIG_EAP_SAKE), dyn)
  522. L_CFLAGS += -DEAP_SAKE_DYNAMIC
  523. EAPDYN += src/eap_peer/eap_sake.so
  524. else
  525. L_CFLAGS += -DEAP_SAKE
  526. OBJS += src/eap_peer/eap_sake.c src/eap_common/eap_sake_common.c
  527. OBJS_h += src/eap_server/eap_server_sake.c
  528. endif
  529. CONFIG_IEEE8021X_EAPOL=y
  530. endif
  531. ifdef CONFIG_EAP_GPSK
  532. # EAP-GPSK
  533. ifeq ($(CONFIG_EAP_GPSK), dyn)
  534. L_CFLAGS += -DEAP_GPSK_DYNAMIC
  535. EAPDYN += src/eap_peer/eap_gpsk.so
  536. else
  537. L_CFLAGS += -DEAP_GPSK
  538. OBJS += src/eap_peer/eap_gpsk.c src/eap_common/eap_gpsk_common.c
  539. OBJS_h += src/eap_server/eap_server_gpsk.c
  540. endif
  541. CONFIG_IEEE8021X_EAPOL=y
  542. ifdef CONFIG_EAP_GPSK_SHA256
  543. L_CFLAGS += -DEAP_GPSK_SHA256
  544. endif
  545. NEED_SHA256=y
  546. NEED_AES_OMAC1=y
  547. endif
  548. ifdef CONFIG_EAP_PWD
  549. L_CFLAGS += -DEAP_PWD
  550. OBJS += src/eap_peer/eap_pwd.c src/eap_common/eap_pwd_common.c
  551. OBJS_h += src/eap_server/eap_server_pwd.c
  552. CONFIG_IEEE8021X_EAPOL=y
  553. NEED_SHA256=y
  554. endif
  555. ifdef CONFIG_EAP_EKE
  556. # EAP-EKE
  557. ifeq ($(CONFIG_EAP_EKE), dyn)
  558. L_CFLAGS += -DEAP_EKE_DYNAMIC
  559. EAPDYN += src/eap_peer/eap_eke.so
  560. else
  561. L_CFLAGS += -DEAP_EKE
  562. OBJS += src/eap_peer/eap_eke.c src/eap_common/eap_eke_common.c
  563. OBJS_h += src/eap_server/eap_server_eke.c
  564. endif
  565. CONFIG_IEEE8021X_EAPOL=y
  566. NEED_DH_GROUPS=y
  567. NEED_DH_GROUPS_ALL=y
  568. NEED_SHA256=y
  569. endif
  570. ifdef CONFIG_WPS
  571. # EAP-WSC
  572. L_CFLAGS += -DCONFIG_WPS -DEAP_WSC
  573. OBJS += wps_supplicant.c
  574. OBJS += src/utils/uuid.c
  575. OBJS += src/eap_peer/eap_wsc.c src/eap_common/eap_wsc_common.c
  576. OBJS += src/wps/wps.c
  577. OBJS += src/wps/wps_common.c
  578. OBJS += src/wps/wps_attr_parse.c
  579. OBJS += src/wps/wps_attr_build.c
  580. OBJS += src/wps/wps_attr_process.c
  581. OBJS += src/wps/wps_dev_attr.c
  582. OBJS += src/wps/wps_enrollee.c
  583. OBJS += src/wps/wps_registrar.c
  584. OBJS_h += src/eap_server/eap_server_wsc.c
  585. CONFIG_IEEE8021X_EAPOL=y
  586. NEED_DH_GROUPS=y
  587. NEED_SHA256=y
  588. NEED_BASE64=y
  589. NEED_AES_CBC=y
  590. NEED_MODEXP=y
  591. ifdef CONFIG_WPS_NFC
  592. L_CFLAGS += -DCONFIG_WPS_NFC
  593. OBJS += src/wps/ndef.c
  594. NEED_WPS_OOB=y
  595. endif
  596. ifdef NEED_WPS_OOB
  597. L_CFLAGS += -DCONFIG_WPS_OOB
  598. endif
  599. ifdef CONFIG_WPS_ER
  600. CONFIG_WPS_UPNP=y
  601. L_CFLAGS += -DCONFIG_WPS_ER
  602. OBJS += src/wps/wps_er.c
  603. OBJS += src/wps/wps_er_ssdp.c
  604. endif
  605. ifdef CONFIG_WPS_UPNP
  606. L_CFLAGS += -DCONFIG_WPS_UPNP
  607. OBJS += src/wps/wps_upnp.c
  608. OBJS += src/wps/wps_upnp_ssdp.c
  609. OBJS += src/wps/wps_upnp_web.c
  610. OBJS += src/wps/wps_upnp_event.c
  611. OBJS += src/wps/wps_upnp_ap.c
  612. OBJS += src/wps/upnp_xml.c
  613. OBJS += src/wps/httpread.c
  614. OBJS += src/wps/http_client.c
  615. OBJS += src/wps/http_server.c
  616. endif
  617. ifdef CONFIG_WPS_STRICT
  618. L_CFLAGS += -DCONFIG_WPS_STRICT
  619. OBJS += src/wps/wps_validate.c
  620. endif
  621. ifdef CONFIG_WPS_TESTING
  622. L_CFLAGS += -DCONFIG_WPS_TESTING
  623. endif
  624. ifdef CONFIG_WPS_REG_DISABLE_OPEN
  625. L_CFLAGS += -DCONFIG_WPS_REG_DISABLE_OPEN
  626. endif
  627. endif
  628. ifdef CONFIG_EAP_IKEV2
  629. # EAP-IKEv2
  630. ifeq ($(CONFIG_EAP_IKEV2), dyn)
  631. L_CFLAGS += -DEAP_IKEV2_DYNAMIC
  632. EAPDYN += src/eap_peer/eap_ikev2.so src/eap_peer/ikev2.c
  633. EAPDYN += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c
  634. else
  635. L_CFLAGS += -DEAP_IKEV2
  636. OBJS += src/eap_peer/eap_ikev2.c src/eap_peer/ikev2.c
  637. OBJS += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c
  638. OBJS_h += src/eap_server/eap_server_ikev2.c
  639. OBJS_h += src/eap_server/ikev2.c
  640. endif
  641. CONFIG_IEEE8021X_EAPOL=y
  642. NEED_DH_GROUPS=y
  643. NEED_DH_GROUPS_ALL=y
  644. NEED_MODEXP=y
  645. NEED_CIPHER=y
  646. endif
  647. ifdef CONFIG_EAP_VENDOR_TEST
  648. ifeq ($(CONFIG_EAP_VENDOR_TEST), dyn)
  649. L_CFLAGS += -DEAP_VENDOR_TEST_DYNAMIC
  650. EAPDYN += src/eap_peer/eap_vendor_test.so
  651. else
  652. L_CFLAGS += -DEAP_VENDOR_TEST
  653. OBJS += src/eap_peer/eap_vendor_test.c
  654. OBJS_h += src/eap_server/eap_server_vendor_test.c
  655. endif
  656. CONFIG_IEEE8021X_EAPOL=y
  657. endif
  658. ifdef CONFIG_EAP_TNC
  659. # EAP-TNC
  660. L_CFLAGS += -DEAP_TNC
  661. OBJS += src/eap_peer/eap_tnc.c
  662. OBJS += src/eap_peer/tncc.c
  663. OBJS_h += src/eap_server/eap_server_tnc.c
  664. OBJS_h += src/eap_server/tncs.c
  665. NEED_BASE64=y
  666. ifndef CONFIG_NATIVE_WINDOWS
  667. ifndef CONFIG_DRIVER_BSD
  668. LIBS += -ldl
  669. endif
  670. endif
  671. endif
  672. ifdef CONFIG_IEEE8021X_EAPOL
  673. # IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
  674. L_CFLAGS += -DIEEE8021X_EAPOL
  675. OBJS += src/eapol_supp/eapol_supp_sm.c
  676. OBJS += src/eap_peer/eap.c src/eap_peer/eap_methods.c
  677. NEED_EAP_COMMON=y
  678. ifdef CONFIG_DYNAMIC_EAP_METHODS
  679. L_CFLAGS += -DCONFIG_DYNAMIC_EAP_METHODS
  680. LIBS += -ldl -rdynamic
  681. endif
  682. endif
  683. ifdef CONFIG_AP
  684. NEED_EAP_COMMON=y
  685. NEED_RSN_AUTHENTICATOR=y
  686. L_CFLAGS += -DCONFIG_AP
  687. OBJS += ap.c
  688. L_CFLAGS += -DCONFIG_NO_RADIUS
  689. L_CFLAGS += -DCONFIG_NO_ACCOUNTING
  690. L_CFLAGS += -DCONFIG_NO_VLAN
  691. OBJS += src/ap/hostapd.c
  692. OBJS += src/ap/wpa_auth_glue.c
  693. OBJS += src/ap/utils.c
  694. OBJS += src/ap/authsrv.c
  695. OBJS += src/ap/ap_config.c
  696. OBJS += src/utils/ip_addr.c
  697. OBJS += src/ap/sta_info.c
  698. OBJS += src/ap/tkip_countermeasures.c
  699. OBJS += src/ap/ap_mlme.c
  700. OBJS += src/ap/ieee802_1x.c
  701. OBJS += src/eapol_auth/eapol_auth_sm.c
  702. OBJS += src/ap/ieee802_11_auth.c
  703. OBJS += src/ap/ieee802_11_shared.c
  704. OBJS += src/ap/drv_callbacks.c
  705. OBJS += src/ap/ap_drv_ops.c
  706. OBJS += src/ap/beacon.c
  707. OBJS += src/ap/bss_load.c
  708. OBJS += src/ap/eap_user_db.c
  709. ifdef CONFIG_IEEE80211N
  710. OBJS += src/ap/ieee802_11_ht.c
  711. ifdef CONFIG_IEEE80211AC
  712. OBJS += src/ap/ieee802_11_vht.c
  713. endif
  714. endif
  715. ifdef CONFIG_WNM
  716. OBJS += src/ap/wnm_ap.c
  717. endif
  718. ifdef CONFIG_CTRL_IFACE
  719. OBJS += src/ap/ctrl_iface_ap.c
  720. endif
  721. L_CFLAGS += -DEAP_SERVER -DEAP_SERVER_IDENTITY
  722. OBJS += src/eap_server/eap_server.c
  723. OBJS += src/eap_server/eap_server_identity.c
  724. OBJS += src/eap_server/eap_server_methods.c
  725. ifdef CONFIG_IEEE80211N
  726. L_CFLAGS += -DCONFIG_IEEE80211N
  727. ifdef CONFIG_IEEE80211AC
  728. L_CFLAGS += -DCONFIG_IEEE80211AC
  729. endif
  730. endif
  731. ifdef NEED_AP_MLME
  732. OBJS += src/ap/wmm.c
  733. OBJS += src/ap/ap_list.c
  734. OBJS += src/ap/ieee802_11.c
  735. OBJS += src/ap/hw_features.c
  736. OBJS += src/ap/dfs.c
  737. L_CFLAGS += -DNEED_AP_MLME
  738. endif
  739. ifdef CONFIG_WPS
  740. L_CFLAGS += -DEAP_SERVER_WSC
  741. OBJS += src/ap/wps_hostapd.c
  742. OBJS += src/eap_server/eap_server_wsc.c
  743. endif
  744. ifdef CONFIG_INTERWORKING
  745. OBJS += src/ap/gas_serv.c
  746. endif
  747. ifdef CONFIG_HS20
  748. OBJS += src/ap/hs20.c
  749. endif
  750. endif
  751. ifdef NEED_RSN_AUTHENTICATOR
  752. L_CFLAGS += -DCONFIG_NO_RADIUS
  753. NEED_AES_WRAP=y
  754. OBJS += src/ap/wpa_auth.c
  755. OBJS += src/ap/wpa_auth_ie.c
  756. OBJS += src/ap/pmksa_cache_auth.c
  757. ifdef CONFIG_IEEE80211R
  758. OBJS += src/ap/wpa_auth_ft.c
  759. endif
  760. ifdef CONFIG_PEERKEY
  761. OBJS += src/ap/peerkey_auth.c
  762. endif
  763. endif
  764. ifdef CONFIG_EAP_SERVER
  765. L_CFLAGS += -DEAP_SERVER
  766. OBJS_h += src/eap_server/eap_server.c
  767. OBJS_h += src/eap_server/eap_server_identity.c
  768. OBJS_h += src/eap_server/eap_server_methods.c
  769. endif
  770. ifdef CONFIG_RADIUS_CLIENT
  771. OBJS_h += src/utils/ip_addr.c
  772. OBJS_h += src/radius/radius.c
  773. OBJS_h += src/radius/radius_client.c
  774. endif
  775. ifdef CONFIG_AUTHENTICATOR
  776. OBJS_h += src/eapol_auth/eapol_auth_sm.c
  777. OBJS_h += src/ap/ieee802_1x.c
  778. endif
  779. ifdef CONFIG_WPA_AUTHENTICATOR
  780. OBJS_h += src/ap/wpa_auth.c
  781. OBJS_h += src/ap/wpa_auth_ie.c
  782. OBJS_h += src/ap/pmksa_cache_auth.c
  783. ifdef CONFIG_IEEE80211R
  784. OBJS_h += src/ap/wpa_auth_ft.c
  785. endif
  786. ifdef CONFIG_PEERKEY
  787. OBJS_h += src/ap/peerkey_auth.c
  788. endif
  789. endif
  790. ifdef CONFIG_PCSC
  791. # PC/SC interface for smartcards (USIM, GSM SIM)
  792. L_CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
  793. OBJS += src/utils/pcsc_funcs.c
  794. # -lpthread may not be needed depending on how pcsc-lite was configured
  795. ifdef CONFIG_NATIVE_WINDOWS
  796. #Once MinGW gets support for WinScard, -lwinscard could be used instead of the
  797. #dynamic symbol loading that is now used in pcsc_funcs.c
  798. #LIBS += -lwinscard
  799. else
  800. LIBS += -lpcsclite -lpthread
  801. endif
  802. endif
  803. ifdef CONFIG_SIM_SIMULATOR
  804. L_CFLAGS += -DCONFIG_SIM_SIMULATOR
  805. NEED_MILENAGE=y
  806. endif
  807. ifdef CONFIG_USIM_SIMULATOR
  808. L_CFLAGS += -DCONFIG_USIM_SIMULATOR
  809. NEED_MILENAGE=y
  810. endif
  811. ifdef NEED_MILENAGE
  812. OBJS += src/crypto/milenage.c
  813. NEED_AES_ENCBLOCK=y
  814. endif
  815. ifdef CONFIG_PKCS12
  816. L_CFLAGS += -DPKCS12_FUNCS
  817. endif
  818. ifdef CONFIG_SMARTCARD
  819. L_CFLAGS += -DCONFIG_SMARTCARD
  820. endif
  821. ifdef MS_FUNCS
  822. OBJS += src/crypto/ms_funcs.c
  823. NEED_DES=y
  824. NEED_MD4=y
  825. endif
  826. ifdef CHAP
  827. OBJS += src/eap_common/chap.c
  828. endif
  829. ifdef TLS_FUNCS
  830. NEED_DES=y
  831. # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, and EAP_FAST)
  832. OBJS += src/eap_peer/eap_tls_common.c
  833. OBJS_h += src/eap_server/eap_server_tls_common.c
  834. ifndef CONFIG_FIPS
  835. NEED_TLS_PRF=y
  836. NEED_SHA1=y
  837. NEED_MD5=y
  838. endif
  839. endif
  840. ifndef CONFIG_TLS
  841. CONFIG_TLS=openssl
  842. endif
  843. ifdef CONFIG_TLSV11
  844. L_CFLAGS += -DCONFIG_TLSV11
  845. endif
  846. ifdef CONFIG_TLSV12
  847. L_CFLAGS += -DCONFIG_TLSV12
  848. NEED_SHA256=y
  849. endif
  850. ifeq ($(CONFIG_TLS), openssl)
  851. ifdef TLS_FUNCS
  852. L_CFLAGS += -DEAP_TLS_OPENSSL
  853. OBJS += src/crypto/tls_openssl.c
  854. LIBS += -lssl
  855. endif
  856. OBJS += src/crypto/crypto_openssl.c
  857. OBJS_p += src/crypto/crypto_openssl.c
  858. ifdef NEED_FIPS186_2_PRF
  859. OBJS += src/crypto/fips_prf_openssl.c
  860. endif
  861. LIBS += -lcrypto
  862. LIBS_p += -lcrypto
  863. ifdef CONFIG_TLS_ADD_DL
  864. LIBS += -ldl
  865. LIBS_p += -ldl
  866. endif
  867. endif
  868. ifeq ($(CONFIG_TLS), gnutls)
  869. ifdef TLS_FUNCS
  870. OBJS += src/crypto/tls_gnutls.c
  871. LIBS += -lgnutls -lgpg-error
  872. endif
  873. OBJS += src/crypto/crypto_gnutls.c
  874. OBJS_p += src/crypto/crypto_gnutls.c
  875. ifdef NEED_FIPS186_2_PRF
  876. OBJS += src/crypto/fips_prf_internal.c
  877. OBJS += src/crypto/sha1-internal.c
  878. endif
  879. LIBS += -lgcrypt
  880. LIBS_p += -lgcrypt
  881. CONFIG_INTERNAL_SHA256=y
  882. CONFIG_INTERNAL_RC4=y
  883. CONFIG_INTERNAL_DH_GROUP5=y
  884. endif
  885. ifeq ($(CONFIG_TLS), internal)
  886. ifndef CONFIG_CRYPTO
  887. CONFIG_CRYPTO=internal
  888. endif
  889. ifdef TLS_FUNCS
  890. OBJS += src/crypto/crypto_internal-rsa.c
  891. OBJS += src/crypto/tls_internal.c
  892. OBJS += src/tls/tlsv1_common.c
  893. OBJS += src/tls/tlsv1_record.c
  894. OBJS += src/tls/tlsv1_cred.c
  895. OBJS += src/tls/tlsv1_client.c
  896. OBJS += src/tls/tlsv1_client_write.c
  897. OBJS += src/tls/tlsv1_client_read.c
  898. OBJS += src/tls/asn1.c
  899. OBJS += src/tls/rsa.c
  900. OBJS += src/tls/x509v3.c
  901. OBJS += src/tls/pkcs1.c
  902. OBJS += src/tls/pkcs5.c
  903. OBJS += src/tls/pkcs8.c
  904. NEED_SHA256=y
  905. NEED_BASE64=y
  906. NEED_TLS_PRF=y
  907. ifdef CONFIG_TLSV12
  908. NEED_TLS_PRF_SHA256=y
  909. endif
  910. NEED_MODEXP=y
  911. NEED_CIPHER=y
  912. L_CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
  913. endif
  914. ifdef NEED_CIPHER
  915. NEED_DES=y
  916. OBJS += src/crypto/crypto_internal-cipher.c
  917. endif
  918. ifdef NEED_MODEXP
  919. OBJS += src/crypto/crypto_internal-modexp.c
  920. OBJS += src/tls/bignum.c
  921. endif
  922. ifeq ($(CONFIG_CRYPTO), libtomcrypt)
  923. OBJS += src/crypto/crypto_libtomcrypt.c
  924. OBJS_p += src/crypto/crypto_libtomcrypt.c
  925. LIBS += -ltomcrypt -ltfm
  926. LIBS_p += -ltomcrypt -ltfm
  927. CONFIG_INTERNAL_SHA256=y
  928. CONFIG_INTERNAL_RC4=y
  929. CONFIG_INTERNAL_DH_GROUP5=y
  930. endif
  931. ifeq ($(CONFIG_CRYPTO), internal)
  932. OBJS += src/crypto/crypto_internal.c
  933. OBJS_p += src/crypto/crypto_internal.c
  934. NEED_AES_ENC=y
  935. L_CFLAGS += -DCONFIG_CRYPTO_INTERNAL
  936. ifdef CONFIG_INTERNAL_LIBTOMMATH
  937. L_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
  938. ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST
  939. L_CFLAGS += -DLTM_FAST
  940. endif
  941. else
  942. LIBS += -ltommath
  943. LIBS_p += -ltommath
  944. endif
  945. CONFIG_INTERNAL_AES=y
  946. CONFIG_INTERNAL_DES=y
  947. CONFIG_INTERNAL_SHA1=y
  948. CONFIG_INTERNAL_MD4=y
  949. CONFIG_INTERNAL_MD5=y
  950. CONFIG_INTERNAL_SHA256=y
  951. CONFIG_INTERNAL_RC4=y
  952. CONFIG_INTERNAL_DH_GROUP5=y
  953. endif
  954. ifeq ($(CONFIG_CRYPTO), cryptoapi)
  955. OBJS += src/crypto/crypto_cryptoapi.c
  956. OBJS_p += src/crypto/crypto_cryptoapi.c
  957. L_CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI
  958. CONFIG_INTERNAL_SHA256=y
  959. CONFIG_INTERNAL_RC4=y
  960. endif
  961. endif
  962. ifeq ($(CONFIG_TLS), none)
  963. ifdef TLS_FUNCS
  964. OBJS += src/crypto/tls_none.c
  965. L_CFLAGS += -DEAP_TLS_NONE
  966. CONFIG_INTERNAL_AES=y
  967. CONFIG_INTERNAL_SHA1=y
  968. CONFIG_INTERNAL_MD5=y
  969. endif
  970. OBJS += src/crypto/crypto_none.c
  971. OBJS_p += src/crypto/crypto_none.c
  972. CONFIG_INTERNAL_SHA256=y
  973. CONFIG_INTERNAL_RC4=y
  974. endif
  975. ifdef TLS_FUNCS
  976. ifdef CONFIG_SMARTCARD
  977. ifndef CONFIG_NATIVE_WINDOWS
  978. ifneq ($(CONFIG_L2_PACKET), freebsd)
  979. LIBS += -ldl
  980. endif
  981. endif
  982. endif
  983. endif
  984. ifndef TLS_FUNCS
  985. OBJS += src/crypto/tls_none.c
  986. ifeq ($(CONFIG_TLS), internal)
  987. CONFIG_INTERNAL_AES=y
  988. CONFIG_INTERNAL_SHA1=y
  989. CONFIG_INTERNAL_MD5=y
  990. CONFIG_INTERNAL_RC4=y
  991. endif
  992. endif
  993. AESOBJS = # none so far (see below)
  994. ifdef CONFIG_INTERNAL_AES
  995. AESOBJS += src/crypto/aes-internal.c src/crypto/aes-internal-dec.c
  996. endif
  997. ifneq ($(CONFIG_TLS), openssl)
  998. AESOBJS += src/crypto/aes-unwrap.c
  999. endif
  1000. ifdef NEED_AES_EAX
  1001. AESOBJS += src/crypto/aes-eax.c
  1002. NEED_AES_CTR=y
  1003. endif
  1004. ifdef NEED_AES_CTR
  1005. AESOBJS += src/crypto/aes-ctr.c
  1006. endif
  1007. ifdef NEED_AES_ENCBLOCK
  1008. AESOBJS += src/crypto/aes-encblock.c
  1009. endif
  1010. ifdef NEED_AES_OMAC1
  1011. NEED_AES_ENC=y
  1012. ifdef CONFIG_OPENSSL_CMAC
  1013. L_CFLAGS += -DCONFIG_OPENSSL_CMAC
  1014. else
  1015. AESOBJS += src/crypto/aes-omac1.c
  1016. endif
  1017. endif
  1018. ifdef NEED_AES_WRAP
  1019. NEED_AES_ENC=y
  1020. ifneq ($(CONFIG_TLS), openssl)
  1021. AESOBJS += src/crypto/aes-wrap.c
  1022. endif
  1023. endif
  1024. ifdef NEED_AES_CBC
  1025. NEED_AES_ENC=y
  1026. AESOBJS += src/crypto/aes-cbc.c
  1027. endif
  1028. ifdef NEED_AES_ENC
  1029. ifdef CONFIG_INTERNAL_AES
  1030. AESOBJS += src/crypto/aes-internal-enc.c
  1031. endif
  1032. endif
  1033. ifdef NEED_AES_SIV
  1034. AESOBJS += src/crypto/aes-siv.c
  1035. endif
  1036. ifdef NEED_AES
  1037. OBJS += $(AESOBJS)
  1038. endif
  1039. SHA1OBJS =
  1040. ifdef NEED_SHA1
  1041. ifneq ($(CONFIG_TLS), openssl)
  1042. SHA1OBJS += src/crypto/sha1.c
  1043. endif
  1044. SHA1OBJS += src/crypto/sha1-prf.c
  1045. ifdef CONFIG_INTERNAL_SHA1
  1046. SHA1OBJS += src/crypto/sha1-internal.c
  1047. ifdef NEED_FIPS186_2_PRF
  1048. SHA1OBJS += src/crypto/fips_prf_internal.c
  1049. endif
  1050. endif
  1051. ifdef CONFIG_NO_WPA_PASSPHRASE
  1052. L_CFLAGS += -DCONFIG_NO_PBKDF2
  1053. else
  1054. ifneq ($(CONFIG_TLS), openssl)
  1055. SHA1OBJS += src/crypto/sha1-pbkdf2.c
  1056. endif
  1057. endif
  1058. ifdef NEED_T_PRF
  1059. SHA1OBJS += src/crypto/sha1-tprf.c
  1060. endif
  1061. ifdef NEED_TLS_PRF
  1062. SHA1OBJS += src/crypto/sha1-tlsprf.c
  1063. endif
  1064. endif
  1065. MD5OBJS =
  1066. ifndef CONFIG_FIPS
  1067. ifneq ($(CONFIG_TLS), openssl)
  1068. MD5OBJS += src/crypto/md5.c
  1069. endif
  1070. endif
  1071. ifdef NEED_MD5
  1072. ifdef CONFIG_INTERNAL_MD5
  1073. MD5OBJS += src/crypto/md5-internal.c
  1074. endif
  1075. OBJS += $(MD5OBJS)
  1076. OBJS_p += $(MD5OBJS)
  1077. endif
  1078. ifdef NEED_MD4
  1079. ifdef CONFIG_INTERNAL_MD4
  1080. OBJS += src/crypto/md4-internal.c
  1081. endif
  1082. endif
  1083. DESOBJS = # none needed when not internal
  1084. ifdef NEED_DES
  1085. ifdef CONFIG_INTERNAL_DES
  1086. DESOBJS += src/crypto/des-internal.c
  1087. endif
  1088. endif
  1089. ifdef NEED_RC4
  1090. ifdef CONFIG_INTERNAL_RC4
  1091. OBJS += src/crypto/rc4.c
  1092. endif
  1093. endif
  1094. SHA256OBJS = # none by default
  1095. ifdef NEED_SHA256
  1096. L_CFLAGS += -DCONFIG_SHA256
  1097. ifneq ($(CONFIG_TLS), openssl)
  1098. SHA256OBJS += src/crypto/sha256.c
  1099. endif
  1100. SHA256OBJS += src/crypto/sha256-prf.c
  1101. ifdef CONFIG_INTERNAL_SHA256
  1102. SHA256OBJS += src/crypto/sha256-internal.c
  1103. endif
  1104. ifdef NEED_TLS_PRF_SHA256
  1105. SHA256OBJS += src/crypto/sha256-tlsprf.c
  1106. endif
  1107. ifdef NEED_HMAC_SHA256_KDF
  1108. SHA256OBJS += src/crypto/sha256-kdf.c
  1109. endif
  1110. OBJS += $(SHA256OBJS)
  1111. endif
  1112. ifdef NEED_SHA384
  1113. L_CFLAGS += -DCONFIG_SHA384
  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)