aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/wolfssl/Makefile
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2022-04-19 18:23:05 -0300
committerHauke Mehrtens <hauke@hauke-m.de>2022-06-09 00:06:55 +0200
commit50b6f5604b158138878955cf6ce745381129ed05 (patch)
tree107ecfc43c607d93a88c2f23cec1d4fc87722d03 /package/libs/wolfssl/Makefile
parentf4b7541b22ec68a6ac6083cd91951a4e3a4e1827 (diff)
downloadupstream-50b6f5604b158138878955cf6ce745381129ed05.tar.gz
upstream-50b6f5604b158138878955cf6ce745381129ed05.tar.bz2
upstream-50b6f5604b158138878955cf6ce745381129ed05.zip
wolfssl: add benchmark utility
This packages the wolfssl benchmark utility. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com> (cherry picked from commit 18fd12edb810f9dfbf8410bb81f639df052134cb)
Diffstat (limited to 'package/libs/wolfssl/Makefile')
-rw-r--r--package/libs/wolfssl/Makefile26
1 files changed, 23 insertions, 3 deletions
diff --git a/package/libs/wolfssl/Makefile b/package/libs/wolfssl/Makefile
index 46bf52795b..9283737542 100644
--- a/package/libs/wolfssl/Makefile
+++ b/package/libs/wolfssl/Makefile
@@ -49,12 +49,16 @@ PKG_CONFIG_DEPENDS+=\
include $(INCLUDE_DIR)/package.mk
-define Package/libwolfssl
+define Package/libwolfssl/Default
SECTION:=libs
SUBMENU:=SSL
CATEGORY:=Libraries
- TITLE:=wolfSSL library
URL:=http://www.wolfssl.com/
+endef
+
+define Package/libwolfssl
+$(call Package/libwolfssl/Default)
+ TITLE:=wolfSSL library
MENU:=1
PROVIDES:=libcyassl
DEPENDS:=+WOLFSSL_HAS_DEVCRYPTO:kmod-cryptodev +WOLFSSL_HAS_AFALG:kmod-crypto-user
@@ -70,6 +74,16 @@ define Package/libwolfssl/config
source "$(SOURCE)/Config.in"
endef
+define Package/libwolfssl-benchmark
+$(call Package/libwolfssl/Default)
+ TITLE:=wolfSSL Benchmark Utility
+ DEPENDS:=libwolfssl
+endef
+
+define Package/libwolfssl-benchmark/description
+This is the wolfssl benchmark utility.
+endef
+
TARGET_CFLAGS += \
$(FPIC) \
-fomit-frame-pointer \
@@ -88,7 +102,7 @@ CONFIGURE_ARGS += \
--enable-sni \
--enable-stunnel \
--enable-altcertchains \
- --disable-crypttests \
+ --$(if $(CONFIG_PACKAGE_libwolfssl-benchmark),enable,disable)-crypttests \
--disable-examples \
--disable-jobserver \
--$(if $(CONFIG_IPV6),enable,disable)-ipv6 \
@@ -136,4 +150,10 @@ define Package/libwolfssl/install
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libwolfssl.so.* $(1)/usr/lib/
endef
+define Package/libwolfssl-benchmark/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(CP) $(PKG_BUILD_DIR)/wolfcrypt/benchmark/.libs/benchmark $(1)/usr/bin/wolfssl-benchmark
+endef
+
$(eval $(call BuildPackage,libwolfssl))
+$(eval $(call BuildPackage,libwolfssl-benchmark))