2018-01-10 13:01:54 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
2019-02-25 17:18:51 +00:00
|
|
|
LIB = librte_pmd_iavf.a
|
2018-01-10 13:01:54 +00:00
|
|
|
|
2020-01-10 01:37:49 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/common/iavf
|
2020-04-13 14:55:30 +00:00
|
|
|
CFLAGS += -O3 $(WERROR_FLAGS) -Wno-strict-aliasing
|
2018-01-10 13:01:54 +00:00
|
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
|
|
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_hash
|
|
|
|
LDLIBS += -lrte_bus_pci
|
2020-01-10 01:37:49 +00:00
|
|
|
LDLIBS += -lrte_common_iavf
|
2018-01-10 13:01:54 +00:00
|
|
|
|
2019-02-25 17:18:51 +00:00
|
|
|
EXPORT_MAP := rte_pmd_iavf_version.map
|
2018-01-10 13:01:54 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# all source are stored in SRCS-y
|
|
|
|
#
|
2019-02-25 17:18:52 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_ethdev.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_vchnl.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_rxtx.c
|
2020-04-03 05:42:41 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_generic_flow.c
|
2020-04-21 06:19:26 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_fdir.c
|
2020-04-22 01:02:54 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_hash.c
|
2018-01-19 08:41:48 +00:00
|
|
|
ifeq ($(CONFIG_RTE_ARCH_X86), y)
|
2019-10-16 08:14:09 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_rxtx_vec_sse.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_IAVF_PMD), y)
|
|
|
|
ifeq ($(findstring RTE_MACHINE_CPUFLAG_AVX2,$(CFLAGS)),RTE_MACHINE_CPUFLAG_AVX2)
|
|
|
|
CC_AVX2_SUPPORT=1
|
|
|
|
else
|
|
|
|
CC_AVX2_SUPPORT=\
|
|
|
|
$(shell $(CC) -march=core-avx2 -dM -E - </dev/null 2>&1 | \
|
|
|
|
grep -q AVX2 && echo 1)
|
|
|
|
ifeq ($(CC_AVX2_SUPPORT), 1)
|
|
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
|
|
|
CFLAGS_iavf_rxtx_vec_avx2.o += -march=core-avx2
|
|
|
|
else
|
|
|
|
CFLAGS_iavf_rxtx_vec_avx2.o += -mavx2
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CC_AVX2_SUPPORT), 1)
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_rxtx_vec_avx2.c
|
2018-01-10 13:02:04 +00:00
|
|
|
endif
|
2018-01-10 13:01:54 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|