Android.mk 34 KB

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