1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
7 LIB = librte_pmd_bbdev_turbo_sw.a
11 CFLAGS += $(WERROR_FLAGS)
12 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring -lrte_kvargs
14 LDLIBS += -lrte_bus_vdev
16 # versioning export map
17 EXPORT_MAP := rte_pmd_bbdev_turbo_sw_version.map
19 # external library dependencies if available
20 ifeq ($(CONFIG_RTE_BBDEV_SDK_AVX2),y)
21 ifeq ($(FLEXRAN_SDK),)
22 $(error "Please define FLEXRAN_SDK environment variable")
24 CFLAGS += -I$(FLEXRAN_SDK)/lib_common
25 CFLAGS += -I$(FLEXRAN_SDK)/lib_turbo
26 CFLAGS += -I$(FLEXRAN_SDK)/lib_crc
27 CFLAGS += -I$(FLEXRAN_SDK)/lib_rate_matching
28 LDLIBS += -L$(FLEXRAN_SDK)/lib_turbo -lturbo
29 LDLIBS += -L$(FLEXRAN_SDK)/lib_crc -lcrc
30 LDLIBS += -L$(FLEXRAN_SDK)/lib_rate_matching -lrate_matching
31 LDLIBS += -L$(FLEXRAN_SDK)/lib_common -lcommon
32 LDLIBS += -lstdc++ -lirc -limf -lipps -lsvml
35 ifeq ($(CONFIG_RTE_BBDEV_SDK_AVX512),y)
36 ifeq ($(CONFIG_RTE_BBDEV_SDK_AVX2),n)
37 $(error "CONFIG_RTE_BBDEV_SDK_AVX512 requires CONFIG_RTE_BBDEV_SDK_AVX2 set")
39 CFLAGS += -I$(FLEXRAN_SDK)/lib_ldpc_encoder_5gnr
40 CFLAGS += -I$(FLEXRAN_SDK)/lib_ldpc_decoder_5gnr
41 CFLAGS += -I$(FLEXRAN_SDK)/lib_LDPC_ratematch_5gnr
42 CFLAGS += -I$(FLEXRAN_SDK)/lib_rate_dematching_5gnr
43 LDLIBS += -L$(FLEXRAN_SDK)/lib_ldpc_encoder_5gnr -lldpc_encoder_5gnr
44 LDLIBS += -L$(FLEXRAN_SDK)/lib_ldpc_decoder_5gnr -lldpc_decoder_5gnr
45 LDLIBS += -L$(FLEXRAN_SDK)/lib_LDPC_ratematch_5gnr -lLDPC_ratematch_5gnr
46 LDLIBS += -L$(FLEXRAN_SDK)/lib_rate_dematching_5gnr -lrate_dematching_5gnr
49 # library source files
50 SRCS-$(CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW) += bbdev_turbo_software.c
52 include $(RTE_SDK)/mk/rte.lib.mk