[PATCH] hostapd: add a hostapd-basic-openssl variant
Rui Salvaterra
rsalvaterra at gmail.com
Thu Oct 29 07:10:05 EDT 2020
Add an OpenSSL-linked basic variant (which provides WPA-PSK only, 802.11r and
802.11w). For people who don't need the full hostapd but are stuck with
libopenssl for other reasons, this saves quite a bit of space.
Sizes of hostapd on ath79 (74Kc -O2):
811781 bytes (hostapd-full)
531573 bytes (hostapd-basic-openssl)
Signed-off-by: Rui Salvaterra <rsalvaterra at gmail.com>
---
package/network/services/hostapd/Makefile | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile
index bb20b7bcd9..b42818fa95 100644
--- a/package/network/services/hostapd/Makefile
+++ b/package/network/services/hostapd/Makefile
@@ -203,6 +203,17 @@ define Package/hostapd-basic/description
This package contains a basic IEEE 802.1x/WPA Authenticator with WPA-PSK, 802.11r and 802.11w support.
endef
+define Package/hostapd-basic-openssl
+$(call Package/hostapd/Default,$(1))
+ TITLE+= (WPA-PSK, 11r and 11w)
+ VARIANT:=basic-openssl
+ DEPENDS+=+libopenssl
+endef
+
+define Package/hostapd-basic-openssl/description
+ This package contains a basic IEEE 802.1x/WPA Authenticator with WPA-PSK, 802.11r and 802.11w support.
+endef
+
define Package/hostapd-mini
$(call Package/hostapd/Default,$(1))
TITLE+= (WPA-PSK only)
@@ -585,6 +596,7 @@ define Package/hostapd/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd/hostapd $(1)/usr/sbin/
endef
Package/hostapd-basic/install = $(Package/hostapd/install)
+Package/hostapd-basic-openssl/install = $(Package/hostapd/install)
Package/hostapd-hs20/install = $(Package/hostapd/install)
Package/hostapd-mini/install = $(Package/hostapd/install)
Package/hostapd-openssl/install = $(Package/hostapd/install)
@@ -654,6 +666,7 @@ endif
$(eval $(call BuildPackage,hostapd))
$(eval $(call BuildPackage,hostapd-basic))
+$(eval $(call BuildPackage,hostapd-basic-openssl))
$(eval $(call BuildPackage,hostapd-hs20))
$(eval $(call BuildPackage,hostapd-mini))
$(eval $(call BuildPackage,hostapd-openssl))
--
2.29.1
More information about the openwrt-devel
mailing list