1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2013-2015 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
9 LIB = librte_pmd_fm10k.a
12 CFLAGS += $(WERROR_FLAGS)
14 EXPORT_MAP := rte_pmd_fm10k_version.map
18 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
22 CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259
24 else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
29 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
30 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
31 CFLAGS_BASE_DRIVER += -Wno-unused-variable
32 CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers
38 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
39 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
40 CFLAGS_BASE_DRIVER += -Wno-unused-variable
41 CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers
43 ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
44 CFLAGS += -Wno-deprecated
45 CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
46 ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1)
47 CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough
51 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
52 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_hash
53 LDLIBS += -lrte_bus_pci
56 # Add extra flags for base driver source files to disable warnings in them
58 BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
59 $(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
61 VPATH += $(SRCDIR)/base
64 # all source are stored in SRCS-y
65 # base driver is based on the package of cid-fm10k.2017.01.24.tar.gz
67 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_ethdev.c
68 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_rxtx.c
70 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_pf.c
71 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_tlv.c
72 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_common.c
73 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_mbx.c
74 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_vf.c
75 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_api.c
76 SRCS-$(CONFIG_RTE_LIBRTE_FM10K_INC_VECTOR) += fm10k_rxtx_vec.c
78 include $(RTE_SDK)/mk/rte.lib.mk