2018-01-08 05:25:16 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2017 Cavium, Inc
|
2017-10-08 12:44:05 +00:00
|
|
|
#
|
2018-01-08 05:25:16 +00:00
|
|
|
|
2017-10-08 12:44:05 +00:00
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
|
|
|
LIB = librte_pmd_octeontx.a
|
|
|
|
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
2018-04-04 14:30:25 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx/
|
2017-10-08 12:44:05 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx/
|
|
|
|
|
|
|
|
EXPORT_MAP := rte_pmd_octeontx_version.map
|
|
|
|
|
|
|
|
OBJS_BASE_DRIVER=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))
|
|
|
|
$(foreach obj, $(OBJS_BASE_DRIVER), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
|
|
|
|
|
|
|
VPATH += $(SRCDIR)/base
|
|
|
|
|
2017-10-08 12:44:08 +00:00
|
|
|
#
|
|
|
|
# all source are stored in SRCS-y
|
|
|
|
#
|
2017-10-08 12:44:26 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx_rxtx.c
|
2017-10-08 12:44:10 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx_pkovf.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx_pkivf.c
|
2017-10-08 12:44:08 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx_bgx.c
|
2017-10-08 12:44:15 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx_ethdev.c
|
2020-03-16 09:33:41 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx_ethdev_ops.c
|
2017-10-08 12:44:08 +00:00
|
|
|
|
2017-10-08 12:44:26 +00:00
|
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
|
|
|
|
CFLAGS_octeontx_rxtx.o += -fno-prefetch-loop-arrays
|
2017-10-25 17:17:46 +00:00
|
|
|
|
|
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 46 && echo 1), 1)
|
|
|
|
CFLAGS_octeontx_rxtx.o += -O3 -Ofast
|
|
|
|
else
|
|
|
|
CFLAGS_octeontx_rxtx.o += -O3 -ffast-math
|
2017-10-08 12:44:26 +00:00
|
|
|
endif
|
2017-10-25 17:17:46 +00:00
|
|
|
|
|
|
|
else
|
2017-10-08 12:44:26 +00:00
|
|
|
CFLAGS_octeontx_rxtx.o += -O3 -Ofast
|
2017-10-25 17:17:46 +00:00
|
|
|
endif
|
2017-10-08 12:44:26 +00:00
|
|
|
|
2017-10-12 16:04:21 +00:00
|
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
2018-04-04 14:30:25 +00:00
|
|
|
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_common_octeontx
|
2017-10-12 16:04:21 +00:00
|
|
|
LDLIBS += -lrte_mempool_octeontx
|
2017-10-08 12:44:05 +00:00
|
|
|
LDLIBS += -lrte_eventdev
|
2017-10-26 10:06:08 +00:00
|
|
|
LDLIBS += -lrte_bus_pci
|
2017-11-07 06:54:21 +00:00
|
|
|
LDLIBS += -lrte_bus_vdev
|
2017-10-08 12:44:05 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|