1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
5 include $(RTE_SDK)/mk/rte.vars.mk
10 LIB = librte_pmd_octeontx2.a
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/net/octeontx2
17 ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
18 CFLAGS += -flax-vector-conversions
21 ifneq ($(CONFIG_RTE_ARCH_64),y)
22 CFLAGS += -Wno-int-to-pointer-cast
23 CFLAGS += -Wno-pointer-to-int-cast
24 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
25 CFLAGS += -diag-disable 2259
29 EXPORT_MAP := rte_pmd_octeontx2_version.map
34 # all source are stored in SRCS-y
36 SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX2_PMD) += \
57 LDLIBS += -lrte_common_octeontx2 -lrte_mempool_octeontx2 -lrte_eal -lrte_net
58 LDLIBS += -lrte_ethdev -lrte_bus_pci -lrte_kvargs -lrte_mbuf -lrte_mempool -lm
60 include $(RTE_SDK)/mk/rte.lib.mk