From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0072.outbound.protection.outlook.com [104.47.33.72]) by dpdk.org (Postfix) with ESMTP id A1CEA330D for ; Tue, 5 Sep 2017 11:05:02 +0200 (CEST) Received: from CY4PR03CA0009.namprd03.prod.outlook.com (10.168.162.19) by BN3PR03MB2258.namprd03.prod.outlook.com (10.166.74.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Tue, 5 Sep 2017 09:05:01 +0000 Received: from BY2FFO11FD036.protection.gbl (2a01:111:f400:7c0c::159) by CY4PR03CA0009.outlook.office365.com (2603:10b6:903:33::19) 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, 5 Sep 2017 09:05:01 +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 BY2FFO11FD036.mail.protection.outlook.com (10.1.14.221) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Tue, 5 Sep 2017 09:05:01 +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 v8594viM010729; Tue, 5 Sep 2017 02:04:58 -0700 From: Akhil Goyal To: , CC: , , Akhil Goyal Date: Tue, 5 Sep 2017 14:32:51 +0530 Message-ID: <20170905090251.4229-1-akhil.goyal@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170829070205.11497-1-akhil.goyal@nxp.com> References: <20170829070205.11497-1-akhil.goyal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131490759013967523; (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)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(498600001)(54906002)(86362001)(50226002)(48376002)(50466002)(76176999)(2950100002)(50986999)(8656003)(97736004)(36756003)(6666003)(1076002)(2906002)(5660300001)(106466001)(5003940100001)(33646002)(81156014)(81166006)(356003)(8676002)(53936002)(105606002)(47776003)(4326008)(104016004)(305945005)(68736007)(8936002)(626005)(189998001)(85426001)(77096006)(50929005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2258; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD036; 1:yZxJxnzLNeGCw/vUJCXAf9QZPCDEpmU1OIwaznqlsIkYYuJuDjIHwLu6QRyPMurhEpCsNesycUdFvscfwH6gYgEsi8NgwhlwmeAYH/e5h2Dx28WxiY4NAleHKuusU6oc MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b8e2cafe-bd5f-4b6d-c543-08d4f43d30ba 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:BN3PR03MB2258; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2258; 3:h5cZWN33B8hIGVAC/CVODAZFaYWQwrDplT4Gy/o3ugee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9lER/uQYFgfakJKZnRqfOJpgLBxOgNRzTZRKcaHbt0boUS4glW5NJUAMGWFjd4C2foe83K2szLzKPf5/X4/AbZNICkVFNEIqMdqbl816Cua+Pi47hv+Loub5rJyfZkzjjjQZNJajHs/sfodpArRtz/sQTDXDnegRzsgSPLbjHZ+2mW/Ptz4A+S7yPGUicCfhXRB77he1XvgtObhgvgZFqfjhaKmjZKAWtK9Hp0tP4HE21r1xPg== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(66839620246622); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(2002001)(6096035)(20161123561025)(20161123565025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123556025)(20161123563025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2258; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2258; X-Forefront-PRVS: 0421BF7135 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2258; 23:eNHLqJa7dW5IlHrRYhXVzr/6PI+eTu0f/Y9Je1mhs?= =?us-ascii?Q?nCn3d3KINkdade/+hmbG79MmuSu1X3m2uwruEONCrbRPKueXJYfOjCwpjPyD?= =?us-ascii?Q?fl7nDy6SS00YxBUUXFwVzSxIZQSyeOxkS6xoUjNsX5QvITq2R8hJ5K2DKRbt?= =?us-ascii?Q?4goWnB0t2JRbYS2Yp+NXPhrKt+eSkRewKmVK6uq1badkGnsV6Iw0TnSu5WHr?= =?us-ascii?Q?JNxp2QOcBMLneazgijJr3KP7v9Quxvapr7ithoISNEvENvT55U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D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2258; 6:zbGl8Wb2qD4tu4gjo743WQQQxYF6fzmM6aGtuelrzR4/ZgjsWjyOjilbvEvoemzfQw6XkJ188Rqyij7PnAp5oSH7lHHgJrV1fuuThqTMgUIpEBgKFWLnJCkTzAZcLdEsyYliH8KSQ/q9ohQw4FO323wyyDsGOCT3JCtc02DE1kHSVHWoix4N66ivxn70nZchK768un+ZCgiJ476HwBRJ3gzp398/zoFfw6vH8DTgmALzLyLTbQUpa4QxW7K+xSs6+IGC0i+VF7GtW0G7JrtGMy2dy5ECcTGuLmVI2/5ulxQ209UMQCxanSaqFGV51c9SjKNdj/mKmacZKVUj2vHmGA==; 5:hZrN2j15PFEucS2k4Dna2JdEsf3hIvHuO+SntwTo78u8ooTIvGuhuRM3pqaqy/vjIFKRBinzwNEsZPLGBzGloq0im66zk2kl+NCXJizRi7H9mIgz5iZTiS0/QDHmgVIEJn4BQ/UMCe0oACSaHac0Rg==; 24:1zVo/59tLFuxIE9/RB7LSLmK9IkX+XpHgm1xnegnRWO8u57L5nt8zAShNXPdnH8hCXKjsvi+xdi7fePQCQONi8LOirkLifKjgHzrOJ8UFio=; 7:GvhcbJ1kZFCGo7iQlwTo/UNDi7hDs2QBHhLur0oDRTUIEnmqEEw4CAQXG6LwJjO2Pa2pJuGUz0M8uGmR5WM1AEIKTaxLd//W8JyoyETKE8qCktMmvv9n2ZVI2tMo4jWeLlHZtG7XFlZhBc69PKxAESVqPnMecoXfMyp6pdzJy4W//I+qwyFDfsPWgpCTzK546xwOtUgzLrk+mkx5ywX7+j7JPPHM741/ney6Mh+rzXY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2017 09:05:01.1939 (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: BN3PR03MB2258 Subject: [dpdk-dev] [PATCH v3] 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, 05 Sep 2017 09:05:03 -0000 OPENSSL_PATH should be defined in case openssl driver is cross compiled Signed-off-by: Akhil Goyal --- changes in v3: make OPENSSL_PATH usage conditional if it is not set as suggested by Pablo doc/guides/cryptodevs/openssl.rst | 4 ++++ drivers/crypto/openssl/Makefile | 7 +++++++ mk/rte.app.mk | 4 ++++ 3 files changed, 15 insertions(+) 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..a6f13e0 100644 --- a/drivers/crypto/openssl/Makefile +++ b/drivers/crypto/openssl/Makefile @@ -35,6 +35,9 @@ LIB = librte_pmd_openssl.a # build flags CFLAGS += -O3 +ifneq ($(OPENSSL_PATH),) +CFLAGS += -I${OPENSSL_PATH}/include/ +endif CFLAGS += $(WERROR_FLAGS) # library version @@ -44,7 +47,11 @@ LIBABIVER := 1 EXPORT_MAP := rte_pmd_openssl_version.map # external library dependencies +ifneq ($(OPENSSL_PATH),) +LDLIBS += -L${OPENSSL_PATH}/lib/ -lcrypto +else LDLIBS += -lcrypto +endif # 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..799aa99 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -151,7 +151,11 @@ _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 +ifeq ($(OPENSSL_PATH),) _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += -lrte_pmd_openssl -lcrypto +else +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OPENSSL) += -L${OPENSSL_PATH}/lib -lrte_pmd_openssl -lcrypto +endif # ($(OPENSSL_PATH),) _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