summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Chautru <nicolas.chautru@intel.com>2019-06-19 10:48:38 -0700
committerAkhil Goyal <akhil.goyal@nxp.com>2019-07-05 15:28:14 +0200
commita489f5dbf437e5f262fa560efa88cd221ff572f1 (patch)
treee0d8ee0e138e7dbc5b7119b4785deab622d0002a
parent848bf218b194be7842b461891cbf3e73b95cac64 (diff)
downloaddpdk-a489f5dbf437e5f262fa560efa88cd221ff572f1.zip
dpdk-a489f5dbf437e5f262fa560efa88cd221ff572f1.tar.gz
dpdk-a489f5dbf437e5f262fa560efa88cd221ff572f1.tar.xz
baseband/turbo_sw: support meson build
Turbo_sw PMD driver now building with meson/ninja with or without SDK libraries. Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com> Acked-by: Kamil Chalupnik <kamilx.chalupnik@intel.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
-rw-r--r--drivers/baseband/meson.build2
-rw-r--r--drivers/baseband/turbo_sw/meson.build30
-rw-r--r--meson_options.txt2
3 files changed, 33 insertions, 1 deletions
diff --git a/drivers/baseband/meson.build b/drivers/baseband/meson.build
index 52489df..40a87d2 100644
--- a/drivers/baseband/meson.build
+++ b/drivers/baseband/meson.build
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
-drivers = ['null']
+drivers = ['null', 'turbo_sw']
config_flag_fmt = 'RTE_LIBRTE_@0@_PMD'
driver_name_fmt = 'rte_pmd_@0@'
diff --git a/drivers/baseband/turbo_sw/meson.build b/drivers/baseband/turbo_sw/meson.build
new file mode 100644
index 0000000..438b5a7
--- /dev/null
+++ b/drivers/baseband/turbo_sw/meson.build
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2019 Intel Corporation
+
+path = get_option('flexran_sdk')
+
+if dpdk_conf.has('RTE_BBDEV_SDK_AVX2')
+ lib = cc.find_library('libturbo', dirs: [path + '/lib_turbo'], required: false)
+ if not lib.found()
+ build = false
+ else
+ ext_deps += cc.find_library('libturbo', dirs: [path + '/lib_turbo'], required: true)
+ ext_deps += cc.find_library('libcrc', dirs: [path + '/lib_crc'], required: true)
+ ext_deps += cc.find_library('librate_matching', dirs: [path + '/lib_rate_matching'], required: true)
+ ext_deps += cc.find_library('libcommon', dirs: [path + '/lib_common'], required: true)
+ ext_deps += cc.find_library('libstdc++', required: true)
+ ext_deps += cc.find_library('libirc', required: true)
+ ext_deps += cc.find_library('libimf', required: true)
+ ext_deps += cc.find_library('libipps', required: true)
+ ext_deps += cc.find_library('libsvml', required: true)
+ includes += include_directories(path + '/lib_turbo')
+ includes += include_directories(path + '/lib_crc')
+ includes += include_directories(path + '/lib_rate_matching')
+ includes += include_directories(path + '/lib_common')
+ endif
+endif
+
+deps += ['bbdev', 'bus_vdev', 'ring']
+name = 'bbdev_turbo_sw'
+allow_experimental_apis = true
+sources = files('bbdev_turbo_software.c')
diff --git a/meson_options.txt b/meson_options.txt
index 5302b9c..448f3e6 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -10,6 +10,8 @@ option('enable_kmods', type: 'boolean', value: true,
description: 'build kernel modules')
option('examples', type: 'string', value: '',
description: 'Comma-separated list of examples to build by default')
+option('flexran_sdk', type: 'string', value: '',
+ description: 'Path to FlexRAN SDK optional Libraries for BBDEV device')
option('ibverbs_link', type: 'combo', choices : ['shared', 'dlopen'], value: 'shared',
description: 'Linkage method (shared/dlopen) for Mellanox PMDs with ibverbs dependencies.')
option('include_subdir_arch', type: 'string', value: '',