1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
5 include $(RTE_SDK)/mk/rte.vars.mk
8 LIB = librte_rawdev_octeontx2_ep.a
12 CFLAGS += $(WERROR_FLAGS)
14 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2/
15 CFLAGS += -I$(RTE_SDK)/drivers/raw/octeontx2_ep/
18 LDLIBS += -lrte_rawdev
19 LDLIBS += -lrte_bus_pci
20 LDLIBS += -lrte_mempool
21 LDLIBS += -lrte_common_octeontx2
23 ifneq ($(CONFIG_RTE_ARCH_64),y)
24 CFLAGS += -Wno-int-to-pointer-cast
25 CFLAGS += -Wno-pointer-to-int-cast
26 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
27 CFLAGS += -diag-disable 2259
31 EXPORT_MAP := rte_rawdev_octeontx2_ep_version.map
34 # All source are stored in SRCS-y
36 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EP_RAWDEV) += otx2_ep_rawdev.c
37 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EP_RAWDEV) += otx2_ep_enqdeq.c
38 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EP_RAWDEV) += otx2_ep_test.c
39 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EP_RAWDEV) += otx2_ep_vf.c
42 include $(RTE_SDK)/mk/rte.lib.mk