[picopc] Added emulation of Android private ioctls for generic WiFi drivers.
[picopc-android-gingerbread:external-wpa_supplicant_6.git] / wpa_supplicant / Android.mk
1 #
2 # Copyright (C) 2008 The Android Open Source Project
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 #
17
18 LOCAL_PATH := $(call my-dir)
19 CONFIG_DRIVER_WEXT = y
20 WPA_BUILD_SUPPLICANT := true
21 ifneq ($(TARGET_SIMULATOR),true)
22   ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),)
23     WPA_BUILD_SUPPLICANT := true
24     CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) = y
25   endif
26 endif
27
28 include $(LOCAL_PATH)/.config
29
30 # To force sizeof(enum) = 4
31 ifeq ($(TARGET_ARCH),arm)
32 L_CFLAGS += -mabi=aapcs-linux
33 endif
34
35 # To ignore possible wrong network configurations
36 L_CFLAGS += -DWPA_IGNORE_CONFIG_ERRORS
37
38 # To allow non-ASCII characters in SSID
39 L_CFLAGS += -DWPA_UNICODE_SSID
40
41 # OpenSSL is configured without engines on Android
42 L_CFLAGS += -DOPENSSL_NO_ENGINE
43
44 INCLUDES = $(LOCAL_PATH)
45 INCLUDES += $(LOCAL_PATH)/src
46 INCLUDES += $(LOCAL_PATH)/src/common
47 #INCLUDES += $(LOCAL_PATH)/src/crypto  
48 # To force proper includes
49
50 INCLUDES += $(LOCAL_PATH)/src/drivers
51 INCLUDES += $(LOCAL_PATH)/src/eap_common
52 INCLUDES += $(LOCAL_PATH)/src/eapol_supp
53 INCLUDES += $(LOCAL_PATH)/src/eap_peer
54 INCLUDES += $(LOCAL_PATH)/src/eap_server
55 INCLUDES += $(LOCAL_PATH)/src/hlr_auc_gw
56 INCLUDES += $(LOCAL_PATH)/src/l2_packet
57 INCLUDES += $(LOCAL_PATH)/src/radius
58 INCLUDES += $(LOCAL_PATH)/src/rsn_supp
59 INCLUDES += $(LOCAL_PATH)/src/tls
60 INCLUDES += $(LOCAL_PATH)/src/utils
61 INCLUDES += $(LOCAL_PATH)/src/wps
62 INCLUDES += external/openssl/include
63 INCLUDES += frameworks/base/cmds/keystore
64
65 OBJS = config.c
66 OBJS += src/utils/common.c
67 OBJS += src/utils/wpa_debug.c
68 OBJS += src/utils/wpabuf.c
69 OBJS += src/crypto/md5.c
70 OBJS += src/crypto/rc4.c
71 OBJS += src/crypto/md4.c
72 OBJS += src/crypto/sha1.c
73 OBJS += src/crypto/des.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/crypto/md5.c
78 OBJS_p += src/crypto/md4.c
79 OBJS_p += src/crypto/sha1.c
80 OBJS_p += src/crypto/des.c
81 OBJS_c = wpa_cli.c
82 OBJS_c += src/common/wpa_ctrl.c
83 OBJS_d =
84
85 ifndef CONFIG_OS
86 ifdef CONFIG_NATIVE_WINDOWS
87 CONFIG_OS=win32
88 else
89 CONFIG_OS=unix
90 endif
91 endif
92
93 ifeq ($(CONFIG_OS), internal)
94 L_CFLAGS += -DOS_NO_C_LIB_DEFINES
95 endif
96
97 OBJS += src/utils/os_$(CONFIG_OS).c
98 OBJS_p += src/utils/os_$(CONFIG_OS).c
99 OBJS_c += src/utils/os_$(CONFIG_OS).c
100
101 ifndef CONFIG_ELOOP
102 CONFIG_ELOOP=eloop
103 endif
104 OBJS += src/utils/$(CONFIG_ELOOP).c
105
106
107 ifdef CONFIG_EAPOL_TEST
108 L_CFLAGS += -Werror -DEAPOL_TEST
109 endif
110
111 ifndef CONFIG_BACKEND
112 CONFIG_BACKEND=file
113 endif
114
115 ifeq ($(CONFIG_BACKEND), file)
116 OBJS += config_file.c
117 ifndef CONFIG_NO_CONFIG_BLOBS
118 NEED_BASE64=y
119 endif
120 L_CFLAGS += -DCONFIG_BACKEND_FILE
121 endif
122
123 ifeq ($(CONFIG_BACKEND), winreg)
124 OBJS += config_winreg.c
125 endif
126
127 ifeq ($(CONFIG_BACKEND), none)
128 OBJS += config_none.c
129 endif
130
131 ifdef CONFIG_NO_CONFIG_WRITE
132 L_CFLAGS += -DCONFIG_NO_CONFIG_WRITE
133 endif
134
135 ifdef CONFIG_NO_CONFIG_BLOBS
136 L_CFLAGS += -DCONFIG_NO_CONFIG_BLOBS
137 endif
138
139 ifdef CONFIG_NO_SCAN_PROCESSING
140 L_CFLAGS += -DCONFIG_NO_SCAN_PROCESSING
141 endif
142
143 ifdef CONFIG_DRIVER_HOSTAP
144 L_CFLAGS += -DCONFIG_DRIVER_HOSTAP
145 OBJS_d += src/drivers/driver_hostap.c
146 CONFIG_WIRELESS_EXTENSION=y
147 endif
148
149 ifdef CONFIG_DRIVER_WEXT
150 L_CFLAGS += -DCONFIG_DRIVER_WEXT
151 CONFIG_WIRELESS_EXTENSION=y
152 endif
153
154 ifdef CONFIG_DRIVER_NL80211
155 L_CFLAGS += -DCONFIG_DRIVER_NL80211
156 OBJS_d += src/drivers/driver_nl80211.c
157 LIBS += -lnl
158 ifdef CONFIG_CLIENT_MLME
159 OBJS_d += src/drivers/radiotap.c
160 endif
161 endif
162
163 ifdef CONFIG_DRIVER_PRISM54
164 L_CFLAGS += -DCONFIG_DRIVER_PRISM54
165 OBJS_d += src/drivers/driver_prism54.c
166 CONFIG_WIRELESS_EXTENSION=y
167 endif
168
169 ifdef CONFIG_DRIVER_HERMES
170 L_CFLAGS += -DCONFIG_DRIVER_HERMES
171 OBJS_d += src/drivers/driver_hermes.c
172 CONFIG_WIRELESS_EXTENSION=y
173 endif
174
175 ifdef CONFIG_DRIVER_MADWIFI
176 L_CFLAGS += -DCONFIG_DRIVER_MADWIFI
177 OBJS_d += src/drivers/driver_madwifi.c
178 CONFIG_WIRELESS_EXTENSION=y
179 endif
180
181 ifdef CONFIG_DRIVER_ATMEL
182 L_CFLAGS += -DCONFIG_DRIVER_ATMEL
183 OBJS_d += src/drivers/driver_atmel.c
184 CONFIG_WIRELESS_EXTENSION=y
185 endif
186
187 ifdef CONFIG_DRIVER_NDISWRAPPER
188 L_CFLAGS += -DCONFIG_DRIVER_NDISWRAPPER
189 OBJS_d += src/drivers/driver_ndiswrapper.c
190 CONFIG_WIRELESS_EXTENSION=y
191 endif
192
193 ifdef CONFIG_DRIVER_RALINK
194 L_CFLAGS += -DCONFIG_DRIVER_RALINK
195 OBJS_d += src/drivers/driver_ralink.c
196 endif
197
198 ifdef CONFIG_DRIVER_BROADCOM
199 L_CFLAGS += -DCONFIG_DRIVER_BROADCOM
200 OBJS_d += src/drivers/driver_broadcom.c
201 endif
202
203 ifdef CONFIG_DRIVER_IPW
204 L_CFLAGS += -DCONFIG_DRIVER_IPW
205 OBJS_d += src/drivers/driver_ipw.c
206 CONFIG_WIRELESS_EXTENSION=y
207 endif
208
209 ifdef CONFIG_DRIVER_BSD
210 L_CFLAGS += -DCONFIG_DRIVER_BSD
211 OBJS_d += src/drivers/driver_bsd.c
212 ifndef CONFIG_L2_PACKET
213 CONFIG_L2_PACKET=freebsd
214 endif
215 endif
216
217 ifdef CONFIG_DRIVER_NDIS
218 L_CFLAGS += -DCONFIG_DRIVER_NDIS
219 OBJS_d += src/drivers/driver_ndis.c
220 ifdef CONFIG_NDIS_EVENTS_INTEGRATED
221 OBJS_d += src/drivers/driver_ndis_.c
222 endif
223 ifndef CONFIG_L2_PACKET
224 CONFIG_L2_PACKET=pcap
225 endif
226 CONFIG_WINPCAP=y
227 ifdef CONFIG_USE_NDISUIO
228 L_CFLAGS += -DCONFIG_USE_NDISUIO
229 endif
230 endif
231
232 ifdef CONFIG_DRIVER_WIRED
233 L_CFLAGS += -DCONFIG_DRIVER_WIRED
234 OBJS_d += src/drivers/driver_wired.c
235 endif
236
237 ifdef CONFIG_DRIVER_TEST
238 L_CFLAGS += -DCONFIG_DRIVER_TEST
239 OBJS_d += src/drivers/driver_test.c
240 endif
241
242 ifdef CONFIG_DRIVER_CUSTOM
243 L_CFLAGS += -DCONFIG_DRIVER_CUSTOM
244 endif
245
246 ifdef CONFIG_DRIVER_OSX
247 L_CFLAGS += -DCONFIG_DRIVER_OSX
248 OBJS_d += src/drivers/driver_osx.c
249 LDFLAGS += -framework CoreFoundation
250 LDFLAGS += -F/System/Library/PrivateFrameworks -framework Apple80211
251 endif
252
253 ifdef CONFIG_DRIVER_PS3
254 L_CFLAGS += -DCONFIG_DRIVER_PS3 -m64
255 OBJS_d += src/drivers/driver_ps3.c
256 LDFLAGS += -m64
257 endif
258
259 ifdef CONFIG_DRIVER_IPHONE
260 L_CFLAGS += -DCONFIG_DRIVER_IPHONE
261 OBJS_d += src/drivers/driver_iphone.c
262 OBJS_d += src/drivers/MobileApple80211.c
263 LIBS += -framework CoreFoundation
264 endif
265
266 ifdef CONFIG_DRIVER_ROBOSWITCH
267 L_CFLAGS += -DCONFIG_DRIVER_ROBOSWITCH
268 OBJS_d += src/drivers/driver_roboswitch.c
269 endif
270
271 ifndef CONFIG_L2_PACKET
272 CONFIG_L2_PACKET=linux
273 endif
274
275 OBJS_l2 += src/l2_packet/l2_packet_$(CONFIG_L2_PACKET).c
276
277 ifeq ($(CONFIG_L2_PACKET), pcap)
278 ifdef CONFIG_WINPCAP
279 L_CFLAGS += -DCONFIG_WINPCAP
280 LIBS += -lwpcap -lpacket
281 LIBS_w += -lwpcap
282 else
283 LIBS += -ldnet -lpcap
284 endif
285 endif
286
287 ifeq ($(CONFIG_L2_PACKET), winpcap)
288 LIBS += -lwpcap -lpacket
289 LIBS_w += -lwpcap
290 endif
291
292 ifeq ($(CONFIG_L2_PACKET), freebsd)
293 LIBS += -lpcap
294 endif
295
296 ifdef CONFIG_EAP_TLS
297 # EAP-TLS
298 ifeq ($(CONFIG_EAP_TLS), dyn)
299 L_CFLAGS += -DEAP_TLS_DYNAMIC
300 EAPDYN += src/eap_peer/eap_tls.so
301 else
302 L_CFLAGS += -DEAP_TLS
303 OBJS += src/eap_peer/eap_tls.c
304 OBJS_h += src/eap_server/eap_tls.c
305 endif
306 TLS_FUNCS=y
307 CONFIG_IEEE8021X_EAPOL=y
308 endif
309
310 ifdef CONFIG_EAP_PEAP
311 # EAP-PEAP
312 ifeq ($(CONFIG_EAP_PEAP), dyn)
313 L_CFLAGS += -DEAP_PEAP_DYNAMIC
314 EAPDYN += src/eap_peer/eap_peap.so
315 else
316 L_CFLAGS += -DEAP_PEAP
317 OBJS += src/eap_peer/eap_peap.c
318 OBJS += src/eap_common/eap_peap_common.c
319 OBJS_h += src/eap_server/eap_peap.c
320 endif
321 TLS_FUNCS=y
322 CONFIG_IEEE8021X_EAPOL=y
323 endif
324
325 ifdef CONFIG_EAP_TTLS
326 # EAP-TTLS
327 ifeq ($(CONFIG_EAP_TTLS), dyn)
328 L_CFLAGS += -DEAP_TTLS_DYNAMIC
329 EAPDYN += src/eap_peer/eap_ttls.so
330 else
331 L_CFLAGS += -DEAP_TTLS
332 OBJS += src/eap_peer/eap_ttls.c
333 OBJS_h += src/eap_server/eap_ttls.c
334 endif
335 MS_FUNCS=y
336 TLS_FUNCS=y
337 CHAP=y
338 CONFIG_IEEE8021X_EAPOL=y
339 endif
340
341 ifdef CONFIG_EAP_MD5
342 # EAP-MD5
343 ifeq ($(CONFIG_EAP_MD5), dyn)
344 L_CFLAGS += -DEAP_MD5_DYNAMIC
345 EAPDYN += src/eap_peer/eap_md5.so
346 else
347 L_CFLAGS += -DEAP_MD5
348 OBJS += src/eap_peer/eap_md5.c
349 OBJS_h += src/eap_server/eap_md5.c
350 endif
351 CHAP=y
352 CONFIG_IEEE8021X_EAPOL=y
353 endif
354
355 # backwards compatibility for old spelling
356 ifdef CONFIG_MSCHAPV2
357 ifndef CONFIG_EAP_MSCHAPV2
358 CONFIG_EAP_MSCHAPV2=y
359 endif
360 endif
361
362 ifdef CONFIG_EAP_MSCHAPV2
363 # EAP-MSCHAPv2
364 ifeq ($(CONFIG_EAP_MSCHAPV2), dyn)
365 L_CFLAGS += -DEAP_MSCHAPv2_DYNAMIC
366 EAPDYN += src/eap_peer/eap_mschapv2.so
367 EAPDYN += src/eap_peer/mschapv2.so
368 else
369 L_CFLAGS += -DEAP_MSCHAPv2
370 OBJS += src/eap_peer/eap_mschapv2.c
371 OBJS += src/eap_peer/mschapv2.c
372 OBJS_h += src/eap_server/eap_mschapv2.c
373 endif
374 MS_FUNCS=y
375 CONFIG_IEEE8021X_EAPOL=y
376 endif
377
378 ifdef CONFIG_EAP_GTC
379 # EAP-GTC
380 ifeq ($(CONFIG_EAP_GTC), dyn)
381 L_CFLAGS += -DEAP_GTC_DYNAMIC
382 EAPDYN += src/eap_peer/eap_gtc.so
383 else
384 L_CFLAGS += -DEAP_GTC
385 OBJS += src/eap_peer/eap_gtc.c
386 OBJS_h += src/eap_server/eap_gtc.c
387 endif
388 CONFIG_IEEE8021X_EAPOL=y
389 endif
390
391 ifdef CONFIG_EAP_OTP
392 # EAP-OTP
393 ifeq ($(CONFIG_EAP_OTP), dyn)
394 L_CFLAGS += -DEAP_OTP_DYNAMIC
395 EAPDYN += src/eap_peer/eap_otp.so
396 else
397 L_CFLAGS += -DEAP_OTP
398 OBJS += src/eap_peer/eap_otp.c
399 endif
400 CONFIG_IEEE8021X_EAPOL=y
401 endif
402
403 ifdef CONFIG_EAP_SIM
404 # EAP-SIM
405 ifeq ($(CONFIG_EAP_SIM), dyn)
406 L_CFLAGS += -DEAP_SIM_DYNAMIC
407 EAPDYN += src/eap_peer/eap_sim.so
408 else
409 L_CFLAGS += -DEAP_SIM
410 OBJS += src/eap_peer/eap_sim.c
411 OBJS_h += src/eap_server/eap_sim.c
412 endif
413 CONFIG_IEEE8021X_EAPOL=y
414 CONFIG_EAP_SIM_COMMON=y
415 endif
416
417 ifdef CONFIG_EAP_LEAP
418 # EAP-LEAP
419 ifeq ($(CONFIG_EAP_LEAP), dyn)
420 L_CFLAGS += -DEAP_LEAP_DYNAMIC
421 EAPDYN += src/eap_peer/eap_leap.so
422 else
423 L_CFLAGS += -DEAP_LEAP
424 OBJS += src/eap_peer/eap_leap.c
425 endif
426 MS_FUNCS=y
427 CONFIG_IEEE8021X_EAPOL=y
428 endif
429
430 ifdef CONFIG_EAP_PSK
431 # EAP-PSK
432 ifeq ($(CONFIG_EAP_PSK), dyn)
433 L_CFLAGS += -DEAP_PSK_DYNAMIC
434 EAPDYN += src/eap_peer/eap_psk.so
435 else
436 L_CFLAGS += -DEAP_PSK
437 OBJS += src/eap_peer/eap_psk.c src/eap_common/eap_psk_common.c
438 OBJS_h += src/eap_server/eap_psk.c
439 endif
440 CONFIG_IEEE8021X_EAPOL=y
441 NEED_AES=y
442 endif
443
444 ifdef CONFIG_EAP_AKA
445 # EAP-AKA
446 ifeq ($(CONFIG_EAP_AKA), dyn)
447 L_CFLAGS += -DEAP_AKA_DYNAMIC
448 EAPDYN += src/eap_peer/eap_aka.so
449 else
450 L_CFLAGS += -DEAP_AKA
451 OBJS += src/eap_peer/eap_aka.c
452 OBJS_h += src/eap_server/eap_aka.c
453 endif
454 CONFIG_IEEE8021X_EAPOL=y
455 CONFIG_EAP_SIM_COMMON=y
456 endif
457
458 ifdef CONFIG_EAP_AKA_PRIME
459 # EAP-AKA'
460 ifeq ($(CONFIG_EAP_AKA_PRIME), dyn)
461 L_CFLAGS += -DEAP_AKA_PRIME_DYNAMIC
462 else
463 L_CFLAGS += -DEAP_AKA_PRIME
464 endif
465 NEED_SHA256=y
466 endif
467
468 ifdef CONFIG_EAP_SIM_COMMON
469 OBJS += src/eap_common/eap_sim_common.c
470 OBJS_h += src/eap_server/eap_sim_db.c
471 NEED_AES=y
472 NEED_FIPS186_2_PRF=y
473 endif
474
475 ifdef CONFIG_EAP_FAST
476 # EAP-FAST
477 ifeq ($(CONFIG_EAP_FAST), dyn)
478 L_CFLAGS += -DEAP_FAST_DYNAMIC
479 EAPDYN += src/eap_peer/eap_fast.so
480 EAPDYN += src/eap_common/eap_fast_common.c
481 else
482 L_CFLAGS += -DEAP_FAST
483 OBJS += src/eap_peer/eap_fast.c src/eap_peer/eap_fast_pac.c
484 OBJS += src/eap_common/eap_fast_common.c
485 OBJS_h += src/eap_server/eap_fast.c
486 endif
487 TLS_FUNCS=y
488 CONFIG_IEEE8021X_EAPOL=y
489 NEED_T_PRF=y
490 endif
491
492 ifdef CONFIG_EAP_PAX
493 # EAP-PAX
494 ifeq ($(CONFIG_EAP_PAX), dyn)
495 L_CFLAGS += -DEAP_PAX_DYNAMIC
496 EAPDYN += src/eap_peer/eap_pax.so
497 else
498 L_CFLAGS += -DEAP_PAX
499 OBJS += src/eap_peer/eap_pax.c src/eap_common/eap_pax_common.c
500 OBJS_h += src/eap_server/eap_pax.c
501 endif
502 CONFIG_IEEE8021X_EAPOL=y
503 endif
504
505 ifdef CONFIG_EAP_SAKE
506 # EAP-SAKE
507 ifeq ($(CONFIG_EAP_SAKE), dyn)
508 L_CFLAGS += -DEAP_SAKE_DYNAMIC
509 EAPDYN += src/eap_peer/eap_sake.so
510 else
511 L_CFLAGS += -DEAP_SAKE
512 OBJS += src/eap_peer/eap_sake.c src/eap_common/eap_sake_common.c
513 OBJS_h += src/eap_server/eap_sake.c
514 endif
515 CONFIG_IEEE8021X_EAPOL=y
516 endif
517
518 ifdef CONFIG_EAP_GPSK
519 # EAP-GPSK
520 ifeq ($(CONFIG_EAP_GPSK), dyn)
521 L_CFLAGS += -DEAP_GPSK_DYNAMIC
522 EAPDYN += src/eap_peer/eap_gpsk.so
523 else
524 L_CFLAGS += -DEAP_GPSK
525 OBJS += src/eap_peer/eap_gpsk.c src/eap_common/eap_gpsk_common.c
526 OBJS_h += src/eap_server/eap_gpsk.c
527 endif
528 CONFIG_IEEE8021X_EAPOL=y
529 ifdef CONFIG_EAP_GPSK_SHA256
530 CFLAGS += -DEAP_GPSK_SHA256
531 endif
532 NEED_SHA256=y
533 endif
534
535 ifdef CONFIG_WPS
536 # EAP-WSC
537 L_CFLAGS += -DCONFIG_WPS -DEAP_WSC
538 OBJS += wps_supplicant.c
539 OBJS += src/utils/uuid.c
540 OBJS += src/eap_peer/eap_wsc.c src/eap_common/eap_wsc_common.c
541 OBJS += src/wps/wps.c
542 OBJS += src/wps/wps_common.c
543 OBJS += src/wps/wps_attr_parse.c
544 OBJS += src/wps/wps_attr_build.c
545 OBJS += src/wps/wps_attr_process.c
546 OBJS += src/wps/wps_dev_attr.c
547 OBJS += src/wps/wps_enrollee.c
548 OBJS += src/wps/wps_registrar.c
549 OBJS_h += src/eap_server/eap_wsc.c
550 CONFIG_IEEE8021X_EAPOL=y
551 NEED_DH_GROUPS=y
552 NEED_SHA256=y
553 NEED_BASE64=y
554 NEED_CRYPTO=y
555 NEED_80211_COMMON=y
556
557 ifdef CONFIG_WPS_UPNP
558 L_CFLAGS += -DCONFIG_WPS_UPNP
559 OBJS += src/wps/wps_upnp.c
560 OBJS += src/wps/wps_upnp_ssdp.c
561 OBJS += src/wps/wps_upnp_web.c
562 OBJS += src/wps/wps_upnp_event.c
563 OBJS += src/wps/httpread.c
564 endif
565
566 endif
567
568 ifdef CONFIG_EAP_IKEV2
569 # EAP-IKEv2
570 ifeq ($(CONFIG_EAP_IKEV2), dyn)
571 L_CFLAGS += -DEAP_IKEV2_DYNAMIC
572 EAPDYN += src/eap_peer/eap_ikev2.so src/eap_peer/ikev2.c
573 EAPDYN += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c
574 else
575 L_CFLAGS += -DEAP_IKEV2
576 OBJS += src/eap_peer/eap_ikev2.c src/eap_peer/ikev2.c
577 OBJS += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c
578 OBJS_h += src/eap_server/eap_ikev2.c
579 OBJS_h += src/eap_server/ikev2.c
580 endif
581 CONFIG_IEEE8021X_EAPOL=y
582 NEED_DH_GROUPS=y
583 NEED_DH_GROUPS_ALL=y
584 endif
585
586 ifdef CONFIG_EAP_VENDOR_TEST
587 ifeq ($(CONFIG_EAP_VENDOR_TEST), dyn)
588 L_CFLAGS += -DEAP_VENDOR_TEST_DYNAMIC
589 EAPDYN += src/eap_peer/eap_vendor_test.so
590 else
591 L_CFLAGS += -DEAP_VENDOR_TEST
592 OBJS += src/eap_peer/eap_vendor_test.c
593 OBJS_h += src/eap_server/eap_vendor_test.c
594 endif
595 CONFIG_IEEE8021X_EAPOL=y
596 endif
597
598 ifdef CONFIG_EAP_TNC
599 # EAP-TNC
600 L_CFLAGS += -DEAP_TNC
601 OBJS += src/eap_peer/eap_tnc.c
602 OBJS += src/eap_peer/tncc.c
603 NEED_BASE64=y
604 ifndef CONFIG_NATIVE_WINDOWS
605 ifndef CONFIG_DRIVER_BSD
606 LIBS += -ldl
607 endif
608 endif
609 endif
610
611 ifdef CONFIG_IEEE8021X_EAPOL
612 # IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
613 L_CFLAGS += -DIEEE8021X_EAPOL
614 OBJS += src/eapol_supp/eapol_supp_sm.c src/eap_peer/eap.c src/eap_common/eap_common.c src/eap_peer/eap_methods.c
615 ifdef CONFIG_DYNAMIC_EAP_METHODS
616 L_CFLAGS += -DCONFIG_DYNAMIC_EAP_METHODS
617 LIBS += -ldl -rdynamic
618 endif
619 endif
620
621 ifdef CONFIG_EAP_SERVER
622 L_CFLAGS += -DEAP_SERVER
623 OBJS_h += src/eap_server/eap.c
624 OBJS_h += src/eap_server/eap_identity.c
625 OBJS_h += src/eap_server/eap_methods.c
626 endif
627
628 ifdef CONFIG_RADIUS_CLIENT
629 OBJS_h += src/utils/ip_addr.c
630 OBJS_h += src/radius/radius.c
631 OBJS_h += src/radius/radius_client.c
632 endif
633
634 ifdef CONFIG_AUTHENTICATOR
635 OBJS_h += hostapd/eapol_sm.c
636 OBJS_h += hostapd/ieee802_1x.c
637 endif
638
639 ifdef CONFIG_WPA_AUTHENTICATOR
640 OBJS_h += hostapd/wpa.c
641 OBJS_h += hostapd/wpa_auth_ie.c
642 ifdef CONFIG_IEEE80211R
643 OBJS_h += hostapd/wpa_ft.c
644 endif
645 ifdef CONFIG_PEERKEY
646 OBJS_h += hostapd/peerkey.c
647 endif
648 endif
649
650 ifdef CONFIG_PCSC
651 # PC/SC interface for smartcards (USIM, GSM SIM)
652 L_CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
653 OBJS += src/utils/pcsc_funcs.c
654 # -lpthread may not be needed depending on how pcsc-lite was configured
655 ifdef CONFIG_NATIVE_WINDOWS
656 #Once MinGW gets support for WinScard, -lwinscard could be used instead of the
657 #dynamic symbol loading that is now used in pcsc_funcs.c
658 #LIBS += -lwinscard
659 else
660 LIBS += -lpcsclite -lpthread
661 endif
662 endif
663
664 ifdef CONFIG_SIM_SIMULATOR
665 L_CFLAGS += -DCONFIG_SIM_SIMULATOR
666 NEED_MILENAGE=y
667 endif
668
669 ifdef CONFIG_USIM_SIMULATOR
670 L_CFLAGS += -DCONFIG_USIM_SIMULATOR
671 NEED_MILENAGE=y
672 endif
673
674 ifdef NEED_MILENAGE
675 OBJS += src/hlr_auc_gw/milenage.c
676 endif
677
678 ifndef CONFIG_TLS
679 CONFIG_TLS=openssl
680 endif
681
682 ifeq ($(CONFIG_TLS), internal)
683 ifndef CONFIG_CRYPTO
684 CONFIG_CRYPTO=internal
685 endif
686 endif
687 ifeq ($(CONFIG_CRYPTO), libtomcrypt)
688 L_CFLAGS += -DCONFIG_INTERNAL_X509
689 endif
690 ifeq ($(CONFIG_CRYPTO), internal)
691 L_CFLAGS += -DCONFIG_INTERNAL_X509
692 endif
693
694
695 ifdef TLS_FUNCS
696 # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, and EAP_FAST)
697 L_CFLAGS += -DEAP_TLS_FUNCS
698 OBJS += src/eap_peer/eap_tls_common.c
699 OBJS_h += src/eap_server/eap_tls_common.c
700 NEED_TLS_PRF=y
701 ifeq ($(CONFIG_TLS), openssl)
702 L_CFLAGS += -DEAP_TLS_OPENSSL
703 OBJS += src/crypto/tls_openssl.c
704 LIBS += -lssl -lcrypto
705 LIBS_p += -lcrypto
706 endif
707 ifeq ($(CONFIG_TLS), gnutls)
708 OBJS += src/crypto/tls_gnutls.c
709 LIBS += -lgnutls -lgcrypt -lgpg-error
710 LIBS_p += -lgcrypt
711 ifdef CONFIG_GNUTLS_EXTRA
712 L_CFLAGS += -DCONFIG_GNUTLS_EXTRA
713 LIBS += -lgnutls-extra
714 endif
715 endif
716 ifeq ($(CONFIG_TLS), schannel)
717 OBJS += src/crypto/tls_schannel.c
718 endif
719 ifeq ($(CONFIG_TLS), internal)
720 OBJS += src/crypto/tls_internal.c
721 OBJS += src/tls/tlsv1_common.c src/tls/tlsv1_record.c
722 OBJS += src/tls/tlsv1_cred.c src/tls/tlsv1_client.c
723 OBJS += src/tls/tlsv1_client_write.c src/tls/tlsv1_client_read.c
724 OBJS += src/tls/asn1.c src/tls/rsa.c src/tls/x509v3.c
725 OBJS_p += src/tls/asn1.c src/tls/rsa.c
726 OBJS_p += src/crypto/rc4.c src/crypto/aes_wrap.c src/crypto/aes.c
727 NEED_BASE64=y
728 NEED_TLS_PRF=y
729 L_CFLAGS += -DCONFIG_TLS_INTERNAL
730 L_CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
731 ifeq ($(CONFIG_CRYPTO), internal)
732 endif
733 ifeq ($(CONFIG_CRYPTO), libtomcrypt)
734 LIBS += -ltomcrypt -ltfm
735 LIBS_p += -ltomcrypt -ltfm
736 endif
737 endif
738 ifeq ($(CONFIG_TLS), none)
739 OBJS += src/crypto/tls_none.c
740 L_CFLAGS += -DEAP_TLS_NONE
741 CONFIG_INTERNAL_AES=y
742 CONFIG_INTERNAL_SHA1=y
743 CONFIG_INTERNAL_MD5=y
744 CONFIG_INTERNAL_SHA256=y
745 endif
746 ifdef CONFIG_SMARTCARD
747 ifndef CONFIG_NATIVE_WINDOWS
748 ifneq ($(CONFIG_L2_PACKET), freebsd)
749 LIBS += -ldl
750 endif
751 endif
752 endif
753 NEED_CRYPTO=y
754 else
755 OBJS += src/crypto/tls_none.c
756 endif
757
758 ifdef CONFIG_PKCS12
759 L_CFLAGS += -DPKCS12_FUNCS
760 endif
761
762 ifdef CONFIG_SMARTCARD
763 L_CFLAGS += -DCONFIG_SMARTCARD
764 endif
765
766 ifdef MS_FUNCS
767 OBJS += src/crypto/ms_funcs.c
768 NEED_CRYPTO=y
769 endif
770
771 ifdef CHAP
772 OBJS += src/eap_common/chap.c
773 endif
774
775 ifdef NEED_CRYPTO
776 ifndef TLS_FUNCS
777 ifeq ($(CONFIG_TLS), openssl)
778 LIBS += -lcrypto
779 LIBS_p += -lcrypto
780 endif
781 ifeq ($(CONFIG_TLS), gnutls)
782 LIBS += -lgcrypt
783 LIBS_p += -lgcrypt
784 endif
785 ifeq ($(CONFIG_TLS), schannel)
786 endif
787 ifeq ($(CONFIG_TLS), internal)
788 ifeq ($(CONFIG_CRYPTO), libtomcrypt)
789 LIBS += -ltomcrypt -ltfm
790 LIBS_p += -ltomcrypt -ltfm
791 endif
792 endif
793 endif
794 ifeq ($(CONFIG_TLS), openssl)
795 OBJS += src/crypto/crypto_openssl.c
796 OBJS_p += src/crypto/crypto_openssl.c
797 CONFIG_INTERNAL_SHA256=y
798 endif
799 ifeq ($(CONFIG_TLS), gnutls)
800 OBJS += src/crypto/crypto_gnutls.c
801 OBJS_p += src/crypto/crypto_gnutls.c
802 CONFIG_INTERNAL_SHA256=y
803 endif
804 ifeq ($(CONFIG_TLS), schannel)
805 OBJS += src/crypto/crypto_cryptoapi.c
806 OBJS_p += src/crypto/crypto_cryptoapi.c
807 CONFIG_INTERNAL_SHA256=y
808 endif
809 ifeq ($(CONFIG_TLS), internal)
810 ifeq ($(CONFIG_CRYPTO), libtomcrypt)
811 OBJS += src/crypto/crypto_libtomcrypt.c
812 OBJS_p += src/crypto/crypto_libtomcrypt.c
813 CONFIG_INTERNAL_SHA256=y
814 endif
815 ifeq ($(CONFIG_CRYPTO), internal)
816 OBJS += src/crypto/crypto_internal.c src/tls/bignum.c
817 OBJS_p += src/crypto/crypto_internal.c src/tls/bignum.c
818 L_CFLAGS += -DCONFIG_CRYPTO_INTERNAL
819 ifdef CONFIG_INTERNAL_LIBTOMMATH
820 L_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
821 ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST
822 L_CFLAGS += -DLTM_FAST
823 endif
824 else
825 LIBS += -ltommath
826 LIBS_p += -ltommath
827 endif
828 CONFIG_INTERNAL_AES=y
829 CONFIG_INTERNAL_DES=y
830 CONFIG_INTERNAL_SHA1=y
831 CONFIG_INTERNAL_MD4=y
832 CONFIG_INTERNAL_MD5=y
833 CONFIG_INTERNAL_SHA256=y
834 endif
835 ifeq ($(CONFIG_CRYPTO), cryptoapi)
836 OBJS += src/crypto/crypto_cryptoapi.c
837 OBJS_p += src/crypto/crypto_cryptoapi.c
838 L_CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI
839 CONFIG_INTERNAL_SHA256=y
840 endif
841 endif
842 ifeq ($(CONFIG_TLS), none)
843 OBJS += src/crypto/crypto_none.c
844 OBJS_p += src/crypto/crypto_none.c
845 CONFIG_INTERNAL_SHA256=y
846 endif
847 else
848 CONFIG_INTERNAL_AES=y
849 CONFIG_INTERNAL_SHA1=y
850 CONFIG_INTERNAL_MD5=y
851 endif
852
853 ifdef CONFIG_INTERNAL_AES
854 L_CFLAGS += -DINTERNAL_AES
855 endif
856 ifdef CONFIG_INTERNAL_SHA1
857 L_CFLAGS += -DINTERNAL_SHA1
858 endif
859 ifdef CONFIG_INTERNAL_SHA256
860 L_CFLAGS += -DINTERNAL_SHA256
861 endif
862 ifdef CONFIG_INTERNAL_MD5
863 L_CFLAGS += -DINTERNAL_MD5
864 endif
865 ifdef CONFIG_INTERNAL_MD4
866 L_CFLAGS += -DINTERNAL_MD4
867 endif
868 ifdef CONFIG_INTERNAL_DES
869 L_CFLAGS += -DINTERNAL_DES
870 endif
871
872 ifdef CONFIG_IEEE80211R
873 NEED_SHA256=y
874 endif
875
876 ifdef CONFIG_IEEE80211W
877 L_CFLAGS += -DCONFIG_IEEE80211W
878 NEED_SHA256=y
879 endif
880
881 ifdef NEED_SHA256
882 OBJS += src/crypto/sha256.c
883 L_CFLAGS += -DNEED_SHA256
884 endif
885
886 ifdef CONFIG_WIRELESS_EXTENSION
887 OBJS_d += src/drivers/driver_wext.c
888 endif
889
890 ifdef CONFIG_CTRL_IFACE
891 ifeq ($(CONFIG_CTRL_IFACE), y)
892 ifdef CONFIG_NATIVE_WINDOWS
893 CONFIG_CTRL_IFACE=named_pipe
894 else
895 CONFIG_CTRL_IFACE=unix
896 endif
897 endif
898 L_CFLAGS += -DCONFIG_CTRL_IFACE
899 ifeq ($(CONFIG_CTRL_IFACE), unix)
900 L_CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
901 endif
902 ifeq ($(CONFIG_CTRL_IFACE), udp)
903 L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP
904 endif
905 ifeq ($(CONFIG_CTRL_IFACE), named_pipe)
906 L_CFLAGS += -DCONFIG_CTRL_IFACE_NAMED_PIPE
907 endif
908 OBJS += ctrl_iface.c ctrl_iface_$(CONFIG_CTRL_IFACE).c
909 endif
910
911 ifdef CONFIG_CTRL_IFACE_DBUS
912 L_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS -DDBUS_API_SUBJECT_TO_CHANGE
913 OBJS += ctrl_iface_dbus.c ctrl_iface_dbus_handlers.c dbus_dict_helpers.c
914 ifndef DBUS_LIBS
915 DBUS_LIBS := $(shell pkg-config --libs dbus-1)
916 endif
917 LIBS += $(DBUS_LIBS)
918 ifndef DBUS_INCLUDE
919 DBUS_INCLUDE := $(shell pkg-config --cflags dbus-1)
920 endif
921 dbus_version=$(subst ., ,$(shell pkg-config --modversion dbus-1))
922 DBUS_VERSION_MAJOR=$(word 1,$(dbus_version))
923 DBUS_VERSION_MINOR=$(word 2,$(dbus_version))
924 ifeq ($(DBUS_VERSION_MAJOR),)
925 DBUS_VERSION_MAJOR=0
926 endif
927 ifeq ($(DBUS_VERSION_MINOR),)
928 DBUS_VERSION_MINOR=0
929 endif
930 DBUS_INCLUDE += -DDBUS_VERSION_MAJOR=$(DBUS_VERSION_MAJOR)
931 DBUS_INCLUDE += -DDBUS_VERSION_MINOR=$(DBUS_VERSION_MINOR)
932 L_CFLAGS += $(DBUS_INCLUDE)
933 endif
934
935 ifdef CONFIG_READLINE
936 L_CFLAGS += -DCONFIG_READLINE
937 LIBS_c += -lncurses -lreadline
938 endif
939
940 ifdef CONFIG_NATIVE_WINDOWS
941 L_CFLAGS += -DCONFIG_NATIVE_WINDOWS
942 LIBS += -lws2_32 -lgdi32 -lcrypt32
943 LIBS_c += -lws2_32
944 LIBS_p += -lws2_32 -lgdi32
945 ifeq ($(CONFIG_CRYPTO), cryptoapi)
946 LIBS_p += -lcrypt32
947 endif
948 endif
949
950 ifdef CONFIG_NO_STDOUT_DEBUG
951 L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
952 ifndef CONFIG_CTRL_IFACE
953 L_CFLAGS += -DCONFIG_NO_WPA_MSG
954 endif
955 endif
956
957 ifdef CONFIG_IPV6
958 # for eapol_test only
959 L_CFLAGS += -DCONFIG_IPV6
960 endif
961
962 ifdef CONFIG_PEERKEY
963 L_CFLAGS += -DCONFIG_PEERKEY
964 endif
965
966 ifdef CONFIG_IEEE80211R
967 L_CFLAGS += -DCONFIG_IEEE80211R
968 OBJS += src/rsn_supp/wpa_ft.c
969 endif
970
971 ifndef CONFIG_NO_WPA
972 OBJS += src/rsn_supp/wpa.c
973 OBJS += src/rsn_supp/preauth.c
974 OBJS += src/rsn_supp/pmksa_cache.c
975 OBJS += src/rsn_supp/peerkey.c
976 OBJS += src/rsn_supp/wpa_ie.c
977 OBJS += src/common/wpa_common.c
978 NEED_AES=y
979 else
980 L_CFLAGS += -DCONFIG_NO_WPA -DCONFIG_NO_WPA2
981 endif
982
983 ifdef CONFIG_NO_WPA2
984 L_CFLAGS += -DCONFIG_NO_WPA2
985 endif
986
987 ifdef CONFIG_NO_WPA_PASSPHRASE
988 L_CFLAGS += -DCONFIG_NO_PBKDF2
989 endif
990
991 ifdef CONFIG_NO_AES_EXTRAS
992 L_CFLAGS += -DCONFIG_NO_AES_WRAP
993 L_CFLAGS += -DCONFIG_NO_AES_CTR -DCONFIG_NO_AES_OMAC1
994 L_CFLAGS += -DCONFIG_NO_AES_EAX -DCONFIG_NO_AES_CBC
995 L_CFLAGS += -DCONFIG_NO_AES_ENCRYPT
996 L_CFLAGS += -DCONFIG_NO_AES_ENCRYPT_BLOCK
997 endif
998
999 ifdef NEED_AES
1000 OBJS += src/crypto/aes_wrap.c src/crypto/aes.c
1001 endif
1002
1003 ifdef NEED_DH_GROUPS
1004 OBJS += src/crypto/dh_groups.c
1005 ifdef NEED_DH_GROUPS_ALL
1006 L_CFLAGS += -DALL_DH_GROUPS
1007 endif
1008 endif
1009
1010 ifndef NEED_FIPS186_2_PRF
1011 L_CFLAGS += -DCONFIG_NO_FIPS186_2_PRF
1012 endif
1013
1014 ifndef NEED_T_PRF
1015 L_CFLAGS += -DCONFIG_NO_T_PRF
1016 endif
1017
1018 ifndef NEED_TLS_PRF
1019 L_CFLAGS += -DCONFIG_NO_TLS_PRF
1020 endif
1021
1022 ifdef NEED_BASE64
1023 OBJS += src/utils/base64.c
1024 endif
1025
1026 ifdef CONFIG_CLIENT_MLME
1027 OBJS += mlme.c src/common/ieee802_11_common.c
1028 L_CFLAGS += -DCONFIG_CLIENT_MLME
1029 endif
1030
1031 ifndef CONFIG_MAIN
1032 CONFIG_MAIN=main
1033 endif
1034
1035 ifdef CONFIG_DEBUG_FILE
1036 L_CFLAGS += -DCONFIG_DEBUG_FILE
1037 endif
1038
1039 ifdef CONFIG_ANDROID_LOG
1040 L_CFLAGS += -DCONFIG_ANDROID_LOG
1041 endif
1042
1043 ifdef CONFIG_DELAYED_MIC_ERROR_REPORT
1044 L_CFLAGS += -DCONFIG_DELAYED_MIC_ERROR_REPORT
1045 endif
1046
1047 OBJS += src/drivers/scan_helpers.c
1048
1049 OBJS_wpa_rm := ctrl_iface.c mlme.c ctrl_iface_unix.c
1050 OBJS_wpa := $(filter-out $(OBJS_wpa_rm),$(OBJS)) $(OBJS_h) tests/test_wpa.c
1051 ifdef CONFIG_AUTHENTICATOR
1052 OBJS_wpa += tests/link_test.c
1053 endif
1054 OBJS_wpa += $(OBJS_l2)
1055 OBJS += wpa_supplicant.c events.c blacklist.c wpas_glue.c scan.c
1056 OBJS_t := $(OBJS) $(OBJS_l2) eapol_test.c src/radius/radius.c src/radius/radius_client.c
1057 OBJS_t += src/utils/ip_addr.c
1058 OBJS_t2 := $(OBJS) $(OBJS_l2) preauth_test.c
1059 OBJS += $(CONFIG_MAIN).c
1060
1061 ifdef CONFIG_PRIVSEP
1062 OBJS_priv += $(OBJS_d) src/drivers/drivers.c src/drivers/scan_helpers.c
1063 OBJS_priv += $(OBJS_l2)
1064 OBJS_priv += src/utils/os_$(CONFIG_OS).c
1065 OBJS_priv += src/utils/$(CONFIG_ELOOP).c
1066 OBJS_priv += src/utils/common.c
1067 OBJS_priv += src/utils/wpa_debug.c
1068 OBJS_priv += src/utils/wpabuf.c
1069 OBJS_priv += wpa_priv.c
1070 ifdef CONFIG_DRIVER_TEST
1071 OBJS_priv += src/crypto/sha1.c
1072 OBJS_priv += src/crypto/md5.c
1073 ifeq ($(CONFIG_TLS), openssl)
1074 OBJS_priv += src/crypto/crypto_openssl.c
1075 endif
1076 ifeq ($(CONFIG_TLS), gnutls)
1077 OBJS_priv += src/crypto/crypto_gnutls.c
1078 endif
1079 ifeq ($(CONFIG_TLS), internal)
1080 ifeq ($(CONFIG_CRYPTO), libtomcrypt)
1081 OBJS_priv += src/crypto/crypto_libtomcrypt.c
1082 else
1083 OBJS_priv += src/crypto/crypto_internal.c
1084 endif
1085 endif
1086 endif # CONFIG_DRIVER_TEST
1087 OBJS += src/l2_packet/l2_packet_privsep.c
1088 OBJS += src/drivers/driver_privsep.c
1089 EXTRA_progs += wpa_priv
1090 else
1091 OBJS += $(OBJS_d) src/drivers/drivers.c
1092 OBJS += $(OBJS_l2)
1093 endif
1094
1095 ifdef CONFIG_NDIS_EVENTS_INTEGRATED
1096 L_CFLAGS += -DCONFIG_NDIS_EVENTS_INTEGRATED
1097 OBJS += src/drivers/ndis_events.c
1098 EXTRALIBS += -loleaut32 -lole32 -luuid
1099 ifdef PLATFORMSDKLIB
1100 EXTRALIBS += $(PLATFORMSDKLIB)/WbemUuid.Lib
1101 else
1102 EXTRALIBS += WbemUuid.Lib
1103 endif
1104 endif
1105
1106 ifndef LDO
1107 LDO=$(CC)
1108 endif
1109
1110 ifeq ($(WPA_BUILD_SUPPLICANT),true)
1111
1112 ########################
1113
1114 include $(CLEAR_VARS)
1115 LOCAL_MODULE := wpa_cli
1116 LOCAL_MODULE_TAGS := debug
1117 LOCAL_SHARED_LIBRARIES := libc libcutils
1118 LOCAL_CFLAGS := $(L_CFLAGS)
1119 LOCAL_SRC_FILES := $(OBJS_c)
1120 LOCAL_C_INCLUDES := $(INCLUDES)
1121 include $(BUILD_EXECUTABLE)
1122
1123 ########################
1124 include $(CLEAR_VARS)
1125 LOCAL_MODULE := wpa_supplicant
1126 ifdef CONFIG_DRIVER_CUSTOM
1127 LOCAL_STATIC_LIBRARIES := libCustomWifi
1128 endif
1129 ifneq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),)
1130 LOCAL_STATIC_LIBRARIES += $(BOARD_WPA_SUPPLICANT_PRIVATE_LIB)
1131 endif
1132 LOCAL_SHARED_LIBRARIES := libc libcutils libcrypto libssl
1133 LOCAL_CFLAGS := $(L_CFLAGS)
1134 LOCAL_SRC_FILES := $(OBJS)
1135 LOCAL_C_INCLUDES := $(INCLUDES)
1136 include $(BUILD_EXECUTABLE)
1137
1138 ########################
1139 #
1140 #include $(CLEAR_VARS)
1141 #LOCAL_MODULE := eapol_test
1142 #ifdef CONFIG_DRIVER_CUSTOM
1143 #LOCAL_STATIC_LIBRARIES := libCustomWifi
1144 #endif
1145 #LOCAL_SHARED_LIBRARIES := libc libcrypto libssl
1146 #LOCAL_CFLAGS := $(L_CFLAGS)
1147 #LOCAL_SRC_FILES := $(OBJS_t)
1148 #LOCAL_C_INCLUDES := $(INCLUDES)
1149 #include $(BUILD_EXECUTABLE)
1150 #
1151 ########################
1152 #
1153 #local_target_dir := $(TARGET_OUT)/etc/wifi
1154 #
1155 #include $(CLEAR_VARS)
1156 #LOCAL_MODULE := wpa_supplicant.conf
1157 #LOCAL_MODULE_TAGS := user
1158 #LOCAL_MODULE_CLASS := ETC
1159 #LOCAL_MODULE_PATH := $(local_target_dir)
1160 #LOCAL_SRC_FILES := $(LOCAL_MODULE)
1161 #include $(BUILD_PREBUILT)
1162 #
1163 ########################
1164
1165 endif # ifeq ($(WPA_BUILD_SUPPLICANT),true)
1166
1167 include $(CLEAR_VARS)
1168 LOCAL_MODULE = libwpa_client
1169 LOCAL_CFLAGS = $(L_CFLAGS)
1170 LOCAL_SRC_FILES = src/common/wpa_ctrl.c src/utils/os_$(CONFIG_OS).c
1171 LOCAL_C_INCLUDES = $(INCLUDES)
1172 LOCAL_SHARED_LIBRARIES := libcutils
1173 LOCAL_COPY_HEADERS_TO := libwpa_client
1174 LOCAL_COPY_HEADERS := src/common/wpa_ctrl.h
1175 include $(BUILD_SHARED_LIBRARY)