[PATCH] hostapd: add a hostapd-basic-openssl variant
Daniel Golle
daniel at makrotopia.org
Thu Oct 29 12:16:13 EDT 2020
On Thu, Oct 29, 2020 at 11:10:05AM +0000, Rui Salvaterra wrote:
> 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.
Please do the same for wpad-basic as well, just to be consistent.
>
> Sizes of hostapd on ath79 (74Kc -O2):
> 811781 bytes (hostapd-full)
> 531573 bytes (hostapd-basic-openssl)
It doesn't really make sense to compare those.
Better compare hostapd-basic vs. hostapd-basic-wolfssl vs.
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
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list