From: Dharmik Thakkar <dharmik.thakkar@arm.com>
To: Jerin Jacob <jerinj@marvell.com>,
Bruce Richardson <bruce.richardson@intel.com>
Cc: dev@dpdk.org, honnappa.nagarahalli@arm.com,
Dharmik Thakkar <dharmik.thakkar@arm.com>
Subject: [dpdk-dev] [PATCH] crypto/armv8: enable meson build
Date: Thu, 3 Oct 2019 22:57:32 +0000 [thread overview]
Message-ID: <20191003225732.13463-1-dharmik.thakkar@arm.com> (raw)
Add new meson.build file for crypto/armv8
Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
---
drivers/crypto/armv8/meson.build | 25 +++++++++++++++++++++++++
drivers/crypto/meson.build | 6 +++---
meson_options.txt | 2 ++
3 files changed, 30 insertions(+), 3 deletions(-)
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 000000000000..1ef78fa5d8c7
--- /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 + '/asm/include'
+
+lib = cc.find_library('libarmv8_crypto', dirs: [path], required: false)
+if not lib.found()
+ build = false
+ reason = 'missing dependency, "armv8_crypto"'
+ 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 83e78860ebee..605dcdd5f4d6 100644
--- a/drivers/crypto/meson.build
+++ b/drivers/crypto/meson.build
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
-drivers = ['aesni_gcm', 'aesni_mb', 'caam_jr', 'ccp', 'dpaa_sec', 'dpaa2_sec',
- 'kasumi', 'mvsam', 'null', 'octeontx', 'openssl', 'qat', 'scheduler',
- 'snow3g', 'virtio', 'zuc']
+drivers = ['aesni_gcm', 'aesni_mb', 'armv8', 'caam_jr', 'ccp', 'dpaa_sec',
+ 'dpaa2_sec', 'kasumi', 'mvsam', 'null', 'octeontx', 'openssl', 'qat',
+ 'scheduler', 'snow3g', 'virtio', 'zuc']
std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps
config_flag_fmt = 'RTE_LIBRTE_@0@_PMD'
diff --git a/meson_options.txt b/meson_options.txt
index 448f3e63dcf2..4c0413918a34 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -2,6 +2,8 @@
option('allow_invalid_socket_id', type: 'boolean', value: false,
description: 'allow out-of-range NUMA socket id\'s for platforms that don\'t report the value correctly')
+option('armv8_crypto_dir', type: 'string', value: '',
+ description: 'path to the armv8_crypto library installation directory')
option('drivers_install_subdir', type: 'string', value: 'dpdk/pmds-<VERSION>',
description: 'Subdirectory of libdir where to install PMDs. Defaults to using a versioned subdirectory.')
option('enable_docs', type: 'boolean', value: false,
--
2.17.1
next reply other threads:[~2019-10-03 22:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-03 22:57 Dharmik Thakkar [this message]
2019-10-05 15:28 ` Jerin Jacob
2019-10-06 18:06 ` Thomas Monjalon
2019-10-07 10:19 ` Jerin Jacob
2019-10-08 7:18 ` Jerin Jacob
2019-10-10 4:46 ` Honnappa Nagarahalli
2019-10-10 5:24 ` Jerin Jacob
2019-10-11 19:13 ` Honnappa Nagarahalli
2019-10-11 20:02 ` Jerin Jacob
2019-10-11 20:14 ` Honnappa Nagarahalli
2019-10-11 20:33 ` Jerin Jacob
2019-11-18 7:49 ` Akhil Goyal
2019-11-20 4:41 ` Honnappa Nagarahalli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191003225732.13463-1-dharmik.thakkar@arm.com \
--to=dharmik.thakkar@arm.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=honnappa.nagarahalli@arm.com \
--cc=jerinj@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).