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