From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5F331A0536; Thu, 23 Jan 2020 04:46:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B64CC49DF; Thu, 23 Jan 2020 04:46:25 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 444D7493D for ; Thu, 23 Jan 2020 04:46:24 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BEA911FB; Wed, 22 Jan 2020 19:46:23 -0800 (PST) Received: from net-arm-thunderx2-02.shanghai.arm.com (net-arm-thunderx2-02.shanghai.arm.com [10.169.40.171]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E1B843F52E; Wed, 22 Jan 2020 19:46:21 -0800 (PST) From: Ruifeng Wang To: akhil.goyal@nxp.com, gavin.hu@arm.com Cc: dev@dpdk.org, jerinj@marvell.com, honnappa.nagarahalli@arm.com, nd@arm.com, Dharmik Thakkar Date: Thu, 23 Jan 2020 11:45:54 +0800 Message-Id: <20200123034557.146822-3-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200123034557.146822-1-ruifeng.wang@arm.com> References: <20191210082814.1509-1-ruifeng.wang@arm.com> <20200123034557.146822-1-ruifeng.wang@arm.com> Subject: [dpdk-dev] [PATCH v3 2/5] crypto/armv8: enable meson build 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Dharmik Thakkar Add new meson.build file for crypto/armv8 Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Tested-by: Ruifeng Wang --- drivers/crypto/armv8/meson.build | 25 +++++++++++++++++++++++++ drivers/crypto/meson.build | 1 + meson_options.txt | 2 ++ 3 files changed, 28 insertions(+) create mode 100644 drivers/crypto/armv8/meson.build diff --git a/drivers/crypto/armv8/meson.build b/drivers/crypto/armv8/meson.build new file mode 100644 index 000000000..6ecb78b42 --- /dev/null +++ b/drivers/crypto/armv8/meson.build @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Arm Limited + +path = get_option('armv8_crypto_dir') +if path == '' + build = false + reason = 'missing dependency, "armv8_crypto"' + subdir_done() +endif + +inc_dir = path + +lib = cc.find_library('libAArch64crypto', dirs: [path], required: false) +if not lib.found() + build = false + reason = 'missing dependency, "AArch64crypto"' + subdir_done() +else + ext_deps += lib + includes += include_directories(inc_dir) +endif + +deps += ['bus_vdev'] +sources = files('rte_armv8_pmd.c', 'rte_armv8_pmd_ops.c') +allow_experimental_apis = true diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index 229debdfe..7fa1fbe26 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -3,6 +3,7 @@ drivers = ['aesni_gcm', 'aesni_mb', + 'armv8', 'caam_jr', 'ccp', 'dpaa_sec', diff --git a/meson_options.txt b/meson_options.txt index 53dfe13c3..20be15fe6 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,5 +1,7 @@ # Please keep these options sorted alphabetically. +option('armv8_crypto_dir', type: 'string', value: '', + description: 'path to the armv8_crypto library installation directory') option('disable_drivers', type: 'string', value: '', description: 'Comma-separated list of drivers to explicitly disable.') option('drivers_install_subdir', type: 'string', value: 'dpdk/pmds-', -- 2.17.1