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/cpt
14 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2
15 CFLAGS += -I$(RTE_SDK)/drivers/crypto/octeontx2
16 CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
17 CFLAGS += -I$(RTE_SDK)/drivers/net/octeontx2
19 ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
20 CFLAGS += -flax-vector-conversions
23 ifneq ($(CONFIG_RTE_ARCH_64),y)
24 CFLAGS += -Wno-int-to-pointer-cast
25 CFLAGS += -Wno-pointer-to-int-cast
26 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
27 CFLAGS += -diag-disable 2259
31 EXPORT_MAP := rte_pmd_octeontx2_version.map
34 # all source are stored in SRCS-y
36 SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX2_PMD) += \
59 LDLIBS += -lrte_common_octeontx2 -lrte_mempool_octeontx2 -lrte_eal -lrte_net
60 LDLIBS += -lrte_ethdev -lrte_bus_pci -lrte_kvargs -lrte_mbuf -lrte_mempool -lm
61 LDLIBS += -lrte_cryptodev -lrte_eventdev -lrte_security
63 include $(RTE_SDK)/mk/rte.lib.mk