Signed-off-by: Ladislav Michl <[email protected]>
---
Changes:
-v2: Drop patches as v1.1 reimplemented cryptodev support
rules/openssl.in | 7 +++++++
rules/openssl.make | 1 +
2 files changed, 8 insertions(+)
diff --git a/rules/openssl.in b/rules/openssl.in
index 096b398d3..2471376be 100644
--- a/rules/openssl.in
+++ b/rules/openssl.in
@@ -4,6 +4,7 @@ menuconfig OPENSSL
tristate
select LIBC_DL
select GCCLIBS_GCC_S
+ select CRYPTODEV if OPENSSL_CRYPTODEV
prompt "openssl "
help
Secure Socket Layer (SSL) binary and related cryptographic tools
@@ -28,4 +29,10 @@ config OPENSSL_BIN
help
Whether to build and install OpenSSL binary.
+config OPENSSL_CRYPTODEV
+ bool
+ prompt "use cryptodev hw acceleration"
+ help
+ Enable the BSD cryptodev engine even if we are not using BSD.
+
endif
diff --git a/rules/openssl.make b/rules/openssl.make
index 9d921d0fa..c0fd0e69b 100644
--- a/rules/openssl.make
+++ b/rules/openssl.make
@@ -68,6 +68,7 @@ OPENSSL_CONF_OPT := \
--libdir=/usr/lib \
--openssldir=/usr/lib/ssl \
shared \
+ $(call ptx/ifdef, PTXCONF_OPENSSL_CRYPTODEV, enable-devcryptoeng,
no-devcryptoeng) \
no-idea \
no-mdc2 \
no-rc5 \
--
2.22.0
_______________________________________________
ptxdist mailing list
[email protected]