1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2019 Intel Corporation
4 path = get_option('flexran_sdk')
6 if dpdk_conf.has('RTE_BBDEV_SDK_AVX2')
7 lib = cc.find_library('libturbo', dirs: [path + '/lib_turbo'], required: false)
10 reason = 'missing dependency, "libturbo"'
12 ext_deps += cc.find_library('libturbo', dirs: [path + '/lib_turbo'], required: true)
13 ext_deps += cc.find_library('libcrc', dirs: [path + '/lib_crc'], required: true)
14 ext_deps += cc.find_library('librate_matching', dirs: [path + '/lib_rate_matching'], required: true)
15 ext_deps += cc.find_library('libcommon', dirs: [path + '/lib_common'], required: true)
16 ext_deps += cc.find_library('libstdc++', required: true)
17 ext_deps += cc.find_library('libirc', required: true)
18 ext_deps += cc.find_library('libimf', required: true)
19 ext_deps += cc.find_library('libipps', required: true)
20 ext_deps += cc.find_library('libsvml', required: true)
21 includes += include_directories(path + '/lib_turbo')
22 includes += include_directories(path + '/lib_crc')
23 includes += include_directories(path + '/lib_rate_matching')
24 includes += include_directories(path + '/lib_common')
27 if dpdk_conf.has('RTE_BBDEV_SDK_AVX512')
28 ext_deps += cc.find_library('libldpc_encoder_5gnr', dirs: [path + '/lib_ldpc_encoder_5gnr'], required: true)
29 ext_deps += cc.find_library('libldpc_decoder_5gnr', dirs: [path + '/lib_ldpc_decoder_5gnr'], required: true)
30 ext_deps += cc.find_library('libLDPC_ratematch_5gnr', dirs: [path + '/lib_LDPC_ratematch_5gnr'], required: true)
31 ext_deps += cc.find_library('librate_dematching_5gnr', dirs: [path + '/lib_rate_dematching_5gnr'], required: true)
32 includes += include_directories(path + '/lib_ldpc_encoder_5gnr')
33 includes += include_directories(path + '/lib_ldpc_decoder_5gnr')
34 includes += include_directories(path + '/lib_LDPC_ratematch_5gnr')
35 includes += include_directories(path + '/lib_rate_dematching_5gnr')
38 deps += ['bbdev', 'bus_vdev', 'ring']
39 sources = files('bbdev_turbo_software.c')