wpa_supplicant-2.6源碼交叉編譯
源碼下載官網(wǎng):
https://w1.fi/releases/
libnl-1.1.4交叉編譯:
./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=編譯適配主機(jī)的類型(在運(yùn)行主機(jī)上通過(guò)uname -m查看)
make CC=xx-gcc
make install
./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
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(可配置編譯選項(xiàng))
make CC=xxx