[dpdk-dev] [PATCH 1/3] crypto/snow3g: add to meson build
Bruce Richardson
bruce.richardson at intel.com
Wed May 1 17:53:27 CEST 2019
Snow3G driver is missing support for building with meson. Add a new
meson.build file so it can be included in the builds.
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/crypto/meson.build | 2 +-
drivers/crypto/snow3g/meson.build | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
create mode 100644 drivers/crypto/snow3g/meson.build
diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build
index bf1bd9286..83e78860e 100644
--- a/drivers/crypto/meson.build
+++ b/drivers/crypto/meson.build
@@ -3,7 +3,7 @@
drivers = ['aesni_gcm', 'aesni_mb', 'caam_jr', 'ccp', 'dpaa_sec', 'dpaa2_sec',
'kasumi', 'mvsam', 'null', 'octeontx', 'openssl', 'qat', 'scheduler',
- 'virtio', 'zuc']
+ 'snow3g', 'virtio', 'zuc']
std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps
config_flag_fmt = 'RTE_LIBRTE_ at 0@_PMD'
diff --git a/drivers/crypto/snow3g/meson.build b/drivers/crypto/snow3g/meson.build
new file mode 100644
index 000000000..c566a5f67
--- /dev/null
+++ b/drivers/crypto/snow3g/meson.build
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2019 Intel Corporation
+
+lib = cc.find_library('sso_snow3g', required: false)
+if not lib.found() or not cc.has_header('sso_snow3g.h')
+ build = false
+ subdir_done()
+endif
+
+allow_experimental_apis = true
+ext_deps += lib
+sources = files('rte_snow3g_pmd.c', 'rte_snow3g_pmd_ops.c')
+deps += ['bus_vdev', 'cryptodev']
--
2.21.0
More information about the dev
mailing list