2018-05-03 07:30:11 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2014 Intel Corporation.
|
|
|
|
# Copyright(c) 2014 6WIND S.A.
|
|
|
|
# Copyright(c) Broadcom Limited.
|
|
|
|
# All rights reserved.
|
2016-06-15 21:23:01 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
|
|
|
LIB = librte_pmd_bnxt.a
|
|
|
|
|
2017-06-01 17:07:16 +00:00
|
|
|
EXPORT_MAP := rte_pmd_bnxt_version.map
|
|
|
|
|
2016-06-15 21:23:01 +00:00
|
|
|
CFLAGS += -O3
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
2017-10-12 16:04:21 +00:00
|
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
|
|
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
|
2020-06-12 12:49:49 +00:00
|
|
|
LDLIBS += -lrte_bus_pci -pthread
|
2016-06-15 21:23:01 +00:00
|
|
|
|
|
|
|
EXPORT_MAP := rte_pmd_bnxt_version.map
|
|
|
|
|
|
|
|
#
|
|
|
|
# all source are stored in SRCS-y
|
|
|
|
#
|
2016-06-15 21:23:08 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_cpr.c
|
2016-06-15 21:23:01 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_ethdev.c
|
2016-06-15 21:23:09 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_filter.c
|
2018-06-28 20:15:37 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_flow.c
|
2016-06-15 21:23:02 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_hwrm.c
|
2016-06-15 21:23:07 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_ring.c
|
2016-06-15 21:23:11 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_rxq.c
|
2016-06-15 21:23:14 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_rxr.c
|
2016-06-15 21:23:12 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_stats.c
|
2016-06-15 21:23:10 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_txq.c
|
2016-06-15 21:23:13 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_txr.c
|
2016-06-15 21:23:06 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_vnic.c
|
2016-10-11 21:47:50 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_irq.c
|
2018-06-28 20:15:36 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_util.c
|
2020-07-02 23:27:48 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_reps.c
|
2017-06-01 17:07:16 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += rte_pmd_bnxt.c
|
2019-05-29 21:02:23 +00:00
|
|
|
ifeq ($(CONFIG_RTE_ARCH_X86), y)
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_rxtx_vec_sse.c
|
|
|
|
endif
|
2020-07-07 22:22:25 +00:00
|
|
|
ifeq ($(CONFIG_RTE_ARCH_ARM64), y)
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt_rxtx_vec_neon.c
|
|
|
|
endif
|
2016-06-15 21:23:01 +00:00
|
|
|
|
2020-04-15 08:18:41 +00:00
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_BNXT_PMD), y)
|
2020-07-02 23:28:03 +00:00
|
|
|
CFLAGS += -I$(SRCDIR) -I$(SRCDIR)/tf_ulp -I$(SRCDIR)/tf_core -I$(SRCDIR)/hcapi
|
2020-06-12 12:49:49 +00:00
|
|
|
include $(SRCDIR)/tf_ulp/Makefile
|
|
|
|
include $(SRCDIR)/tf_core/Makefile
|
2020-07-02 23:28:03 +00:00
|
|
|
include $(SRCDIR)/hcapi/Makefile
|
2020-07-02 23:28:18 +00:00
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_BNXT_PMD_SYSTEM), y)
|
|
|
|
CFLAGS += -DTF_USE_SYSTEM_MEM
|
|
|
|
endif
|
2020-04-15 08:18:41 +00:00
|
|
|
endif
|
|
|
|
|
2016-06-15 21:23:01 +00:00
|
|
|
#
|
|
|
|
# Export include files
|
|
|
|
#
|
|
|
|
SYMLINK-y-include +=
|
2020-06-12 12:49:49 +00:00
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_BNXT_PMD)-include += rte_pmd_bnxt.h
|
2016-06-15 21:23:01 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|