crypto/ccp: add meson build
authorRavi Kumar <ravi1.kumar@amd.com>
Thu, 3 May 2018 07:19:23 +0000 (03:19 -0400)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 8 May 2018 20:26:07 +0000 (22:26 +0200)
Signed-off-by: Ravi Kumar <Ravi1.kumar@amd.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/crypto/ccp/meson.build [new file with mode: 0644]
drivers/crypto/meson.build

diff --git a/drivers/crypto/ccp/meson.build b/drivers/crypto/ccp/meson.build
new file mode 100644 (file)
index 0000000..e43b005
--- /dev/null
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Advanced Micro Devices, Inc. All rights reserved.
+
+if host_machine.system() != 'linux'
+        build = false
+endif
+dep = dependency('libcrypto', required: false)
+if not dep.found()
+       build = false
+endif
+deps += 'bus_vdev'
+deps += 'bus_pci'
+
+sources = files('rte_ccp_pmd.c',
+               'ccp_crypto.c',
+               'ccp_dev.c',
+               'ccp_pci.c',
+               'ccp_pmd_ops.c')
+
+ext_deps += dep
+pkgconfig_extra_libs += '-lcrypto'
index 7b3ec13..d64ca41 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-drivers = ['dpaa_sec', 'dpaa2_sec', 'mvsam',
+drivers = ['ccp', 'dpaa_sec', 'dpaa2_sec', 'mvsam',
        'null', 'openssl', 'qat', 'virtio']
 
 std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps