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