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