# tar -zxvf wpa_supplicant-2.0.tar.gz
# tar -zxvf openssl-0.9.8d.tar.gzPatch the diff file
# cd openssl-0.9.8d # patch -Np1 -i ../wpa_supplicant-2.0/patches/openssl-0.9.8d-tls-extensions.patc
# ./config --prefix=`pwd`/build4wpa_supplicant2 --openssldir=`pwd`/build4wpa_supplicant2/ssl shared zlib-dynamic no-asm no-sse2 # vim Makefileedit Makefile file :
# make # make install
# cd wpa_supplicant-2.0Create an initial configuration file for the build process.
# cat > wpa_supplicant/.config << "EOF" CFLAGS += -I../../openssl-0.9.8d/build4wpa_supplicant2/include LIBS += -L../../openssl-0.9.8d/build4wpa_supplicant2/lib -lssl CONFIG_DRIVER_HOSTAP=y CONFIG_DRIVER_WEXT=y CONFIG_IEEE8021X_EAPOL=y CONFIG_EAP_MD5=y CONFIG_EAP_MSCHAPV2=y CONFIG_EAP_TLS=y CONFIG_EAP_PEAP=y CONFIG_EAP_TTLS=y CONFIG_EAP_FAST=y CONFIG_EAP_GTC=y CONFIG_EAP_OTP=y CONFIG_EAP_PSK=y CONFIG_EAP_PWD=y CONFIG_EAP_PAX=y CONFIG_EAP_LEAP=y CONFIG_EAP_SAKE=y CONFIG_PKCS12=y CONFIG_SMARTCARD=y CONFIG_CTRL_IFACE=udp-remote CONFIG_NO_STDOUT_DEBUG=y CONFIG_BACKEND=file CONFIG_PEERKEY=y CONFIG_TLS=openssl CONFIG_IEEE80211R=y CONFIG_IEEE80211N=y CONFIG_AP=y CONFIG_P2P=y EOF # cd wpa_supplicant/ # make clean # make CC=arm_v5t_le-gcc