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