hostapd: Activate Opportunistic Wireless Encryption (OWE)
[openwrt/openwrt.git] / package / network / services / hostapd / Makefile
1 # Copyright (C) 2006-2014 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=hostapd
10 PKG_RELEASE:=4
11
12 PKG_SOURCE_URL:=http://w1.fi/hostap.git
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_DATE:=2018-05-21
15 PKG_SOURCE_VERSION:=62566bc23d041e88f8e35933d5fd8c2fd0f7cf2a
16 PKG_MIRROR_HASH:=f234b24f9471ae9cb34460feec6d6614641691544101535673595272c91448eb
17
18 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
19 PKG_LICENSE:=BSD-3-Clause
20 PKG_CPE_ID:=cpe:/a:w1.fi:hostapd
21
22 PKG_BUILD_PARALLEL:=1
23
24 PKG_CONFIG_DEPENDS:= \
25 CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK \
26 CONFIG_PACKAGE_kmod-ath9k \
27 CONFIG_PACKAGE_kmod-cfg80211 \
28 CONFIG_PACKAGE_hostapd \
29 CONFIG_PACKAGE_hostapd-mini \
30 CONFIG_WPA_RFKILL_SUPPORT \
31 CONFIG_DRIVER_WEXT_SUPPORT \
32 CONFIG_DRIVER_11N_SUPPORT \
33 CONFIG_DRIVER_11AC_SUPPORT \
34
35 EAPOL_TEST_PROVIDERS:=eapol-test eapol-test-openssl eapol-test-wolfssl
36
37 SUPPLICANT_PROVIDERS:=
38 HOSTAPD_PROVIDERS:=
39
40 LOCAL_TYPE=$(strip \
41 $(if $(findstring wpad,$(BUILD_VARIANT)),wpad, \
42 $(if $(findstring supplicant,$(BUILD_VARIANT)),supplicant, \
43 hostapd \
44 )))
45
46 LOCAL_AND_LIB_VARIANT=$(patsubst hostapd-%,%,\
47 $(patsubst wpad-%,%,\
48 $(patsubst supplicant-%,%,\
49 $(BUILD_VARIANT)\
50 )))
51
52 LOCAL_VARIANT=$(patsubst %-internal,%,\
53 $(patsubst %-openssl,%,\
54 $(patsubst %-wolfssl,%,\
55 $(LOCAL_AND_LIB_VARIANT)\
56 )))
57
58 SSL_VARIANT=$(strip \
59 $(if $(findstring openssl,$(LOCAL_AND_LIB_VARIANT)),openssl,\
60 $(if $(findstring wolfssl,$(LOCAL_AND_LIB_VARIANT)),wolfssl,\
61 internal\
62 )))
63
64 CONFIG_VARIANT:=$(LOCAL_VARIANT)
65 ifeq ($(LOCAL_VARIANT),mesh)
66 CONFIG_VARIANT:=full
67 endif
68
69 PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
70
71 include $(INCLUDE_DIR)/package.mk
72
73 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(CONFIG_WPA_MSG_MIN_PRIORITY)
74
75
76 ifneq ($(CONFIG_DRIVER_11N_SUPPORT),)
77 HOSTAPD_IEEE80211N:=y
78 endif
79
80 ifneq ($(CONFIG_DRIVER_11AC_SUPPORT),)
81 HOSTAPD_IEEE80211AC:=y
82 endif
83
84 DRIVER_MAKEOPTS= \
85 CONFIG_ACS=$(CONFIG_PACKAGE_kmod-cfg80211) \
86 CONFIG_DRIVER_NL80211=$(CONFIG_PACKAGE_kmod-cfg80211) \
87 CONFIG_IEEE80211N=$(HOSTAPD_IEEE80211N) \
88 CONFIG_IEEE80211AC=$(HOSTAPD_IEEE80211AC) \
89 CONFIG_DRIVER_WEXT=$(CONFIG_DRIVER_WEXT_SUPPORT) \
90
91 space :=
92 space +=
93
94 ifeq ($(LOCAL_VARIANT),full)
95 DRIVER_MAKEOPTS += CONFIG_IEEE80211W=$(CONFIG_DRIVER_11W_SUPPORT)
96 endif
97
98 ifeq ($(LOCAL_VARIANT),full)
99 ifeq ($(SSL_VARIANT),openssl)
100 DRIVER_MAKEOPTS += CONFIG_TLS=openssl CONFIG_SAE=y CONFIG_OWE=y
101 TARGET_LDFLAGS += -lcrypto -lssl
102 endif
103 ifeq ($(SSL_VARIANT),wolfssl)
104 DRIVER_MAKEOPTS += CONFIG_TLS=wolfssl CONFIG_WPS_NFC=1 CONFIG_SAE=y CONFIG_OWE=y
105 TARGET_LDFLAGS += -lwolfssl
106 endif
107 endif
108
109 ifneq ($(LOCAL_TYPE),hostapd)
110 ifeq ($(LOCAL_VARIANT),mesh)
111 ifeq ($(SSL_VARIANT),openssl)
112 DRIVER_MAKEOPTS += CONFIG_TLS=openssl CONFIG_AP=y CONFIG_SAE=y CONFIG_MESH=y
113 TARGET_LDFLAGS += -lcrypto -lssl
114 endif
115 ifeq ($(SSL_VARIANT),wolfssl)
116 DRIVER_MAKEOPTS += CONFIG_TLS=wolfssl CONFIG_WPS_NFC=1 CONFIG_AP=y CONFIG_SAE=y CONFIG_MESH=y
117 TARGET_LDFLAGS += -lwolfssl
118 endif
119 endif
120
121 ifdef CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK
122 TARGET_CFLAGS += -DNO_TIMESTAMP_CHECK
123 endif
124 ifdef CONFIG_WPA_RFKILL_SUPPORT
125 DRIVER_MAKEOPTS += NEED_RFKILL=y
126 endif
127 DRIVER_MAKEOPTS += \
128 CONFIG_DRIVER_ROBOSWITCH=$(CONFIG_PACKAGE_kmod-switch)
129 endif
130
131 ifdef CONFIG_USE_GLIBC
132 TARGET_LDFLAGS += -lrt
133 TARGET_LDFLAGS_C += -lrt
134 endif
135
136 DRV_DEPENDS:=+PACKAGE_kmod-cfg80211:libnl-tiny
137
138
139 define Package/hostapd/Default
140 SECTION:=net
141 CATEGORY:=Network
142 TITLE:=IEEE 802.1x Authenticator
143 URL:=http://hostap.epitest.fi/
144 DEPENDS:=$(DRV_DEPENDS) +hostapd-common +libubus
145 PROVIDES:=hostapd
146 CONFLICTS:=$(HOSTAPD_PROVIDERS)
147 HOSTAPD_PROVIDERS+=$(1)
148 endef
149
150 define Package/hostapd
151 $(call Package/hostapd/Default,$(1))
152 TITLE+= (full)
153 VARIANT:=full-internal
154 endef
155
156 define Package/hostapd/description
157 This package contains a full featured IEEE 802.1x/WPA/EAP/RADIUS
158 Authenticator.
159 endef
160
161 define Package/hostapd-openssl
162 $(call Package/hostapd/Default,$(1))
163 TITLE+= (full)
164 VARIANT:=full-openssl
165 DEPENDS+=+libopenssl
166 endef
167
168 Package/hostapd-openssl/description = $(Package/hostapd/description)
169
170 define Package/hostapd-wolfssl
171 $(call Package/hostapd/Default,$(1))
172 TITLE+= (full)
173 VARIANT:=full-wolfssl
174 DEPENDS+=+libwolfssl
175 endef
176
177 Package/hostapd-wolfssl/description = $(Package/hostapd/description)
178
179 define Package/hostapd-mini
180 $(call Package/hostapd/Default,$(1))
181 TITLE+= (WPA-PSK only)
182 VARIANT:=mini
183 endef
184
185 define Package/hostapd-mini/description
186 This package contains a minimal IEEE 802.1x/WPA Authenticator (WPA-PSK only).
187 endef
188
189
190 define Package/wpad/Default
191 SECTION:=net
192 CATEGORY:=Network
193 TITLE:=IEEE 802.1x Authenticator/Supplicant
194 DEPENDS:=$(DRV_DEPENDS) +hostapd-common +libubus
195 URL:=http://hostap.epitest.fi/
196 PROVIDES:=hostapd wpa-supplicant
197 CONFLICTS:=$(HOSTAPD_PROVIDERS) $(SUPPLICANT_PROVIDERS)
198 HOSTAPD_PROVIDERS+=$(1)
199 SUPPLICANT_PROVIDERS+=$(1)
200 endef
201
202 define Package/wpad
203 $(call Package/wpad/Default,$(1))
204 TITLE+= (full)
205 VARIANT:=wpad-full-internal
206 endef
207
208 define Package/wpad/description
209 This package contains a full featured IEEE 802.1x/WPA/EAP/RADIUS
210 Authenticator and Supplicant
211 endef
212
213 define Package/wpad-openssl
214 $(call Package/wpad/Default,$(1))
215 TITLE+= (full)
216 VARIANT:=wpad-full-openssl
217 DEPENDS+=+libopenssl
218 endef
219
220 Package/wpad-openssl/description = $(Package/wpad/description)
221
222 define Package/wpad-wolfssl
223 $(call Package/wpad/Default,$(1))
224 TITLE+= (full)
225 VARIANT:=wpad-full-wolfssl
226 DEPENDS+=+libwolfssl
227 endef
228
229 Package/wpad-wolfssl/description = $(Package/wpad/description)
230
231 define Package/wpad-mini
232 $(call Package/wpad/Default,$(1))
233 TITLE+= (WPA-PSK only)
234 VARIANT:=wpad-mini
235 endef
236
237 define Package/wpad-mini/description
238 This package contains a minimal IEEE 802.1x/WPA Authenticator and Supplicant (WPA-PSK only).
239 endef
240
241 define Package/wpad-mesh
242 $(call Package/wpad/Default,$(1))
243 TITLE+= (with 802.11s mesh and SAE support)
244 DEPENDS+=@PACKAGE_kmod-cfg80211 @(!TARGET_uml||BROKEN)
245 PROVIDES+=wpa-supplicant-mesh wpad-mesh
246 endef
247
248 define Package/wpad-mesh/description
249 This package contains a minimal IEEE 802.1x/WPA Authenticator and Supplicant (with 802.11s mesh and SAE support).
250 endef
251
252 define Package/wpad-mesh-openssl
253 $(call Package/wpad-mesh,$(1))
254 DEPENDS+=+libopenssl
255 VARIANT:=wpad-mesh-openssl
256 endef
257
258 Package/wpad-mesh-openssl/description = $(Package/wpad-mesh/description)
259
260 define Package/wpad-mesh-wolfssl
261 $(call Package/wpad-mesh,$(1))
262 DEPENDS+=+libwolfssl
263 VARIANT:=wpad-mesh-wolfssl
264 endef
265
266 Package/wpad-mesh-wolfssl/description = $(Package/wpad-mesh/description)
267
268
269 define Package/wpa-supplicant/Default
270 SECTION:=net
271 CATEGORY:=Network
272 TITLE:=WPA Supplicant
273 URL:=http://hostap.epitest.fi/wpa_supplicant/
274 DEPENDS:=$(DRV_DEPENDS)
275 PROVIDES:=wpa-supplicant
276 CONFLICTS:=$(SUPPLICANT_PROVIDERS)
277 SUPPLICANT_PROVIDERS+=$(1)
278 endef
279
280 define Package/wpa-supplicant
281 $(call Package/wpa-supplicant/Default,$(1))
282 VARIANT:=supplicant-full-internal
283 endef
284
285 define Package/wpa-supplicant-openssl
286 $(call Package/wpa-supplicant/Default,$(1))
287 VARIANT:=supplicant-full-openssl
288 DEPENDS+=+libopenssl
289 endef
290
291 define Package/wpa-supplicant-wolfssl
292 $(call Package/wpa-supplicant/Default,$(1))
293 VARIANT:=supplicant-full-wolfssl
294 DEPENDS+=+libwolfssl
295 endef
296
297 define Package/wpa-supplicant/config
298 source "$(SOURCE)/Config.in"
299 endef
300
301 define Package/wpa-supplicant-p2p
302 $(call Package/wpa-supplicant/Default,$(1))
303 TITLE+= (with Wi-Fi P2P support)
304 DEPENDS+=@PACKAGE_kmod-cfg80211
305 VARIANT:=supplicant-p2p-internal
306 endef
307
308 define Package/wpa-supplicant-mesh/Default
309 $(call Package/wpa-supplicant/Default,$(1))
310 TITLE+= (with 802.11s and SAE)
311 DEPENDS+=@PACKAGE_kmod-cfg80211 @(!TARGET_uml||BROKEN)
312 PROVIDES+=wpa-supplicant-mesh
313 endef
314
315 define Package/wpa-supplicant-mesh-openssl
316 $(call Package/wpa-supplicant-mesh/Default,$(1))
317 VARIANT:=supplicant-mesh-openssl
318 DEPENDS+=+libopenssl
319 endef
320
321 define Package/wpa-supplicant-mesh-wolfssl
322 $(call Package/wpa-supplicant-mesh/Default,$(1))
323 VARIANT:=supplicant-mesh-wolfssl
324 DEPENDS+=+libwolfssl
325 endef
326
327 define Package/wpa-supplicant-mini
328 $(call Package/wpa-supplicant/Default,$(1))
329 TITLE+= (minimal version)
330 VARIANT:=supplicant-mini
331 endef
332
333
334 define Package/hostapd-common
335 TITLE:=hostapd/wpa_supplicant common support files
336 SECTION:=net
337 CATEGORY:=Network
338 endef
339
340 define Package/hostapd-utils
341 SECTION:=net
342 CATEGORY:=Network
343 TITLE:=IEEE 802.1x Authenticator (utils)
344 URL:=http://hostap.epitest.fi/
345 DEPENDS:=@$(subst $(space),||,$(foreach pkg,$(HOSTAPD_PROVIDERS),PACKAGE_$(pkg)))
346 endef
347
348 define Package/hostapd-utils/description
349 This package contains a command line utility to control the
350 IEEE 802.1x/WPA/EAP/RADIUS Authenticator.
351 endef
352
353 define Package/wpa-cli
354 SECTION:=net
355 CATEGORY:=Network
356 DEPENDS:=@$(subst $(space),||,$(foreach pkg,$(SUPPLICANT_PROVIDERS),PACKAGE_$(pkg)))
357 TITLE:=WPA Supplicant command line control utility
358 endef
359
360 define Package/eapol-test
361 TITLE:=802.1x authentication test utility
362 SECTION:=net
363 CATEGORY:=Network
364 VARIANT:=supplicant-full-internal
365 DEPENDS:=$(DRV_DEPENDS)
366 endef
367
368 define Package/eapol-test-openssl
369 TITLE:=802.1x authentication test utility
370 SECTION:=net
371 CATEGORY:=Network
372 VARIANT:=supplicant-full-openssl
373 CONFLICTS:=$(filter-out eapol-test-openssl ,$(EAPOL_TEST_PROVIDERS))
374 DEPENDS:=$(DRV_DEPENDS) +libopenssl
375 PROVIDES:=eapol-test
376 endef
377
378 define Package/eapol-test-wolfssl
379 TITLE:=802.1x authentication test utility
380 SECTION:=net
381 CATEGORY:=Network
382 VARIANT:=supplicant-full-wolfssl
383 CONFLICTS:=$(filter-out eapol-test-openssl ,$(filter-out eapol-test-wolfssl ,$(EAPOL_TEST_PROVIDERS)))
384 DEPENDS:=$(DRV_DEPENDS) +libwolfssl
385 PROVIDES:=eapol-test
386 endef
387
388
389 ifneq ($(wildcard $(PKG_BUILD_DIR)/.config_*),$(subst .configured_,.config_,$(STAMP_CONFIGURED)))
390 define Build/Configure/rebuild
391 $(FIND) $(PKG_BUILD_DIR) -name \*.o -or -name \*.a | $(XARGS) rm -f
392 rm -f $(PKG_BUILD_DIR)/hostapd/hostapd
393 rm -f $(PKG_BUILD_DIR)/wpa_supplicant/wpa_supplicant
394 rm -f $(PKG_BUILD_DIR)/.config_*
395 touch $(subst .configured_,.config_,$(STAMP_CONFIGURED))
396 endef
397 endif
398
399 define Build/Configure
400 $(Build/Configure/rebuild)
401 $(if $(wildcard ./files/hostapd-$(CONFIG_VARIANT).config), \
402 $(CP) ./files/hostapd-$(CONFIG_VARIANT).config $(PKG_BUILD_DIR)/hostapd/.config \
403 )
404 $(CP) ./files/wpa_supplicant-$(CONFIG_VARIANT).config $(PKG_BUILD_DIR)/wpa_supplicant/.config
405 endef
406
407 TARGET_CPPFLAGS := \
408 -I$(STAGING_DIR)/usr/include/libnl-tiny \
409 -I$(PKG_BUILD_DIR)/src/crypto \
410 $(TARGET_CPPFLAGS) \
411 -DCONFIG_LIBNL20 \
412 -D_GNU_SOURCE \
413 $(if $(CONFIG_WPA_MSG_MIN_PRIORITY),-DCONFIG_MSG_MIN_PRIORITY=$(CONFIG_WPA_MSG_MIN_PRIORITY))
414
415 TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
416 TARGET_LDFLAGS += -Wl,--gc-sections -flto=jobserver -fuse-linker-plugin
417 ifeq ($(findstring supplicant,$(BUILD_VARIANT)),)
418 TARGET_LDFLAGS += -lubox -lubus
419 endif
420
421 ifdef CONFIG_PACKAGE_kmod-cfg80211
422 TARGET_LDFLAGS += -lm -lnl-tiny
423 endif
424
425 define Build/RunMake
426 CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
427 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(1) \
428 $(TARGET_CONFIGURE_OPTS) \
429 $(DRIVER_MAKEOPTS) \
430 LIBS="$(TARGET_LDFLAGS)" \
431 LIBS_c="$(TARGET_LDFLAGS_C)" \
432 AR="$(TARGET_CROSS)gcc-ar" \
433 BCHECK= \
434 $(2)
435 endef
436
437 define Build/Compile/wpad
438 echo ` \
439 $(call Build/RunMake,hostapd,-s MULTICALL=1 dump_cflags); \
440 $(call Build/RunMake,wpa_supplicant,-s MULTICALL=1 dump_cflags) | \
441 sed -e 's,-n ,,g' -e 's^$(TARGET_CFLAGS)^^' \
442 ` > $(PKG_BUILD_DIR)/.cflags
443 sed -i 's/"/\\"/g' $(PKG_BUILD_DIR)/.cflags
444 +$(call Build/RunMake,hostapd, \
445 CFLAGS="$$$$(cat $(PKG_BUILD_DIR)/.cflags)" \
446 MULTICALL=1 \
447 hostapd_cli hostapd_multi.a \
448 )
449 +$(call Build/RunMake,wpa_supplicant, \
450 CFLAGS="$$$$(cat $(PKG_BUILD_DIR)/.cflags)" \
451 MULTICALL=1 \
452 wpa_cli wpa_supplicant_multi.a \
453 )
454 +export MAKEFLAGS="$(MAKE_JOBSERVER)"; $(TARGET_CC) -o $(PKG_BUILD_DIR)/wpad \
455 $(TARGET_CFLAGS) \
456 ./files/multicall.c \
457 $(PKG_BUILD_DIR)/hostapd/hostapd_multi.a \
458 $(PKG_BUILD_DIR)/wpa_supplicant/wpa_supplicant_multi.a \
459 $(TARGET_LDFLAGS)
460 endef
461
462 define Build/Compile/hostapd
463 +$(call Build/RunMake,hostapd, \
464 hostapd hostapd_cli \
465 )
466 endef
467
468 define Build/Compile/supplicant
469 +$(call Build/RunMake,wpa_supplicant, \
470 wpa_cli wpa_supplicant \
471 )
472 endef
473
474 define Build/Compile/supplicant-full-internal
475 +$(call Build/RunMake,wpa_supplicant, \
476 eapol_test \
477 )
478 endef
479
480 define Build/Compile/supplicant-full-openssl
481 +$(call Build/RunMake,wpa_supplicant, \
482 eapol_test \
483 )
484 endef
485
486 define Build/Compile/supplicant-full-wolfssl
487 +$(call Build/RunMake,wpa_supplicant, \
488 eapol_test \
489 )
490 endef
491
492 define Build/Compile
493 $(Build/Compile/$(LOCAL_TYPE))
494 $(Build/Compile/$(BUILD_VARIANT))
495 endef
496
497 define Install/hostapd
498 $(INSTALL_DIR) $(1)/usr/sbin
499 endef
500
501 define Install/supplicant
502 $(INSTALL_DIR) $(1)/usr/sbin
503 endef
504
505 define Package/hostapd-common/install
506 $(INSTALL_DIR) $(1)/lib/netifd
507 $(INSTALL_DATA) ./files/hostapd.sh $(1)/lib/netifd/hostapd.sh
508 endef
509
510 define Package/hostapd/install
511 $(call Install/hostapd,$(1))
512 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd/hostapd $(1)/usr/sbin/
513 endef
514 Package/hostapd-mini/install = $(Package/hostapd/install)
515 Package/hostapd-openssl/install = $(Package/hostapd/install)
516 Package/hostapd-wolfssl/install = $(Package/hostapd/install)
517
518 ifneq ($(LOCAL_TYPE),supplicant)
519 define Package/hostapd-utils/install
520 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/rc.button
521 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd/hostapd_cli $(1)/usr/sbin/
522 $(INSTALL_BIN) ./files/wps-hotplug.sh $(1)/etc/rc.button/wps
523 endef
524 endif
525
526 define Package/wpad/install
527 $(call Install/hostapd,$(1))
528 $(call Install/supplicant,$(1))
529 $(INSTALL_BIN) $(PKG_BUILD_DIR)/wpad $(1)/usr/sbin/
530 $(LN) wpad $(1)/usr/sbin/hostapd
531 $(LN) wpad $(1)/usr/sbin/wpa_supplicant
532 endef
533 Package/wpad-mini/install = $(Package/wpad/install)
534 Package/wpad-openssl/install = $(Package/wpad/install)
535 Package/wpad-wolfssl/install = $(Package/wpad/install)
536 Package/wpad-mesh-openssl/install = $(Package/wpad/install)
537 Package/wpad-mesh-wolfssl/install = $(Package/wpad/install)
538
539 define Package/wpa-supplicant/install
540 $(call Install/supplicant,$(1))
541 $(INSTALL_BIN) $(PKG_BUILD_DIR)/wpa_supplicant/wpa_supplicant $(1)/usr/sbin/
542 endef
543 Package/wpa-supplicant-mini/install = $(Package/wpa-supplicant/install)
544 Package/wpa-supplicant-p2p/install = $(Package/wpa-supplicant/install)
545 Package/wpa-supplicant-openssl/install = $(Package/wpa-supplicant/install)
546 Package/wpa-supplicant-wolfssl/install = $(Package/wpa-supplicant/install)
547 Package/wpa-supplicant-mesh-openssl/install = $(Package/wpa-supplicant/install)
548 Package/wpa-supplicant-mesh-wolfssl/install = $(Package/wpa-supplicant/install)
549
550 ifneq ($(LOCAL_TYPE),hostapd)
551 define Package/wpa-cli/install
552 $(INSTALL_DIR) $(1)/usr/sbin
553 $(CP) $(PKG_BUILD_DIR)/wpa_supplicant/wpa_cli $(1)/usr/sbin/
554 endef
555 endif
556
557 ifeq ($(BUILD_VARIANT),supplicant-full-internal)
558 define Package/eapol-test/install
559 $(INSTALL_DIR) $(1)/usr/sbin
560 $(CP) $(PKG_BUILD_DIR)/wpa_supplicant/eapol_test $(1)/usr/sbin/
561 endef
562 endif
563
564 ifeq ($(BUILD_VARIANT),supplicant-full-openssl)
565 define Package/eapol-test-openssl/install
566 $(INSTALL_DIR) $(1)/usr/sbin
567 $(CP) $(PKG_BUILD_DIR)/wpa_supplicant/eapol_test $(1)/usr/sbin/
568 endef
569 endif
570
571 ifeq ($(BUILD_VARIANT),supplicant-full-wolfssl)
572 define Package/eapol-test-wolfssl/install
573 $(INSTALL_DIR) $(1)/usr/sbin
574 $(CP) $(PKG_BUILD_DIR)/wpa_supplicant/eapol_test $(1)/usr/sbin/
575 endef
576 endif
577
578 $(eval $(call BuildPackage,hostapd))
579 $(eval $(call BuildPackage,hostapd-mini))
580 $(eval $(call BuildPackage,hostapd-openssl))
581 $(eval $(call BuildPackage,hostapd-wolfssl))
582 $(eval $(call BuildPackage,wpad))
583 $(eval $(call BuildPackage,wpad-mesh-openssl))
584 $(eval $(call BuildPackage,wpad-mesh-wolfssl))
585 $(eval $(call BuildPackage,wpad-mini))
586 $(eval $(call BuildPackage,wpad-openssl))
587 $(eval $(call BuildPackage,wpad-wolfssl))
588 $(eval $(call BuildPackage,wpa-supplicant))
589 $(eval $(call BuildPackage,wpa-supplicant-mesh-openssl))
590 $(eval $(call BuildPackage,wpa-supplicant-mesh-wolfssl))
591 $(eval $(call BuildPackage,wpa-supplicant-mini))
592 $(eval $(call BuildPackage,wpa-supplicant-p2p))
593 $(eval $(call BuildPackage,wpa-supplicant-openssl))
594 $(eval $(call BuildPackage,wpa-supplicant-wolfssl))
595 $(eval $(call BuildPackage,wpa-cli))
596 $(eval $(call BuildPackage,hostapd-utils))
597 $(eval $(call BuildPackage,hostapd-common))
598 $(eval $(call BuildPackage,eapol-test))
599 $(eval $(call BuildPackage,eapol-test-openssl))
600 $(eval $(call BuildPackage,eapol-test-wolfssl))