From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0045.outbound.protection.outlook.com [104.47.36.45]) by dpdk.org (Postfix) with ESMTP id 5D18811F5 for ; Tue, 29 Aug 2017 09:04:10 +0200 (CEST) Received: from BN6PR03CA0070.namprd03.prod.outlook.com (10.173.137.32) by CY1PR03MB2268.namprd03.prod.outlook.com (10.166.207.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9; Tue, 29 Aug 2017 07:04:09 +0000 Received: from BL2FFO11FD022.protection.gbl (2a01:111:f400:7c09::125) by BN6PR03CA0070.outlook.office365.com (2603:10b6:404:4c::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9 via Frontend Transport; Tue, 29 Aug 2017 07:04:09 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD022.mail.protection.outlook.com (10.173.161.101) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Tue, 29 Aug 2017 07:04:08 +0000 Received: from netperf2.ap.freescale.net ([10.232.133.164]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v7T745b5011240; Tue, 29 Aug 2017 00:04:06 -0700 From: Akhil Goyal To: , CC: , , Akhil Goyal Date: Tue, 29 Aug 2017 12:32:05 +0530 Message-ID: <20170829070205.11497-1-akhil.goyal@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170728110738.28922-2-akhil.goyal@nxp.com> References: <20170728110738.28922-2-akhil.goyal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131484638490003306; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(85426001)(77096006)(104016004)(50226002)(8676002)(33646002)(81156014)(81166006)(5660300001)(8936002)(8656003)(189998001)(106466001)(86362001)(97736004)(50466002)(105606002)(48376002)(47776003)(2950100002)(2906002)(68736007)(54906002)(5003940100001)(53936002)(305945005)(4326008)(1076002)(356003)(626005)(50986999)(76176999)(36756003)(498600001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2268; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD022; 1:IgVzedcw+mz43Vd5cs0J+mtTCZPC/Jn9QOflgfJ5NsKWU7ir0USiKF3kuQ23ERED4oKfHk9zAgTFz0vAeG4+MAjM0n6jLiUvG61zBoS/YjXYPR0nginJNDYwd3Gv01fx MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 49646a6d-9732-445d-076a-08d4eeac2515 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR03MB2268; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2268; 3:1HLa8LcdRcZ6cIWJGZnOK9cPOirAQ/Fma+JWHmhOANFwcMO6avW9y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nyG4WKzeu+V78hb9ERAKxB/UR+q74vQY/avR0yfA/+aab2X25kArgKxrlOarE0EfO7NHVzCHpzB2Y3EcwHYPh7dsxB0Bf28WQ5cRa260JaxB3d3TcBoJsp7eHrT+u+ICsMdCAN5qv7go9s40Ec/b3QcxWuHnSCojjziYZHf/hV2obJcx+YTz6/YDOqU8fYoce9gDvA= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123556025)(20161123559100)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2268; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2268; X-Forefront-PRVS: 0414DF926F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2268; 23:8LwUiEqyLhJx8XdI8HBLxCZEYrymCoUDrnvWUWWUc?= =?us-ascii?Q?MVTY/5xKyeoCBzIh72BQDAKxqldXaSSzI6iYTGdOE5G+C7v0oGEROI2BOFsr?= =?us-ascii?Q?ebLSksl28/F6NL56PQTr55Zs555sg8h5URl+J/iayLzl+hzFE5Om1Ktri74M?= =?us-ascii?Q?4Xs7qwQqB+z1RaDhMeDxhUQroCSOWq9G+J7h1hMhAL7BY8vH5qAHNiW1ZMsx?= =?us-ascii?Q?K4uBhD0mZyday3kL8nl8jXddLGttLnbmOvhxIBUjwDuNws6dKr6t3LjBiQ8S?= =?us-ascii?Q?8ZXn2Ik71A+D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7xZZSrBIwFbLd+IyU4dET18az3+7DInZ7ek7txqqKYsMLh61qKDD5H0QeQWQm2tqs904KcPatDuj2KMIv1Db9ITs56zJT9dJPws2qnZqMkrPPuHVg0fTfJ+M+pbbjTSaHxcdNh4gu/SGGWE05qPsvJTU2KfKS8T9pn7RczMCs7cugojVSAycCh5mGDDohU6pUnz7j+3h1vOxsJGGXwlS+KzdKgh/fxTyaKohFpgIwGTEVTmfGp6+1HI8yt9Of/2ZgcCIs8nFuqGpNIjFUtyUTia9c68g==; 5:zCOerNdLo9HjZFuwmxeICgnOZwTNlUswzU2BDwIGajVptsrQHe2eGDaRrr5BE8ocqvy4L9je/KdeWr8/R5UMoTDCN/W39suVa+wpQ/DDAG6wdBWz3foYyJxkazYvUDp1e70z5uF8PLgLAwWb/De3GA==; 24:zKBsHBZzwvqW3aPqwdE/AsBtzGIoKZPbtjNm5rpFMnLXjRquywoyt4oheyu/D6R9FynrClzA6J50M1+/0mEQgAfUDSD0J/H2M3yH/Fkpk30=; 7:L8Ln8J3GW+A5Fb5K0IJY+rmdLh3596/PetmLtPlThDLTeBax7X44m6Yc24rtGfhSYBQZvot0aCg9XF+3adchlXi13+P1OzSqg4P+MZeHJHe4xTLBtvUQr88c3ntI5eo7E/KwR5y227Rvf/JzHDLi4r5r2KUWo0Q1c6D4duTh75cI7Q4BWU6hRmEVPvnU5yqysaDCn2QNlyu3rXWW8e+wX9RMnzBvq98T2xN1FYScd1E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2017 07:04:08.8287 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2268 Subject: [dpdk-dev] [PATCH v2] crypto/openssl: add openssl path for cross compile X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2017 07:04:10 -0000 OPENSSL_PATH should be defined in case openssl driver is cross compiled Signed-off-by: Akhil Goyal --- changes in v2: made changes to support shared build also. doc/guides/cryptodevs/openssl.rst | 4 ++++ drivers/crypto/openssl/Makefile | 3 ++- mk/rte.app.mk | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/guides/cryptodevs/openssl.rst b/doc/guides/cryptodevs/openssl.rst index f18a456..08cc9ba 100644 --- a/doc/guides/cryptodevs/openssl.rst +++ b/doc/guides/cryptodevs/openssl.rst @@ -88,6 +88,10 @@ sudo apt-get install libc6-dev-i386 (for i686-native-linuxapp-gcc target) This code was also verified on Fedora 24. This code was NOT yet verified on FreeBSD. +In case openssl is cross compiled, openssl can be installed separately +and path for openssl install directory can be given as +export OPENSSL_PATH= + Initialization -------------- diff --git a/drivers/crypto/openssl/Makefile b/drivers/crypto/openssl/Makefile index e5fdfb5..2781a76 100644 --- a/drivers/crypto/openssl/Makefile +++ b/drivers/crypto/openssl/Makefile @@ -35,6 +35,7 @@ LIB = librte_pmd_openssl.a # build flags CFLAGS += -O3 +CFLAGS += -I${OPENSSL_PATH}/include/ CFLAGS += $(WERROR_FLAGS) # library version @@ -44,7 +45,7 @@ LIBABIVER := 1 EXPORT_MAP := rte_pmd_openssl_version.map # external library dependencies -LDLIBS += -lcrypto +LDLIBS += -L${OPENSSL_PATH}/lib/ -lcrypto # library source files SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += rte_openssl_pmd.c diff --git a/mk/rte.app.mk b/mk/rte.app.mk index c25fdd9..ed38f3b 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -151,7 +151,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_MB) += -lrte_pmd_aesni_mb _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_MB) += -L$(AESNI_MULTI_BUFFER_LIB_PATH) -lIPSec_MB _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += -lrte_pmd_aesni_gcm _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += -L$(AESNI_MULTI_BUFFER_LIB_PATH) -lIPSec_MB -_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += -lrte_pmd_openssl -lcrypto +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += -L${OPENSSL_PATH}/lib -lrte_pmd_openssl -lcrypto _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO) += -lrte_pmd_null_crypto _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_QAT) += -lrte_pmd_qat -lcrypto _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_SNOW3G) += -lrte_pmd_snow3g -- 2.9.3