2017-12-19 15:49:01 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2017 Intel Corporation
|
2017-10-10 10:18:14 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
|
|
|
LIB = librte_pmd_softnic.a
|
|
|
|
|
2018-07-06 17:21:00 +00:00
|
|
|
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
2017-10-10 10:18:14 +00:00
|
|
|
CFLAGS += -O3
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
2018-07-06 17:21:02 +00:00
|
|
|
LDLIBS += -lrte_pipeline -lrte_port -lrte_table
|
2017-10-12 16:04:21 +00:00
|
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
|
|
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_sched
|
2018-10-24 12:49:01 +00:00
|
|
|
LDLIBS += -lrte_cryptodev
|
2017-11-07 06:54:21 +00:00
|
|
|
LDLIBS += -lrte_bus_vdev
|
2017-10-10 10:18:14 +00:00
|
|
|
|
2018-06-08 21:20:46 +00:00
|
|
|
EXPORT_MAP := rte_pmd_softnic_version.map
|
2017-10-10 10:18:14 +00:00
|
|
|
|
|
|
|
LIBABIVER := 1
|
|
|
|
|
|
|
|
#
|
|
|
|
# all source are stored in SRCS-y
|
|
|
|
#
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic.c
|
2018-07-06 17:20:57 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_mempool.c
|
2018-07-06 17:20:55 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_swq.c
|
2018-07-06 17:20:56 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_link.c
|
2017-10-10 10:18:15 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_tm.c
|
2018-07-06 17:20:58 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_tap.c
|
2018-07-06 17:21:00 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_action.c
|
2018-07-06 17:21:02 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_pipeline.c
|
2018-07-06 17:21:03 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_thread.c
|
2018-06-08 12:41:46 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_cli.c
|
2018-09-11 14:20:32 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_flow.c
|
2018-09-26 13:08:45 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_meter.c
|
2018-10-24 12:49:01 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_cryptodev.c
|
2018-06-08 12:41:46 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += parser.c
|
2018-07-06 17:21:06 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += conn.c
|
2017-10-10 10:18:14 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Export include files
|
|
|
|
#
|
|
|
|
SYMLINK-y-include += rte_eth_softnic.h
|
|
|
|
|
2019-06-17 07:54:27 +00:00
|
|
|
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
|
2019-03-06 16:22:42 +00:00
|
|
|
$(info Softnic PMD can only operate in a linux environment, \
|
2018-07-06 17:21:06 +00:00
|
|
|
please change the definition of the RTE_TARGET environment variable)
|
|
|
|
all:
|
|
|
|
clean:
|
|
|
|
else
|
|
|
|
|
2017-10-10 10:18:14 +00:00
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|
2018-07-06 17:21:06 +00:00
|
|
|
|
|
|
|
endif
|