aboutsummaryrefslogtreecommitdiff
path: root/tools/bsdbox/Makefile.hostapd
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bsdbox/Makefile.hostapd')
-rw-r--r--tools/bsdbox/Makefile.hostapd26
1 files changed, 21 insertions, 5 deletions
diff --git a/tools/bsdbox/Makefile.hostapd b/tools/bsdbox/Makefile.hostapd
index 8c5d86d86704..4459de171242 100644
--- a/tools/bsdbox/Makefile.hostapd
+++ b/tools/bsdbox/Makefile.hostapd
@@ -3,13 +3,18 @@
#
#
.include <src.opts.mk>
+
+WPASRC?= ${SRCTOP}/usr.sbin/wpa
+
CRUNCH_PROGS_usr.sbin+= hostapd hostapd_cli
-CRUNCH_SRCDIR_hostapd= $(.CURDIR)/../../usr.sbin/wpa/hostapd
-CRUNCH_SRCDIR_hostapd_cli= $(.CURDIR)/../../usr.sbin/wpa/hostapd_cli
+CRUNCH_SRCDIR_hostapd= ${WPASRC}/hostapd
+CRUNCH_SRCDIR_hostapd_cli= ${WPASRC}/hostapd_cli
+
+CRUNCH_KEEP_hostapd+= wpa_driver_bsd_ops
-#CRUNCH_PROGS_usr.sbin+= wpa_supplicant wpa_cli
-#CRUNCH_SRCDIR_wpa_supplicant= $(.CURDIR)/../../usr.sbin/wpa/wpa_supplicant
-#CRUNCH_SRCDIR_wpa_cli= $(.CURDIR)/../../usr.sbin/wpa/wpa_cli
+CRUNCH_PROGS_usr.sbin+= wpa_supplicant wpa_cli
+CRUNCH_SRCDIR_wpa_supplicant= ${WPASRC}/wpa_supplicant
+CRUNCH_SRCDIR_wpa_cli= ${WPASRC}/wpa_cli
.if ${MK_OFED} != "no"
# libpcap dependencies if OFED is enabled
@@ -17,3 +22,14 @@ CRUNCH_LIBS+= -lmlx5 -libverbs
.endif
CRUNCH_LIBS+= -lpcap
+# hostapd
+wpalibs= drivers ap l2_packet eap_server
+wpalibs+= eapol_auth eap_common
+wpalibs+= radius tls wps common crypto utils
+
+# wpa_supplicant
+wpalibs+= eapol_supp eap_peer rsn_supp
+
+.for wpalib in ${wpalibs}
+CRUNCH_LIBS+= ${LIBWPA${wpalib:tu}}
+.endfor