• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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#
16ifndef WPA_SUPPLICANT_VERSION
17WPA_SUPPLICANT_VERSION := VER_0_5_X
18endif
19
20ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_5_X)
21
22LOCAL_PATH := $(call my-dir)
23
24WPA_BUILD_SUPPLICANT := false
25ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),)
26  WPA_BUILD_SUPPLICANT := true
27  CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) = y
28endif
29
30include $(LOCAL_PATH)/.config
31
32# To force sizeof(enum) = 4
33ifeq ($(TARGET_ARCH),arm)
34L_CFLAGS += -mabi=aapcs-linux
35endif
36
37# To ignore possible wrong network configurations
38L_CFLAGS += -DWPA_IGNORE_CONFIG_ERRORS
39
40# To allow non-ASCII characters in SSID
41L_CFLAGS += -DWPA_UNICODE_SSID
42
43# OpenSSL is configured without engines on Android
44L_CFLAGS += -DOPENSSL_NO_ENGINE
45
46INCLUDES = external/openssl/include frameworks/base/cmds/keystore
47
48OBJS = config.c common.c md5.c md4.c rc4.c sha1.c des.c
49OBJS_p = wpa_passphrase.c sha1.c md5.c md4.c common.c des.c
50OBJS_c = wpa_cli.c wpa_ctrl.c
51
52ifndef CONFIG_OS
53ifdef CONFIG_NATIVE_WINDOWS
54CONFIG_OS=win32
55else
56CONFIG_OS=unix
57endif
58endif
59
60OBJS += os_$(CONFIG_OS).c
61OBJS_p += os_$(CONFIG_OS).c
62OBJS_c += os_$(CONFIG_OS).c
63
64ifndef CONFIG_ELOOP
65CONFIG_ELOOP=eloop
66endif
67OBJS += $(CONFIG_ELOOP).c
68
69
70ifdef CONFIG_EAPOL_TEST
71L_CFLAGS += -Werror -DEAPOL_TEST
72endif
73
74ifndef CONFIG_BACKEND
75CONFIG_BACKEND=file
76endif
77
78ifeq ($(CONFIG_BACKEND), file)
79OBJS += config_file.c base64.c
80L_CFLAGS += -DCONFIG_BACKEND_FILE
81endif
82
83ifeq ($(CONFIG_BACKEND), winreg)
84OBJS += config_winreg.c
85endif
86
87ifeq ($(CONFIG_BACKEND), none)
88OBJS += config_none.c
89endif
90
91ifdef CONFIG_DRIVER_HOSTAP
92L_CFLAGS += -DCONFIG_DRIVER_HOSTAP
93OBJS_d += driver_hostap.c
94CONFIG_WIRELESS_EXTENSION=y
95endif
96
97ifdef CONFIG_DRIVER_WEXT
98L_CFLAGS += -DCONFIG_DRIVER_WEXT
99CONFIG_WIRELESS_EXTENSION=y
100endif
101
102ifdef CONFIG_DRIVER_PRISM54
103L_CFLAGS += -DCONFIG_DRIVER_PRISM54
104OBJS_d += driver_prism54.c
105CONFIG_WIRELESS_EXTENSION=y
106endif
107
108ifdef CONFIG_DRIVER_HERMES
109L_CFLAGS += -DCONFIG_DRIVER_HERMES
110OBJS_d += driver_hermes.c
111CONFIG_WIRELESS_EXTENSION=y
112endif
113
114ifdef CONFIG_DRIVER_MADWIFI
115L_CFLAGS += -DCONFIG_DRIVER_MADWIFI
116OBJS_d += driver_madwifi.c
117CONFIG_WIRELESS_EXTENSION=y
118endif
119
120ifdef CONFIG_DRIVER_ATMEL
121L_CFLAGS += -DCONFIG_DRIVER_ATMEL
122OBJS_d += driver_atmel.c
123CONFIG_WIRELESS_EXTENSION=y
124endif
125
126ifdef CONFIG_DRIVER_NDISWRAPPER
127L_CFLAGS += -DCONFIG_DRIVER_NDISWRAPPER
128OBJS_d += driver_ndiswrapper.c
129CONFIG_WIRELESS_EXTENSION=y
130endif
131
132ifdef CONFIG_DRIVER_BROADCOM
133L_CFLAGS += -DCONFIG_DRIVER_BROADCOM
134OBJS_d += driver_broadcom.c
135endif
136
137ifdef CONFIG_DRIVER_IPW
138L_CFLAGS += -DCONFIG_DRIVER_IPW
139OBJS_d += driver_ipw.c
140CONFIG_WIRELESS_EXTENSION=y
141endif
142
143ifdef CONFIG_DRIVER_BSD
144L_CFLAGS += -DCONFIG_DRIVER_BSD
145OBJS_d += driver_bsd.c
146ifndef CONFIG_L2_PACKET
147CONFIG_L2_PACKET=freebsd
148endif
149endif
150
151ifdef CONFIG_DRIVER_NDIS
152L_CFLAGS += -DCONFIG_DRIVER_NDIS
153OBJS_d += driver_ndis.c driver_ndis_.c
154ifndef CONFIG_L2_PACKET
155CONFIG_L2_PACKET=pcap
156endif
157CONFIG_WINPCAP=y
158ifdef CONFIG_USE_NDISUIO
159L_CFLAGS += -DCONFIG_USE_NDISUIO
160endif
161endif
162
163ifdef CONFIG_DRIVER_WIRED
164L_CFLAGS += -DCONFIG_DRIVER_WIRED
165OBJS_d += driver_wired.c
166endif
167
168ifdef CONFIG_DRIVER_TEST
169L_CFLAGS += -DCONFIG_DRIVER_TEST
170OBJS_d += driver_test.c
171endif
172
173ifdef CONFIG_DRIVER_CUSTOM
174L_CFLAGS += -DCONFIG_DRIVER_CUSTOM
175endif
176
177ifndef CONFIG_L2_PACKET
178CONFIG_L2_PACKET=linux
179endif
180
181OBJS += l2_packet_$(CONFIG_L2_PACKET).c
182
183ifeq ($(CONFIG_L2_PACKET), pcap)
184ifdef CONFIG_WINPCAP
185L_CFLAGS += -DCONFIG_WINPCAP
186LIBS += -lwpcap -lpacket
187LIBS_w += -lwpcap
188else
189LIBS += -ldnet -lpcap
190endif
191endif
192
193ifeq ($(CONFIG_L2_PACKET), winpcap)
194LIBS += -lwpcap -lpacket
195LIBS_w += -lwpcap
196endif
197
198ifeq ($(CONFIG_L2_PACKET), freebsd)
199LIBS += -lpcap
200endif
201
202ifdef CONFIG_EAP_TLS
203# EAP-TLS
204L_CFLAGS += -DEAP_TLS
205OBJS += eap_tls.c
206TLS_FUNCS=y
207CONFIG_IEEE8021X_EAPOL=y
208endif
209
210ifdef CONFIG_EAP_PEAP
211# EAP-PEAP
212L_CFLAGS += -DEAP_PEAP
213OBJS += eap_peap.c
214TLS_FUNCS=y
215CONFIG_IEEE8021X_EAPOL=y
216CONFIG_EAP_TLV=y
217endif
218
219ifdef CONFIG_EAP_TTLS
220# EAP-TTLS
221L_CFLAGS += -DEAP_TTLS
222OBJS += eap_ttls.c
223MS_FUNCS=y
224TLS_FUNCS=y
225CONFIG_IEEE8021X_EAPOL=y
226endif
227
228ifdef CONFIG_EAP_MD5
229# EAP-MD5 (also used by EAP-TTLS)
230L_CFLAGS += -DEAP_MD5
231OBJS += eap_md5.c
232CONFIG_IEEE8021X_EAPOL=y
233endif
234
235# backwards compatibility for old spelling
236ifdef CONFIG_MSCHAPV2
237ifndef CONFIG_EAP_MSCHAPV2
238CONFIG_EAP_MSCHAPV2=y
239endif
240endif
241
242ifdef CONFIG_EAP_MSCHAPV2
243# EAP-MSCHAPv2 (also used by EAP-PEAP)
244L_CFLAGS += -DEAP_MSCHAPv2
245OBJS += eap_mschapv2.c
246MS_FUNCS=y
247CONFIG_IEEE8021X_EAPOL=y
248endif
249
250ifdef CONFIG_EAP_GTC
251# EAP-GTC (also used by EAP-PEAP)
252L_CFLAGS += -DEAP_GTC
253OBJS += eap_gtc.c
254CONFIG_IEEE8021X_EAPOL=y
255endif
256
257ifdef CONFIG_EAP_OTP
258# EAP-OTP
259L_CFLAGS += -DEAP_OTP
260OBJS += eap_otp.c
261CONFIG_IEEE8021X_EAPOL=y
262endif
263
264ifdef CONFIG_EAP_SIM
265# EAP-SIM
266L_CFLAGS += -DEAP_SIM
267OBJS += eap_sim.c
268CONFIG_IEEE8021X_EAPOL=y
269CONFIG_EAP_SIM_COMMON=y
270endif
271
272ifdef CONFIG_EAP_LEAP
273# EAP-LEAP
274L_CFLAGS += -DEAP_LEAP
275OBJS += eap_leap.c
276MS_FUNCS=y
277CONFIG_IEEE8021X_EAPOL=y
278endif
279
280ifdef CONFIG_EAP_PSK
281# EAP-PSK
282L_CFLAGS += -DEAP_PSK
283OBJS += eap_psk.c eap_psk_common.c
284CONFIG_IEEE8021X_EAPOL=y
285NEED_AES=y
286endif
287
288ifdef CONFIG_EAP_AKA
289# EAP-AKA
290L_CFLAGS += -DEAP_AKA
291OBJS += eap_aka.c
292CONFIG_IEEE8021X_EAPOL=y
293CONFIG_EAP_SIM_COMMON=y
294endif
295
296ifdef CONFIG_EAP_SIM_COMMON
297OBJS += eap_sim_common.c
298NEED_AES=y
299endif
300
301ifdef CONFIG_EAP_TLV
302# EAP-TLV
303L_CFLAGS += -DEAP_TLV
304OBJS += eap_tlv.c
305endif
306
307ifdef CONFIG_EAP_FAST
308# EAP-FAST
309L_CFLAGS += -DEAP_FAST
310OBJS += eap_fast.c
311TLS_FUNCS=y
312endif
313
314ifdef CONFIG_EAP_PAX
315# EAP-PAX
316L_CFLAGS += -DEAP_PAX
317OBJS += eap_pax.c eap_pax_common.c
318CONFIG_IEEE8021X_EAPOL=y
319endif
320
321ifdef CONFIG_EAP_SAKE
322# EAP-SAKE
323L_CFLAGS += -DEAP_SAKE
324OBJS += eap_sake.c eap_sake_common.c
325CONFIG_IEEE8021X_EAPOL=y
326endif
327
328ifdef CONFIG_EAP_GPSK
329# EAP-GPSK
330L_CFLAGS += -DEAP_GPSK
331OBJS += eap_gpsk.c eap_gpsk_common.c
332CONFIG_IEEE8021X_EAPOL=y
333ifdef CONFIG_EAP_GPSK_SHA256
334L_CFLAGS += -DEAP_GPSK_SHA256
335NEED_SHA256=y
336endif
337endif
338ifdef CONFIG_EAP_VENDOR_TEST
339L_CFLAGS += -DEAP_VENDOR_TEST
340OBJS += eap_vendor_test.c
341CONFIG_IEEE8021X_EAPOL=y
342endif
343
344ifdef CONFIG_IEEE8021X_EAPOL
345# IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
346L_CFLAGS += -DIEEE8021X_EAPOL
347OBJS += eapol_sm.c eap.c eap_methods.c
348endif
349
350ifdef CONFIG_PCSC
351# PC/SC interface for smartcards (USIM, GSM SIM)
352L_CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
353OBJS += pcsc_funcs.c
354# -lpthread may not be needed depending on how pcsc-lite was configured
355ifdef CONFIG_NATIVE_WINDOWS
356#Once MinGW gets support for WinScard, -lwinscard could be used instead of the
357#dynamic symbol loading that is now used in pcsc_funcs.c
358#LIBS += -lwinscard
359else
360LIBS += -lpcsclite -lpthread
361endif
362endif
363
364ifndef CONFIG_TLS
365CONFIG_TLS=openssl
366# CONFIG_TLS=internal
367endif
368
369ifeq ($(CONFIG_TLS), internal)
370ifndef CONFIG_CRYPTO
371CONFIG_CRYPTO=internal
372endif
373endif
374ifeq ($(CONFIG_CRYPTO), libtomcrypt)
375L_CFLAGS += -DCONFIG_INTERNAL_X509
376endif
377ifeq ($(CONFIG_CRYPTO), internal)
378L_CFLAGS += -DCONFIG_INTERNAL_X509
379endif
380
381
382ifdef TLS_FUNCS
383# Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, and EAP_FAST)
384L_CFLAGS += -DEAP_TLS_FUNCS
385OBJS += eap_tls_common.c
386ifeq ($(CONFIG_TLS), openssl)
387L_CFLAGS += -DEAP_TLS_OPENSSL
388OBJS += tls_openssl.c
389LIBS += -lssl -lcrypto
390LIBS_p += -lcrypto
391endif
392ifeq ($(CONFIG_TLS), gnutls)
393OBJS += tls_gnutls.c
394LIBS += -lgnutls -lgcrypt -lgpg-error
395LIBS_p += -lgcrypt
396ifdef CONFIG_GNUTLS_EXTRA
397L_CFLAGS += -DCONFIG_GNUTLS_EXTRA
398LIBS += -lgnutls-extra
399endif
400endif
401ifeq ($(CONFIG_TLS), schannel)
402OBJS += tls_schannel.c
403endif
404ifeq ($(CONFIG_TLS), internal)
405OBJS += tls_internal.c tlsv1_common.c tlsv1_client.c asn1.c x509v3.c
406OBJS_p += asn1.c rc4.c aes_wrap.c
407ifneq ($(CONFIG_BACKEND), file)
408OBJS += base64.c
409endif
410L_CFLAGS += -DCONFIG_TLS_INTERNAL
411ifeq ($(CONFIG_CRYPTO), internal)
412ifdef CONFIG_INTERNAL_LIBTOMMATH
413L_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
414else
415LIBS += -ltommath
416LIBS_p += -ltommath
417endif
418endif
419ifeq ($(CONFIG_CRYPTO), libtomcrypt)
420LIBS += -ltomcrypt -ltfm
421LIBS_p += -ltomcrypt -ltfm
422endif
423endif
424ifeq ($(CONFIG_TLS), none)
425OBJS += tls_none.c
426L_CFLAGS += -DEAP_TLS_NONE
427CONFIG_INTERNAL_AES=y
428CONFIG_INTERNAL_SHA1=y
429CONFIG_INTERNAL_MD5=y
430CONFIG_INTERNAL_SHA256=y
431endif
432ifdef CONFIG_SMARTCARD
433ifndef CONFIG_NATIVE_WINDOWS
434ifneq ($(CONFIG_L2_PACKET), freebsd)
435LIBS += -ldl
436endif
437endif
438endif
439NEED_CRYPTO=y
440else
441OBJS += tls_none.c
442endif
443
444ifdef CONFIG_PKCS12
445L_CFLAGS += -DPKCS12_FUNCS
446endif
447
448ifdef CONFIG_SMARTCARD
449L_CFLAGS += -DCONFIG_SMARTCARD
450endif
451
452ifdef MS_FUNCS
453OBJS += ms_funcs.c
454NEED_CRYPTO=y
455endif
456
457ifdef NEED_CRYPTO
458ifndef TLS_FUNCS
459ifeq ($(CONFIG_TLS), openssl)
460LIBS += -lcrypto
461LIBS_p += -lcrypto
462endif
463ifeq ($(CONFIG_TLS), gnutls)
464LIBS += -lgcrypt
465LIBS_p += -lgcrypt
466endif
467ifeq ($(CONFIG_TLS), schannel)
468endif
469ifeq ($(CONFIG_TLS), internal)
470ifeq ($(CONFIG_CRYPTO), libtomcrypt)
471LIBS += -ltomcrypt -ltfm
472LIBS_p += -ltomcrypt -ltfm
473endif
474endif
475endif
476ifeq ($(CONFIG_TLS), openssl)
477OBJS += crypto.c
478OBJS_p += crypto.c
479CONFIG_INTERNAL_SHA256=y
480endif
481ifeq ($(CONFIG_TLS), gnutls)
482OBJS += crypto_gnutls.c
483OBJS_p += crypto_gnutls.c
484CONFIG_INTERNAL_SHA256=y
485endif
486ifeq ($(CONFIG_TLS), schannel)
487OBJS += crypto_cryptoapi.c
488OBJS_p += crypto_cryptoapi.c
489CONFIG_INTERNAL_SHA256=y
490endif
491ifeq ($(CONFIG_TLS), internal)
492ifeq ($(CONFIG_CRYPTO), libtomcrypt)
493OBJS += crypto_libtomcrypt.c
494OBJS_p += crypto_libtomcrypt.c
495CONFIG_INTERNAL_SHA256=y
496endif
497ifeq ($(CONFIG_CRYPTO), internal)
498OBJS += crypto_internal.c rsa.c bignum.c
499OBJS_p += crypto_internal.c rsa.c bignum.c
500L_CFLAGS += -DCONFIG_CRYPTO_INTERNAL
501CONFIG_INTERNAL_AES=y
502CONFIG_INTERNAL_DES=y
503CONFIG_INTERNAL_SHA1=y
504CONFIG_INTERNAL_MD4=y
505CONFIG_INTERNAL_MD5=y
506CONFIG_INTERNAL_SHA256=y
507endif
508ifeq ($(CONFIG_CRYPTO), cryptoapi)
509OBJS += crypto_cryptoapi.c
510OBJS_p += crypto_cryptoapi.c
511L_CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI
512CONFIG_INTERNAL_SHA256=y
513endif
514endif
515ifeq ($(CONFIG_TLS), none)
516OBJS += crypto_none.c
517OBJS_p += crypto_none.c
518CONFIG_INTERNAL_SHA256=y
519endif
520else
521CONFIG_INTERNAL_AES=y
522CONFIG_INTERNAL_SHA1=y
523CONFIG_INTERNAL_MD5=y
524endif
525
526ifdef CONFIG_INTERNAL_AES
527L_CFLAGS += -DINTERNAL_AES
528endif
529ifdef CONFIG_INTERNAL_SHA1
530L_CFLAGS += -DINTERNAL_SHA1
531endif
532ifdef CONFIG_INTERNAL_SHA256
533L_CFLAGS += -DINTERNAL_SHA256
534endif
535ifdef CONFIG_INTERNAL_MD5
536L_CFLAGS += -DINTERNAL_MD5
537endif
538ifdef CONFIG_INTERNAL_MD4
539L_CFLAGS += -DINTERNAL_MD4
540endif
541ifdef CONFIG_INTERNAL_DES
542L_CFLAGS += -DINTERNAL_DES
543endif
544
545ifdef NEED_SHA256
546OBJS += sha256.c
547endif
548
549ifdef CONFIG_WIRELESS_EXTENSION
550L_CFLAGS += -DCONFIG_WIRELESS_EXTENSION
551OBJS_d += driver_wext.c
552endif
553
554ifdef CONFIG_CTRL_IFACE
555ifeq ($(CONFIG_CTRL_IFACE), y)
556ifdef CONFIG_NATIVE_WINDOWS
557CONFIG_CTRL_IFACE=udp
558else
559CONFIG_CTRL_IFACE=unix
560endif
561endif
562L_CFLAGS += -DCONFIG_CTRL_IFACE
563ifeq ($(CONFIG_CTRL_IFACE), udp)
564L_CFLAGS += -DCONFIG_CTRL_IFACE_UDP
565else
566L_CFLAGS += -DCONFIG_CTRL_IFACE_UNIX
567endif
568OBJS += ctrl_iface.c ctrl_iface_$(CONFIG_CTRL_IFACE).c
569endif
570
571ifdef CONFIG_READLINE
572L_CFLAGS += -DCONFIG_READLINE
573LIBS_c += -lncurses -lreadline
574endif
575
576ifdef CONFIG_NATIVE_WINDOWS
577L_CFLAGS += -DCONFIG_NATIVE_WINDOWS
578LIBS += -lws2_32 -lgdi32 -lcrypt32
579LIBS_c += -lws2_32
580LIBS_p += -lws2_32
581ifeq ($(CONFIG_CRYPTO), cryptoapi)
582LIBS_p += -lcrypt32
583endif
584endif
585
586ifdef CONFIG_NO_STDOUT_DEBUG
587L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
588ifndef CONFIG_CTRL_IFACE
589CFLAGS += -DCONFIG_NO_WPA_MSG
590endif
591endif
592
593ifdef CONFIG_IPV6
594# for eapol_test only
595L_CFLAGS += -DCONFIG_IPV6
596endif
597
598ifdef CONFIG_PEERKEY
599L_CFLAGS += -DCONFIG_PEERKEY
600endif
601
602ifdef CONFIG_IEEE80211W
603L_CFLAGS += -DCONFIG_IEEE80211W
604NEED_SHA256=y
605endif
606
607ifndef CONFIG_NO_WPA
608OBJS += wpa.c preauth.c pmksa_cache.c
609NEED_AES=y
610else
611L_CFLAGS += -DCONFIG_NO_WPA -DCONFIG_NO_WPA2
612endif
613
614ifdef CONFIG_NO_WPA2
615L_CFLAGS += -DCONFIG_NO_WPA2
616endif
617
618ifdef CONFIG_NO_AES_EXTRAS
619L_CFLAGS += -DCONFIG_NO_AES_WRAP
620L_CFLAGS += -DCONFIG_NO_AES_CTR -DCONFIG_NO_AES_OMAC1
621L_CFLAGS += -DCONFIG_NO_AES_EAX -DCONFIG_NO_AES_CBC
622endif
623
624ifdef NEED_AES
625OBJS += aes_wrap.c
626endif
627
628ifdef CONFIG_CLIENT_MLME
629OBJS += mlme.c
630L_CFLAGS += -DCONFIG_CLIENT_MLME
631endif
632
633ifndef CONFIG_MAIN
634CONFIG_MAIN=main
635endif
636
637ifdef CONFIG_DEBUG_FILE
638L_CFLAGS += -DCONFIG_DEBUG_FILE
639endif
640
641OBJS += wpa_supplicant.c events.c
642OBJS_t := $(OBJS) eapol_test.c radius.c radius_client.c
643OBJS_t2 := $(OBJS) preauth_test.c
644OBJS += $(CONFIG_MAIN).c drivers.c $(OBJS_d)
645
646ifdef CONFIG_NDIS_EVENTS_INTEGRATED
647L_CFLAGS += -DCONFIG_NDIS_EVENTS_INTEGRATED
648OBJS += ndis_events.c
649EXTRALIBS += -loleaut32 -lole32 -luuid
650ifdef PLATFORMSDKLIB
651EXTRALIBS += $(PLATFORMSDKLIB)/WbemUuid.Lib
652else
653EXTRALIBS += WbemUuid.Lib
654endif
655endif
656
657ifeq ($(WPA_BUILD_SUPPLICANT),true)
658
659########################
660
661include $(CLEAR_VARS)
662LOCAL_MODULE := wpa_cli
663LOCAL_MODULE_TAGS := debug
664LOCAL_SHARED_LIBRARIES := libc libcutils
665LOCAL_CFLAGS := $(L_CFLAGS)
666LOCAL_SRC_FILES := $(OBJS_c)
667LOCAL_C_INCLUDES := $(INCLUDES)
668include $(BUILD_EXECUTABLE)
669
670########################
671include $(CLEAR_VARS)
672LOCAL_MODULE := wpa_supplicant
673ifdef CONFIG_DRIVER_CUSTOM
674LOCAL_STATIC_LIBRARIES := libCustomWifi
675endif
676ifneq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),)
677LOCAL_STATIC_LIBRARIES += $(BOARD_WPA_SUPPLICANT_PRIVATE_LIB)
678endif
679LOCAL_SHARED_LIBRARIES := libc libcutils libcrypto libssl
680LOCAL_CFLAGS := $(L_CFLAGS)
681LOCAL_SRC_FILES := $(OBJS)
682LOCAL_C_INCLUDES := $(INCLUDES)
683include $(BUILD_EXECUTABLE)
684
685########################
686#
687#include $(CLEAR_VARS)
688#LOCAL_MODULE := eapol_test
689#ifdef CONFIG_DRIVER_CUSTOM
690#LOCAL_STATIC_LIBRARIES := libCustomWifi
691#endif
692#LOCAL_SHARED_LIBRARIES := libc libcrypto libssl
693#LOCAL_CFLAGS := $(L_CFLAGS)
694#LOCAL_SRC_FILES := $(OBJS_t)
695#LOCAL_C_INCLUDES := $(INCLUDES)
696#include $(BUILD_EXECUTABLE)
697#
698########################
699#
700#local_target_dir := $(TARGET_OUT)/etc/wifi
701#
702#include $(CLEAR_VARS)
703#LOCAL_MODULE := wpa_supplicant.conf
704#LOCAL_MODULE_TAGS := user
705#LOCAL_MODULE_CLASS := ETC
706#LOCAL_MODULE_PATH := $(local_target_dir)
707#LOCAL_SRC_FILES := $(LOCAL_MODULE)
708#include $(BUILD_PREBUILT)
709#
710########################
711
712endif # ifeq ($(WPA_BUILD_SUPPLICANT),true)
713
714include $(CLEAR_VARS)
715LOCAL_MODULE = libwpa_client
716LOCAL_CFLAGS = $(L_CFLAGS)
717LOCAL_SRC_FILES = wpa_ctrl.c os_unix.c
718LOCAL_C_INCLUDES = $(INCLUDES)
719LOCAL_SHARED_LIBRARIES := libcutils
720LOCAL_COPY_HEADERS_TO := libwpa_client
721LOCAL_COPY_HEADERS := wpa_ctrl.h
722include $(BUILD_SHARED_LIBRARY)
723
724endif # VER_0_5_X
725