2020-06-18 16:55:50 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2019 Intel Corporation
|
|
|
|
|
2023-09-13 12:21:49 +00:00
|
|
|
# check for FlexRAN SDK libraries
|
|
|
|
dep_turbo = dependency('flexran_sdk_turbo', required: false)
|
|
|
|
dep_dec5g = dependency('flexran_sdk_ldpc_decoder_5gnr', required: false)
|
2020-06-18 16:55:50 +00:00
|
|
|
|
2023-09-13 12:21:49 +00:00
|
|
|
if dep_turbo.found()
|
2023-09-11 06:58:14 +00:00
|
|
|
ext_deps += cc.find_library('stdc++', required: true)
|
|
|
|
ext_deps += cc.find_library('irc', required: true)
|
|
|
|
ext_deps += cc.find_library('imf', required: true)
|
|
|
|
ext_deps += cc.find_library('ipps', required: true)
|
|
|
|
ext_deps += cc.find_library('svml', required: true)
|
2023-09-13 12:21:49 +00:00
|
|
|
ext_deps += dep_turbo
|
|
|
|
ext_deps += dependency('flexran_sdk_crc', required: true)
|
|
|
|
ext_deps += dependency('flexran_sdk_rate_matching', required: true)
|
|
|
|
ext_deps += dependency('flexran_sdk_common', required: true)
|
2022-09-06 04:00:10 +00:00
|
|
|
cflags += ['-DRTE_BBDEV_SDK_AVX2']
|
2020-06-18 16:55:50 +00:00
|
|
|
endif
|
2021-02-05 08:48:47 +00:00
|
|
|
|
2023-09-13 12:21:49 +00:00
|
|
|
if dep_dec5g.found()
|
|
|
|
ext_deps += dep_dec5g
|
|
|
|
ext_deps += dependency('flexran_sdk_ldpc_encoder_5gnr', required: true)
|
|
|
|
ext_deps += dependency('flexran_sdk_LDPC_ratematch_5gnr', required: true)
|
|
|
|
ext_deps += dependency('flexran_sdk_rate_dematching_5gnr', required: true)
|
2022-09-06 04:00:10 +00:00
|
|
|
cflags += ['-DRTE_BBDEV_SDK_AVX512']
|
2020-06-18 16:55:50 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
deps += ['bbdev', 'bus_vdev', 'ring']
|
|
|
|
sources = files('bbdev_turbo_software.c')
|