Compile wpa_supplicant2.0 for IPNC

1 Download wpa_supplicant2.0

Download Page:
http://hostap.epitest.fi/wpa_supplicant/
Download URL:
http://hostap.epitest.fi/releases/wpa_supplicant-2.0.tar.gz

untar the compressed file:
# tar -zxvf wpa_supplicant-2.0.tar.gz


2 Build openssl for wpa_supplicant2.0

Download openssl-0.9.8d.tar.gz(version must be0.9.8d)

Download Page:
http://www.openssl.org/source/
Download URL:
http://www.openssl.org/source/openssl-0.9.8d.tar.gz

untar the compressed file:
# tar -zxvf openssl-0.9.8d.tar.gz
Patch the diff file
# cd openssl-0.9.8d
# patch -Np1 -i ../wpa_supplicant-2.0/patches/openssl-0.9.8d-tls-extensions.patc

the options '-Np1' is number '1',not letter 'l'

configure && make openssl

Configured as shared library
# ./config --prefix=`pwd`/build4wpa_supplicant2 --openssldir=`pwd`/build4wpa_supplicant2/ssl shared zlib-dynamic no-asm no-sse2
# vim Makefile
edit Makefile file :
L16: remove -march=pentium
L17: remove -march=pentium
L62: CC= arm_v5t_le-gcc
L63: remove build option -mcpu=pentium
L69: AR= arm_v5t_le-ar $(ARFLAGS) r
L70: RANLIB= arm_v5t_le-ranlib
L74: MAKEDEPPROG= arm_v5t_le-gcc

# make
# make install

3 Build wap_supplicant2.0

# cd wpa_supplicant-2.0
Create an initial configuration file for the build process.
Run the following command to create a build configuration file:
# 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



你可能感兴趣的:(compile,IPNC)