1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2016 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
9 LIB = librte_pmd_ixgbe.a
11 CFLAGS += -DALLOW_EXPERIMENTAL_API
13 CFLAGS += $(WERROR_FLAGS)
15 EXPORT_MAP := rte_pmd_ixgbe_version.map
19 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
23 CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259
25 CFLAGS_ixgbe_rxtx.o += -wd3656
27 else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
31 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
32 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
38 ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
39 CFLAGS += -Wno-deprecated
40 CFLAGS_ixgbe_common.o += -Wno-unused-but-set-variable
41 CFLAGS_ixgbe_x550.o += -Wno-unused-but-set-variable
43 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
44 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
46 ifeq ($(shell test $(GCC_VERSION) -ge 46 && echo 1), 1)
47 CFLAGS_ixgbe_x550.o += -Wno-maybe-uninitialized
50 ifeq ($(shell test $(GCC_VERSION) -ge 50 && echo 1), 1)
51 CFLAGS_ixgbe_common.o += -Wno-logical-not-parentheses
52 ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1)
53 CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough
58 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
59 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_hash
60 LDLIBS += -lrte_bus_pci
63 # Add extra flags for base driver files (also known as shared code)
64 # to disable warnings in them
66 BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
67 $(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
69 VPATH += $(SRCDIR)/base
72 # all source are stored in SRCS-y
74 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_common.c
75 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_82598.c
76 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_82599.c
77 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_x540.c
78 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_x550.c
79 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_phy.c
80 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_api.c
81 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_vf.c
82 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_hv_vf.c
83 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_dcb.c
84 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_dcb_82599.c
85 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_dcb_82598.c
86 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_mbx.c
87 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_rxtx.c
88 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_ethdev.c
89 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_fdir.c
90 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_pf.c
91 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_flow.c
92 ifeq ($(CONFIG_RTE_ARCH_ARM64),y)
93 SRCS-$(CONFIG_RTE_IXGBE_INC_VECTOR) += ixgbe_rxtx_vec_neon.c
95 SRCS-$(CONFIG_RTE_IXGBE_INC_VECTOR) += ixgbe_rxtx_vec_sse.c
97 ifeq ($(CONFIG_RTE_LIBRTE_IXGBE_BYPASS),y)
98 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_bypass.c
99 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_82599_bypass.c
101 ifeq ($(CONFIG_RTE_LIBRTE_SECURITY),y)
102 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_ipsec.c
104 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += rte_pmd_ixgbe.c
105 SRCS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe_tm.c
107 # install this header file
108 SYMLINK-$(CONFIG_RTE_LIBRTE_IXGBE_PMD)-include := rte_pmd_ixgbe.h
110 include $(RTE_SDK)/mk/rte.lib.mk