Added new meson.build file for KASUMI
Exported dependency library path through meson_options.txt file
Signed-off-by: Hari Kumar Vemula <hari.kumarx.vemula@intel.com>
---
drivers/crypto/kasumi/meson.build | 18 ++++++++++++++++++
drivers/crypto/meson.build | 2 +-
meson_options.txt | 2 ++
3 files changed, 21 insertions(+), 1 deletion(-)
create mode 100644 drivers/crypto/kasumi/meson.build
new file mode 100644
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+path = get_option('libsso_kasumi_dir')
+lib_dir = path + '/build'
+inc_dir = path + '/include'
+
+lib = cc.find_library('libsso_kasumi', dirs: lib_dir, required: false)
+if not lib.found()
+ build = false
+else
+ ext_deps += lib
+ includes += include_directories(inc_dir)
+endif
+
+sources = files('rte_kasumi_pmd.c', 'rte_kasumi_pmd_ops.c')
+
+deps += ['bus_vdev']
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
-drivers = ['aesni_gcm', 'aesni_mb', 'ccp', 'dpaa_sec', 'dpaa2_sec', 'mvsam',
+drivers = ['aesni_gcm', 'aesni_mb', 'ccp', 'dpaa_sec', 'dpaa2_sec', 'kasumi', 'mvsam',
'null', 'openssl', 'qat', 'scheduler', 'virtio']
std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps
@@ -26,3 +26,5 @@ option('tests', type: 'boolean', value: true,
description: 'build unit tests')
option('lib_IPSec_MB', type: 'string', value: '',
description: 'path to the IPSec_MB library installation directory')
+option('libsso_kasumi_dir', type: 'string', value: '',
+ description: 'path to the KASUMI library installation directory')