Porting hostapd to ARM9 Linux platform.
如果你的嵌入式平台需要WPA认证但是你的驱动又没有支持,怎么办?那就Porting hostapd好了:
1.修改Makefile中的CC 为你的cross compile gcc, 加入openssl的头文件路径和库路径
2.make
3.ok, 一个hostapd 就编译好了(但是要有openssl的支持,可以参考我的"porting openssl"那篇文章).
Makefile的修改可以参考我的patch文件:
--- Makefile 2006-05-31 17:21:24.000000000 +0800
+++ xx 2006-05-31 17:25:23.000000000 +0800
@@ -1,4 +1,4 @@
-CC=gcc
+CC=arm-linux-gcc
DIR_WPA_SUPPLICANT=.
DIR_HOSTAP=.
@@ -11,7 +11,7 @@
CFLAGS += -DHOSTAPD_DUMP_STATE
# Include directories for CVS version
-CFLAGS += -I. -I$(DIR_HOSTAP) -I../utils -I$(DIR_WPA_SUPPLICANT)
+CFLAGS += -I. -I$(DIR_HOSTAP) -I../openssl-0.9.7a/include -I$(DIR_WPA_SUPPLICANT)
# Uncomment following line and set the path to your kernel tree include
# directory if your C library does not include all header files.
@@ -143,7 +143,7 @@
# Shared TLS functions (needed for EAP_TLS, EAP_PEAP, and EAP_TTLS)
CFLAGS += -DEAP_TLS_FUNCS
OBJS += eap_tls_common.o $(DIR_WPA_SUPPLICANT)/tls_openssl.o
-LIBS += -lssl -lcrypto
+LIBS += -L../openssl-0.9.7a -lssl -lcrypto
LIBS_p += -lcrypto
else
OBJS += $(DIR_WPA_SUPPLICANT)/tls_none.o