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