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