mempool: introduce helpers for populate and required size
[dpdk.git] / drivers / mempool / octeontx2 / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
3 #
4
5 include $(RTE_SDK)/mk/rte.vars.mk
6
7 #
8 # library name
9 #
10 LIB = librte_mempool_octeontx2.a
11
12 CFLAGS += $(WERROR_FLAGS)
13 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2
14 CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
15 CFLAGS += -I$(RTE_SDK)/drivers/bus/pci
16 CFLAGS += -O3
17
18 ifneq ($(CONFIG_RTE_ARCH_64),y)
19 CFLAGS += -Wno-int-to-pointer-cast
20 CFLAGS += -Wno-pointer-to-int-cast
21 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
22 CFLAGS += -diag-disable 2259
23 endif
24 endif
25
26 CFLAGS += -DALLOW_EXPERIMENTAL_API
27
28 EXPORT_MAP := rte_mempool_octeontx2_version.map
29
30 LIBABIVER := 1
31
32 #
33 # all source are stored in SRCS-y
34 #
35 SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX2_MEMPOOL) += \
36         otx2_mempool_ops.c      \
37         otx2_mempool.c          \
38         otx2_mempool_irq.c      \
39         otx2_mempool_debug.c
40
41 LDLIBS += -lrte_eal -lrte_mempool -lrte_mbuf
42 LDLIBS += -lrte_common_octeontx2 -lrte_kvargs -lrte_bus_pci
43
44 include $(RTE_SDK)/mk/rte.lib.mk