1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Cavium, Inc
5 include $(RTE_SDK)/mk/rte.vars.mk
10 LIB = librte_pmd_octeontx_ssovf.a
12 CFLAGS += $(WERROR_FLAGS)
13 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx/
14 CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx/
15 CFLAGS += -I$(RTE_SDK)/drivers/net/octeontx/
17 LDLIBS += -lrte_eal -lrte_eventdev -lrte_common_octeontx -lrte_pmd_octeontx
18 LDLIBS += -lrte_bus_pci -lrte_mempool -lrte_mbuf -lrte_kvargs
19 LDLIBS += -lrte_bus_vdev -lrte_ethdev
21 EXPORT_MAP := rte_pmd_octeontx_event_version.map
26 # all source are stored in SRCS-y
28 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_worker.c
29 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_evdev.c
30 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_evdev_selftest.c
31 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_probe.c
32 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += timvf_worker.c
33 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += timvf_evdev.c
34 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += timvf_probe.c
36 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
37 CFLAGS_ssovf_worker.o += -fno-prefetch-loop-arrays
38 CFLAGS_timvf_worker.o += -fno-prefetch-loop-arrays
40 ifeq ($(shell test $(GCC_VERSION) -ge 46 && echo 1), 1)
41 CFLAGS_ssovf_worker.o += -Ofast
42 CFLAGS_timvf_worker.o += -Ofast
44 CFLAGS_ssovf_worker.o += -O3 -ffast-math
45 CFLAGS_timvf_worker.o += -O3 -ffast-math
49 CFLAGS_ssovf_worker.o += -Ofast
50 CFLAGS_timvf_worker.o += -Ofast
53 include $(RTE_SDK)/mk/rte.lib.mk