wolfssl: add benchmark utility
This packages the wolfssl benchmark utility. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
parent
677774d445
commit
18fd12edb8
@ -49,12 +49,16 @@ PKG_CONFIG_DEPENDS+=\
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/libwolfssl
|
define Package/libwolfssl/Default
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
SUBMENU:=SSL
|
SUBMENU:=SSL
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE:=wolfSSL library
|
|
||||||
URL:=http://www.wolfssl.com/
|
URL:=http://www.wolfssl.com/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libwolfssl
|
||||||
|
$(call Package/libwolfssl/Default)
|
||||||
|
TITLE:=wolfSSL library
|
||||||
MENU:=1
|
MENU:=1
|
||||||
PROVIDES:=libcyassl
|
PROVIDES:=libcyassl
|
||||||
DEPENDS:=+WOLFSSL_HAS_DEVCRYPTO:kmod-cryptodev +WOLFSSL_HAS_AFALG:kmod-crypto-user
|
DEPENDS:=+WOLFSSL_HAS_DEVCRYPTO:kmod-cryptodev +WOLFSSL_HAS_AFALG:kmod-crypto-user
|
||||||
@ -70,6 +74,16 @@ define Package/libwolfssl/config
|
|||||||
source "$(SOURCE)/Config.in"
|
source "$(SOURCE)/Config.in"
|
||||||
endef
|
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 += \
|
TARGET_CFLAGS += \
|
||||||
$(FPIC) \
|
$(FPIC) \
|
||||||
-fomit-frame-pointer \
|
-fomit-frame-pointer \
|
||||||
@ -88,7 +102,7 @@ CONFIGURE_ARGS += \
|
|||||||
--enable-sni \
|
--enable-sni \
|
||||||
--enable-stunnel \
|
--enable-stunnel \
|
||||||
--enable-altcertchains \
|
--enable-altcertchains \
|
||||||
--disable-crypttests \
|
--$(if $(CONFIG_PACKAGE_libwolfssl-benchmark),enable,disable)-crypttests \
|
||||||
--disable-examples \
|
--disable-examples \
|
||||||
--disable-jobserver \
|
--disable-jobserver \
|
||||||
--$(if $(CONFIG_IPV6),enable,disable)-ipv6 \
|
--$(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/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libwolfssl.so.* $(1)/usr/lib/
|
||||||
endef
|
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))
|
||||||
|
$(eval $(call BuildPackage,libwolfssl-benchmark))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user