2019-06-25 11:12:58 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2017 Cavium, Inc
|
2018-05-15 09:49:22 +00:00
|
|
|
#
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
2018-05-15 09:49:22 +00:00
|
|
|
LIB = librte_mempool_octeontx.a
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
2019-06-25 11:12:58 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx/
|
2020-06-18 16:55:50 +00:00
|
|
|
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
2017-04-21 10:43:26 +00:00
|
|
|
|
2020-06-18 16:55:50 +00:00
|
|
|
EXPORT_MAP := rte_mempool_octeontx_version.map
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# all source are stored in SRCS-y
|
|
|
|
#
|
2018-05-15 09:49:22 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL) += octeontx_fpavf.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL) += rte_mempool_octeontx.c
|
2017-04-21 10:43:26 +00:00
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
|
|
|
|
CFLAGS_rte_mempool_octeontx.o += -fno-prefetch-loop-arrays
|
|
|
|
|
|
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 46 && echo 1), 1)
|
|
|
|
CFLAGS_rte_mempool_octeontx.o += -Ofast
|
|
|
|
else
|
|
|
|
CFLAGS_rte_mempool_octeontx.o += -O3 -ffast-math
|
|
|
|
endif
|
|
|
|
|
|
|
|
else
|
|
|
|
CFLAGS_rte_mempool_octeontx.o += -Ofast
|
|
|
|
endif
|
2017-04-21 10:43:26 +00:00
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
LDLIBS += -lrte_eal -lrte_mempool -lrte_ring -lrte_mbuf
|
2019-06-25 11:12:58 +00:00
|
|
|
LDLIBS += -lrte_bus_pci -lrte_common_octeontx
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|