参考:
一、libnl-3.2.25
./configure --prefix=/home/lfc/hostapd --host=arm-hisiv500-linux
make
make install
二、openssl-1.0.2r
./config no-asm shared --prefix=/home/lfc/hostapd --cross-compile-prefix=arm-hisiv500-linux-
make
make install
三、hostapd-2.8
1、修改Makefile
CFLAGS += $(EXTRA_CFLAGS)
CFLAGS += -I$(abspath ../src)
CFLAGS += -I$(abspath ../src/utils)
CFLAGS += -I/home/lfc/hostapd/include
LDFLAGS += -L/home/lfc/hostapd/lib
2、编译
cd hostap; cp defconfig .config
PKG_CONFIG_PATH=/home/lfc/hostapd/lib/pkgconfig make CC=arm-hisiv500-linux-gcc
四、iw-5.4(静态编译)
1、修改Makefile
LIBS += -lpthread -lm
LDFLAGS += -static
all: $(ALL)
2、编译
PKG_CONFIG_PATH=/home/lfc/hostapd/lib/pkgconfig make CC=arm-hisiv500-linux-gcc
五、wpa_supplicant-2.9
1、修改Makefile
CFLAGS += $(EXTRA_CFLAGS)
CFLAGS += -I$(abspath ../src)
CFLAGS += -I$(abspath ../src/utils)
CFLAGS += -I/home/lfc/hostapd/include
LDFLAGS += -L/home/lfc/hostapd/lib
2、编译
cp defconfig .config
PKG_CONFIG_PATH=/home/lfc/hostapd/lib/pkgconfig make CC=arm-hisiv500-linux-gcc
posted on 2020-04-18 10:27
lfc 阅读(3601)
评论(0) 编辑 收藏 引用