map: add a legacymap option
[openwrt/staging/dedeckeh.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:=2
11
12 PKG_SOURCE_URL:=http://w1.fi/hostap.git
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_DATE:=2020-06-08
15 PKG_SOURCE_VERSION:=5a8b366233f5585e68a4ffbb604fbb4a848eb325
16 PKG_MIRROR_HASH:=1b2a4947034142587a3f81eac2ea27dd64650e77f8943d973623b47533be2393
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 CONFIG_DRIVER_11AX_SUPPORT \
36 CONFIG_WPA_ENABLE_WEP
37
38 EAPOL_TEST_PROVIDERS:=eapol-test eapol-test-openssl eapol-test-wolfssl
39
40 SUPPLICANT_PROVIDERS:=
41 HOSTAPD_PROVIDERS:=
42
43 LOCAL_TYPE=$(strip \
44 $(if $(findstring wpad,$(BUILD_VARIANT)),wpad, \
45 $(if $(findstring supplicant,$(BUILD_VARIANT)),supplicant, \
46 hostapd \
47 )))
48
49 LOCAL_AND_LIB_VARIANT=$(patsubst hostapd-%,%,\
50 $(patsubst wpad-%,%,\
51 $(patsubst supplicant-%,%,\
52 $(BUILD_VARIANT)\
53 )))
54
55 LOCAL_VARIANT=$(patsubst %-internal,%,\
56 $(patsubst %-openssl,%,\
57 $(patsubst %-wolfssl,%,\
58 $(LOCAL_AND_LIB_VARIANT)\
59 )))
60
61 SSL_VARIANT=$(strip \
62 $(if $(findstring openssl,$(LOCAL_AND_LIB_VARIANT)),openssl,\
63 $(if $(findstring wolfssl,$(LOCAL_AND_LIB_VARIANT)),wolfssl,\
64 internal\
65 )))
66
67 CONFIG_VARIANT:=$(LOCAL_VARIANT)
68 ifeq ($(LOCAL_VARIANT),mesh)
69 CONFIG_VARIANT:=full
70 endif
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 ifneq ($(CONFIG_DRIVER_11AX_SUPPORT),)
86 HOSTAPD_IEEE80211AX:=y
87 endif
88
89 DRIVER_MAKEOPTS= \
90 CONFIG_ACS=$(CONFIG_PACKAGE_kmod-cfg80211) \
91 CONFIG_DRIVER_NL80211=$(CONFIG_PACKAGE_kmod-cfg80211) \
92 CONFIG_IEEE80211N=$(HOSTAPD_IEEE80211N) \
93 CONFIG_IEEE80211AC=$(HOSTAPD_IEEE80211AC) \
94 CONFIG_IEEE80211AX=$(HOSTAPD_IEEE80211AX) \
95 CONFIG_DRIVER_WEXT=$(CONFIG_DRIVER_WEXT_SUPPORT) \
96
97 ifneq ($(LOCAL_VARIANT),mini)
98 DRIVER_MAKEOPTS += CONFIG_IEEE80211W=$(CONFIG_DRIVER_11W_SUPPORT)
99 endif
100
101 ifeq ($(LOCAL_VARIANT),full)
102 ifeq ($(SSL_VARIANT),openssl)
103 DRIVER_MAKEOPTS += CONFIG_TLS=openssl CONFIG_SAE=y CONFIG_OWE=y CONFIG_SUITEB192=y CONFIG_AP=y CONFIG_MESH=y
104 TARGET_LDFLAGS += -lcrypto -lssl
105 endif
106 ifeq ($(SSL_VARIANT),wolfssl)
107 DRIVER_MAKEOPTS += CONFIG_TLS=wolfssl CONFIG_WPS_NFC=1 CONFIG_SAE=y CONFIG_OWE=y CONFIG_SUITEB192=y CONFIG_AP=y CONFIG_MESH=y
108 TARGET_LDFLAGS += -lwolfssl
109 endif
110 endif
111
112 ifneq ($(LOCAL_TYPE),hostapd)
113 ifeq ($(LOCAL_VARIANT),mesh)
114 ifeq ($(SSL_VARIANT),openssl)
115 DRIVER_MAKEOPTS += CONFIG_TLS=openssl CONFIG_AP=y CONFIG_SAE=y CONFIG_MESH=y
116 TARGET_LDFLAGS += -lcrypto -lssl
117 endif
118 ifeq ($(SSL_VARIANT),wolfssl)
119 DRIVER_MAKEOPTS += CONFIG_TLS=wolfssl CONFIG_WPS_NFC=1 CONFIG_AP=y CONFIG_SAE=y CONFIG_MESH=y
120 TARGET_LDFLAGS += -lwolfssl
121 endif
122 endif
123
124 ifdef CONFIG_WPA_RFKILL_SUPPORT
125 DRIVER_MAKEOPTS += NEED_RFKILL=y
126 endif
127 endif
128
129 ifdef CONFIG_USE_GLIBC
130 TARGET_LDFLAGS += -lrt
131 TARGET_LDFLAGS_C += -lrt
132 endif
133
134 DRV_DEPENDS:=+PACKAGE_kmod-cfg80211:libnl-tiny
135
136
137 define Package/hostapd/Default
138 SECTION:=net
139 CATEGORY:=Network
140 SUBMENU:=WirelessAPD
141 TITLE:=IEEE 802.1x Authenticator
142 URL:=http://hostap.epitest.fi/
143 DEPENDS:=$(DRV_DEPENDS) +hostapd-common +libubus
144 PROVIDES:=hostapd
145 CONFLICTS:=$(HOSTAPD_PROVIDERS)
146 HOSTAPD_PROVIDERS+=$(1)
147 endef
148
149 define Package/hostapd
150 $(call Package/hostapd/Default,$(1))
151 TITLE+= (full)
152 VARIANT:=full-internal
153 endef
154
155 define Package/hostapd/description
156 This package contains a full featured IEEE 802.1x/WPA/EAP/RADIUS
157 Authenticator.
158 endef
159
160 define Package/hostapd-openssl
161 $(call Package/hostapd/Default,$(1))
162 TITLE+= (full)
163 VARIANT:=full-openssl
164 DEPENDS+=+libopenssl
165 endef
166
167 Package/hostapd-openssl/description = $(Package/hostapd/description)
168
169 define Package/hostapd-wolfssl
170 $(call Package/hostapd/Default,$(1))
171 TITLE+= (full)
172 VARIANT:=full-wolfssl
173 DEPENDS+=+libwolfssl
174 endef
175
176 Package/hostapd-wolfssl/description = $(Package/hostapd/description)
177
178 define Package/hostapd-basic
179 $(call Package/hostapd/Default,$(1))
180 TITLE+= (WPA-PSK, 11r and 11w)
181 VARIANT:=basic
182 endef
183
184 define Package/hostapd-basic/description
185 This package contains a basic IEEE 802.1x/WPA Authenticator with WPA-PSK, 802.11r and 802.11w support.
186 endef
187
188 define Package/hostapd-mini
189 $(call Package/hostapd/Default,$(1))
190 TITLE+= (WPA-PSK only)
191 VARIANT:=mini
192 endef
193
194 define Package/hostapd-mini/description
195 This package contains a minimal IEEE 802.1x/WPA Authenticator (WPA-PSK only).
196 endef
197
198
199 define Package/wpad/Default
200 SECTION:=net
201 CATEGORY:=Network
202 SUBMENU:=WirelessAPD
203 TITLE:=IEEE 802.1x Authenticator/Supplicant
204 DEPENDS:=$(DRV_DEPENDS) +hostapd-common +libubus
205 URL:=http://hostap.epitest.fi/
206 PROVIDES:=hostapd wpa-supplicant
207 CONFLICTS:=$(HOSTAPD_PROVIDERS) $(SUPPLICANT_PROVIDERS)
208 HOSTAPD_PROVIDERS+=$(1)
209 SUPPLICANT_PROVIDERS+=$(1)
210 endef
211
212 define Package/wpad
213 $(call Package/wpad/Default,$(1))
214 TITLE+= (full)
215 VARIANT:=wpad-full-internal
216 endef
217
218 define Package/wpad/description
219 This package contains a full featured IEEE 802.1x/WPA/EAP/RADIUS
220 Authenticator and Supplicant
221 endef
222
223 define Package/wpad-openssl
224 $(call Package/wpad/Default,$(1))
225 TITLE+= (full)
226 VARIANT:=wpad-full-openssl
227 DEPENDS+=+libopenssl
228 endef
229
230 Package/wpad-openssl/description = $(Package/wpad/description)
231
232 define Package/wpad-wolfssl
233 $(call Package/wpad/Default,$(1))
234 TITLE+= (full)
235 VARIANT:=wpad-full-wolfssl
236 DEPENDS+=+libwolfssl
237 endef
238
239 Package/wpad-wolfssl/description = $(Package/wpad/description)
240
241 define Package/wpad-basic
242 $(call Package/wpad/Default,$(1))
243 TITLE+= (WPA-PSK, 11r and 11w)
244 VARIANT:=wpad-basic
245 endef
246
247 define Package/wpad-basic/description
248 This package contains a basic IEEE 802.1x/WPA Authenticator and Supplicant with WPA-PSK, 802.11r and 802.11w support.
249 endef
250
251 define Package/wpad-mini
252 $(call Package/wpad/Default,$(1))
253 TITLE+= (WPA-PSK only)
254 VARIANT:=wpad-mini
255 endef
256
257 define Package/wpad-mini/description
258 This package contains a minimal IEEE 802.1x/WPA Authenticator and Supplicant (WPA-PSK only).
259 endef
260
261 define Package/wpad-mesh
262 $(call Package/wpad/Default,$(1))
263 TITLE+= (with 802.11s mesh and SAE support)
264 DEPENDS+=@PACKAGE_kmod-cfg80211 @(!TARGET_uml||BROKEN)
265 PROVIDES+=wpa-supplicant-mesh wpad-mesh
266 endef
267
268 define Package/wpad-mesh/description
269 This package contains a minimal IEEE 802.1x/WPA Authenticator and Supplicant (with 802.11s mesh and SAE support).
270 endef
271
272 define Package/wpad-mesh-openssl
273 $(call Package/wpad-mesh,$(1))
274 DEPENDS+=+libopenssl
275 VARIANT:=wpad-mesh-openssl
276 endef
277
278 Package/wpad-mesh-openssl/description = $(Package/wpad-mesh/description)
279
280 define Package/wpad-mesh-wolfssl
281 $(call Package/wpad-mesh,$(1))
282 DEPENDS+=+libwolfssl
283 VARIANT:=wpad-mesh-wolfssl
284 endef
285
286 Package/wpad-mesh-wolfssl/description = $(Package/wpad-mesh/description)
287
288
289 define Package/wpa-supplicant/Default
290 SECTION:=net
291 CATEGORY:=Network
292 SUBMENU:=WirelessAPD
293 TITLE:=WPA Supplicant
294 URL:=http://hostap.epitest.fi/wpa_supplicant/
295 DEPENDS:=$(DRV_DEPENDS) +hostapd-common +libubus
296 PROVIDES:=wpa-supplicant
297 CONFLICTS:=$(SUPPLICANT_PROVIDERS)
298 SUPPLICANT_PROVIDERS+=$(1)
299 endef
300
301 define Package/wpa-supplicant
302 $(call Package/wpa-supplicant/Default,$(1))
303 VARIANT:=supplicant-full-internal
304 endef
305
306 define Package/wpa-supplicant-openssl
307 $(call Package/wpa-supplicant/Default,$(1))
308 VARIANT:=supplicant-full-openssl
309 DEPENDS+=+libopenssl
310 endef
311
312 define Package/wpa-supplicant-wolfssl
313 $(call Package/wpa-supplicant/Default,$(1))
314 VARIANT:=supplicant-full-wolfssl
315 DEPENDS+=+libwolfssl
316 endef
317
318 define Package/wpa-supplicant/config
319 source "$(SOURCE)/Config.in"
320 endef
321
322 define Package/wpa-supplicant-p2p
323 $(call Package/wpa-supplicant/Default,$(1))
324 TITLE+= (with Wi-Fi P2P support)
325 DEPENDS+=@PACKAGE_kmod-cfg80211
326 VARIANT:=supplicant-p2p-internal
327 endef
328
329 define Package/wpa-supplicant-mesh/Default
330 $(call Package/wpa-supplicant/Default,$(1))
331 TITLE+= (with 802.11s and SAE)
332 DEPENDS+=@PACKAGE_kmod-cfg80211 @(!TARGET_uml||BROKEN)
333 PROVIDES+=wpa-supplicant-mesh
334 endef
335
336 define Package/wpa-supplicant-mesh-openssl
337 $(call Package/wpa-supplicant-mesh/Default,$(1))
338 VARIANT:=supplicant-mesh-openssl
339 DEPENDS+=+libopenssl
340 endef
341
342 define Package/wpa-supplicant-mesh-wolfssl
343 $(call Package/wpa-supplicant-mesh/Default,$(1))
344 VARIANT:=supplicant-mesh-wolfssl
345 DEPENDS+=+libwolfssl
346 endef
347
348 define Package/wpa-supplicant-basic
349 $(call Package/wpa-supplicant/Default,$(1))
350 TITLE+= (with 11r and 11w)
351 VARIANT:=supplicant-basic
352 endef
353
354 define Package/wpa-supplicant-mini
355 $(call Package/wpa-supplicant/Default,$(1))
356 TITLE+= (minimal version)
357 VARIANT:=supplicant-mini
358 endef
359
360
361 define Package/hostapd-common
362 TITLE:=hostapd/wpa_supplicant common support files
363 SECTION:=net
364 CATEGORY:=Network
365 SUBMENU:=WirelessAPD
366 endef
367
368 define Package/hostapd-utils
369 SECTION:=net
370 CATEGORY:=Network
371 SUBMENU:=WirelessAPD
372 TITLE:=IEEE 802.1x Authenticator (utils)
373 URL:=http://hostap.epitest.fi/
374 DEPENDS:=@$(subst $(space),||,$(foreach pkg,$(HOSTAPD_PROVIDERS),PACKAGE_$(pkg)))
375 endef
376
377 define Package/hostapd-utils/description
378 This package contains a command line utility to control the
379 IEEE 802.1x/WPA/EAP/RADIUS Authenticator.
380 endef
381
382 define Package/wpa-cli
383 SECTION:=net
384 CATEGORY:=Network
385 SUBMENU:=WirelessAPD
386 DEPENDS:=@$(subst $(space),||,$(foreach pkg,$(SUPPLICANT_PROVIDERS),PACKAGE_$(pkg)))
387 TITLE:=WPA Supplicant command line control utility
388 endef
389
390 define Package/eapol-test
391 TITLE:=802.1x authentication test utility
392 SECTION:=net
393 SUBMENU:=WirelessAPD
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 SUBMENU:=WirelessAPD
404 VARIANT:=supplicant-full-openssl
405 CONFLICTS:=$(filter-out eapol-test-openssl ,$(EAPOL_TEST_PROVIDERS))
406 DEPENDS:=$(DRV_DEPENDS) +libubus +libopenssl
407 PROVIDES:=eapol-test
408 endef
409
410 define Package/eapol-test-wolfssl
411 TITLE:=802.1x authentication test utility
412 SECTION:=net
413 CATEGORY:=Network
414 SUBMENU:=WirelessAPD
415 VARIANT:=supplicant-full-wolfssl
416 CONFLICTS:=$(filter-out eapol-test-openssl ,$(filter-out eapol-test-wolfssl ,$(EAPOL_TEST_PROVIDERS)))
417 DEPENDS:=$(DRV_DEPENDS) +libubus +libwolfssl
418 PROVIDES:=eapol-test
419 endef
420
421
422 ifneq ($(wildcard $(PKG_BUILD_DIR)/.config_*),$(subst .configured_,.config_,$(STAMP_CONFIGURED)))
423 define Build/Configure/rebuild
424 $(FIND) $(PKG_BUILD_DIR) -name \*.o -or -name \*.a | $(XARGS) rm -f
425 rm -f $(PKG_BUILD_DIR)/hostapd/hostapd
426 rm -f $(PKG_BUILD_DIR)/wpa_supplicant/wpa_supplicant
427 rm -f $(PKG_BUILD_DIR)/.config_*
428 touch $(subst .configured_,.config_,$(STAMP_CONFIGURED))
429 endef
430 endif
431
432 define Build/Configure
433 $(Build/Configure/rebuild)
434 $(if $(wildcard ./files/hostapd-$(CONFIG_VARIANT).config), \
435 $(CP) ./files/hostapd-$(CONFIG_VARIANT).config $(PKG_BUILD_DIR)/hostapd/.config \
436 )
437 $(CP) ./files/wpa_supplicant-$(CONFIG_VARIANT).config $(PKG_BUILD_DIR)/wpa_supplicant/.config
438 endef
439
440 TARGET_CPPFLAGS := \
441 -I$(STAGING_DIR)/usr/include/libnl-tiny \
442 -I$(PKG_BUILD_DIR)/src/crypto \
443 $(TARGET_CPPFLAGS) \
444 -DCONFIG_LIBNL20 \
445 -D_GNU_SOURCE \
446 $(if $(CONFIG_WPA_MSG_MIN_PRIORITY),-DCONFIG_MSG_MIN_PRIORITY=$(CONFIG_WPA_MSG_MIN_PRIORITY))
447
448 TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
449 TARGET_LDFLAGS += -Wl,--gc-sections -flto=jobserver -fuse-linker-plugin -lubox -lubus
450
451 ifdef CONFIG_PACKAGE_kmod-cfg80211
452 TARGET_LDFLAGS += -lm -lnl-tiny
453 endif
454
455 ifdef CONFIG_WPA_ENABLE_WEP
456 DRIVER_MAKEOPTS += CONFIG_WEP=y
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 $(1)/etc/hotplug.d/ieee80211 $(1)/etc/init.d
541 $(INSTALL_DATA) ./files/hostapd.sh $(1)/lib/netifd/hostapd.sh
542 $(INSTALL_BIN) ./files/wpad.init $(1)/etc/init.d/wpad
543 $(INSTALL_BIN) ./files/wps-hotplug.sh $(1)/etc/rc.button/wps
544 endef
545
546 define Package/hostapd/install
547 $(call Install/hostapd,$(1))
548 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd/hostapd $(1)/usr/sbin/
549 endef
550 Package/hostapd-basic/install = $(Package/hostapd/install)
551 Package/hostapd-mini/install = $(Package/hostapd/install)
552 Package/hostapd-openssl/install = $(Package/hostapd/install)
553 Package/hostapd-wolfssl/install = $(Package/hostapd/install)
554
555 ifneq ($(LOCAL_TYPE),supplicant)
556 define Package/hostapd-utils/install
557 $(INSTALL_DIR) $(1)/usr/sbin
558 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd/hostapd_cli $(1)/usr/sbin/
559 endef
560 endif
561
562 define Package/wpad/install
563 $(call Install/hostapd,$(1))
564 $(call Install/supplicant,$(1))
565 $(INSTALL_BIN) $(PKG_BUILD_DIR)/wpad $(1)/usr/sbin/
566 $(LN) wpad $(1)/usr/sbin/hostapd
567 $(LN) wpad $(1)/usr/sbin/wpa_supplicant
568 endef
569 Package/wpad-basic/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-mini))
626 $(eval $(call BuildPackage,wpad-openssl))
627 $(eval $(call BuildPackage,wpad-wolfssl))
628 $(eval $(call BuildPackage,wpa-supplicant))
629 $(eval $(call BuildPackage,wpa-supplicant-mesh-openssl))
630 $(eval $(call BuildPackage,wpa-supplicant-mesh-wolfssl))
631 $(eval $(call BuildPackage,wpa-supplicant-basic))
632 $(eval $(call BuildPackage,wpa-supplicant-mini))
633 $(eval $(call BuildPackage,wpa-supplicant-p2p))
634 $(eval $(call BuildPackage,wpa-supplicant-openssl))
635 $(eval $(call BuildPackage,wpa-supplicant-wolfssl))
636 $(eval $(call BuildPackage,wpa-cli))
637 $(eval $(call BuildPackage,hostapd-utils))
638 $(eval $(call BuildPackage,hostapd-common))
639 $(eval $(call BuildPackage,eapol-test))
640 $(eval $(call BuildPackage,eapol-test-openssl))
641 $(eval $(call BuildPackage,eapol-test-wolfssl))