f-stack/dpdk/drivers/baseband/turbo_sw/meson.build

41 lines
2.1 KiB
Meson
Raw Normal View History

2020-06-18 16:55:50 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2019 Intel Corporation
path = get_option('flexran_sdk')
2021-02-05 08:48:47 +00:00
# check for FlexRAN SDK libraries for AVX2
2023-09-11 06:58:14 +00:00
lib4g = cc.find_library('turbo', dirs: [path + '/lib_turbo'], required: false)
2021-02-05 08:48:47 +00:00
if lib4g.found()
2023-09-11 06:58:14 +00:00
ext_deps += cc.find_library('turbo', dirs: [path + '/lib_turbo'], required: true)
ext_deps += cc.find_library('crc', dirs: [path + '/lib_crc'], required: true)
ext_deps += cc.find_library('rate_matching', dirs: [path + '/lib_rate_matching'], required: true)
ext_deps += cc.find_library('common', dirs: [path + '/lib_common'], required: true)
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)
2022-09-06 04:00:10 +00:00
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')
cflags += ['-DRTE_BBDEV_SDK_AVX2']
2020-06-18 16:55:50 +00:00
endif
2021-02-05 08:48:47 +00:00
# check for FlexRAN SDK libraries for AVX512
lib5g = cc.find_library('libldpc_decoder_5gnr', dirs: [path + '/lib_ldpc_decoder_5gnr'], required: false)
if lib5g.found()
2023-09-11 06:58:14 +00:00
ext_deps += cc.find_library('ldpc_encoder_5gnr', dirs: [path + '/lib_ldpc_encoder_5gnr'], required: true)
ext_deps += cc.find_library('ldpc_decoder_5gnr', dirs: [path + '/lib_ldpc_decoder_5gnr'], required: true)
ext_deps += cc.find_library('LDPC_ratematch_5gnr', dirs: [path + '/lib_LDPC_ratematch_5gnr'], required: true)
ext_deps += cc.find_library('rate_dematching_5gnr', dirs: [path + '/lib_rate_dematching_5gnr'], required: true)
2022-09-06 04:00:10 +00:00
includes += include_directories(path + '/lib_ldpc_encoder_5gnr')
includes += include_directories(path + '/lib_ldpc_decoder_5gnr')
includes += include_directories(path + '/lib_LDPC_ratematch_5gnr')
includes += include_directories(path + '/lib_rate_dematching_5gnr')
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')