For compile wpa_supplicant v2.6!
PATH:
/home/wpa_supplicant$ ls
libnl-3.5.0 libnl-3.5.0.tar.gz openssl-1.0.2r openssl-1.0.2r.tar.gz README wpa_supplicant-2.6 wpa_supplicant-2.6.tar.gz
一、libssl
1.download & tar
https://www.openssl.org/source/ -> openssl-1.0.2r.tar.gz
tar -zxvf openssl-1.0.2r.tar.gz
2.compile
a) cd openssl-1.0.2r/
b) mkdir install
c)./config no-asm shared --prefix=$PWD/install --cross-compile-prefix=mips-linux-uclibc-gnu-
错误: arm-himix100-linux-gcc: error: unrecognized command line option ‘-m64’
打开Makefile 查找所有 ‘-m64’,删除即可。
d) make CC=mips-linux-uclibc-gnu-gcc
d) make insatll
二、libnl
1.download & tar
https://www.linuxfromscratch.org/blfs/view/9.1/basicnet/libnl.html -> libnl-3.5.0.tar.gz
tar -zxvf libnl-3.5.0.tar.gz
2.compile
a) cd libnl-3.5.0/
b) mkdir install
c) ./configure CC=mips-linux-uclibc-gnu-gcc --host=mips --prefix=$(pwd)/install/
d) make
e) make install
三、 wpa_supplicant
1.download & tar
http://w1.fi/releases/ -> wpa_supplicant-2.6.tar.gz
tar -zxvf wpa_supplicant-2.6.tar.gz
2.compile
a) cd wpa_supplicant-2.6/wpa_supplicant/
b) cp defconfig .config
c) modify '.config'
CFLAGS += -I/home/wpa_supplicant/openssl-1.0.2r/install/include
LIBS += -L/home/wpa_supplicant/openssl-1.0.2r/install/lib
CFLAGS += -I/home/wpa_supplicant/libnl-3.5.0/install/include/libnl3
LIBS += -L/home/wpa_supplicant/libnl-3.5.0/install/lib
LDFLAGS += -pthread
CC=mips-linux-uclibc-gnu-gcc
CONFIG_LIBNL32=y
CONFIG_WPS=y
CONFIG_TLS=internal
CONFIG_INTERNAL_LIBTOMMATH=y
ifndef CONFIG_INTERNAL_LIBTOMMATH
LTM_PATH=/usr/src/libtommath-0.39
CFLAGS += -I$(LTM_PATH)
LIBS += -L$(LTM_PATH)
LIBS_p += -L$(LTM_PATH)
endif
d) export PKG_CONFIG_PATH=/home/wpa_supplicant/libnl-3.5.0/install/lib/pkgconfig/
e) make