wpa_supplicant-2.6源码交叉编译

时间:2024-04-10 10:08:46


源码下载官网:

https://w1.fi/releases/

libnl-1.1.4交叉编译:https://blog.csdn.net/hinyunsin/article/details/6029403

./configure CC=xx-gcc \
--prefix=/home/xx/openspurce/wpa_s_2_6/opensrc/release \
--sysconfdir=/home/xxx/openspurce/wpa_s_2_6/opensrc/release --host=xxx --disable-static
其中,CC=交叉编译器, --host=编译适配主机的类型(在运行主机上通过uname -m查看)
make CC=xx-gcc
make install

wpa_supplicant-2.6源码交叉编译

我的:

./configure CC=arm-none-linux-gnueabi-gcc --prefix=$(pwd)/build --host=arm-none-linux-gnueabi --enable-shared --enable-static
make clean -w
make
make install

openssl编译:https://blog.csdn.net/fangye945a/article/details/86658621
./Configure linux-elf no-asm --prefix=/home/xx/openspurce/wpa_s_2_6/opensrc/release \
--openssldir=/home/xx/openspurce/wpa_s_2_6/opensrc/release \
--cross-compile-prefix=xx shared 
其中,--cross-compile-prefix=交叉编译器
make CC=xx-gcc
make install

wpa_supplicant源码:
Makefile添加:
   CFLAGS+=-I/home/xx/openspurce/wpa_s_2_6/opensrc/release/include/
   LIBS += -L/home/xx/openspurce/wpa_s_2_6/opensrc/release/lib
   LIBS_p += -L/home/xx/openspurce/wpa_s_2_6/opensrc/release/lib
   LIBS_c += -L/home/xx/openspurce/wpa_s_2_6/opensrc/release/lib
cp defconfig .config(可配置编译选项)
make CC=xxx
————————————————
版权声明:本文为CSDN博主「Janet CHU」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/chaty_chu/article/details/78338112