From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1hxAGN-0002Gw-CQ for ptxdist@pengutronix.de; Mon, 12 Aug 2019 15:21:27 +0200 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23992363AbfHLNV1O40Fy (ORCPT ); Mon, 12 Aug 2019 15:21:27 +0200 Date: Mon, 12 Aug 2019 15:21:25 +0200 From: Ladislav Michl Message-ID: <20190812132125.GD23382@lenoch> References: <20190812131914.GA23382@lenoch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190812131914.GA23382@lenoch> Subject: [ptxdist] [PATCH v2 3/3] openssl: add cryptodev support List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Signed-off-by: Ladislav Michl --- 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 ptxdist@pengutronix.de