Hi3516DV300交叉编译wpa_supplicant

目录

一、环境与源码包

二、交叉编译libnl

三、交叉编译openssl 

四、交叉编译wpa_supplicant


一、环境与源码包

宿主机:Ubuntu18.04 x64
目标平台:Hi3516DV300
交叉编译工具链:arm-himix200-linux-gcc
依赖关系:
wpa_supplicant(2.6)
|--------libnl(1.1.4)
|--------openssl(1.1.0)


二、交叉编译libnl

./configure --prefix=/opt/hisi-wifi/arm_libnl --host=arm-himix200-linux CC=arm-himix200-linux-gcc
make

make install

三、交叉编译openssl 

./config --prefix=/opt/hisi-wifi/arm_openssl CC=arm-himix200-linux-gcc no-autoerrinit no-idea no-camellia no-seed no-bf no-cast no-engine no-hw no-cms no-capieng no-comp no-zlib no-zlib-dynamic no-async threads no-ts no-ui no-asm no-sse2

make

make install

四、交叉编译wpa_supplicant

cd wpa_supplicant/

cp defconfig .config

vim .config

在.config文件末尾加上如下内容:

CFLAGS += -I/opt/hisi-wifi/arm_libnl/include
LIBS += -L/opt/hisi-wifi/arm_libnl/lib
CFLAGS += -I/opt/hisi-wifi/arm_openssl/include
LIBS += -L/opt/hisi-wifi/arm_openssl/lib
CFLAGS += -O3 -fPIC
CC=arm-himix200-linux-gcc -L/opt/hisi-wifi/arm_libnl/lib -L/opt/hisi-wifi/arm_openssl/lib

 export PKG_CONFIG_PATH=/opt/hisi-wifi/arm_libnl/lib/pkgconfig

make

Hi3516DV300交叉编译wpa_supplicant_第1张图片

 将在当前目录生成的wpa_supplicant和wpa_cli拷贝至3516板端中即可使用

你可能感兴趣的:(WIFI热点,Linux,linux)