2018-03-12 08:32:07 +01:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2017 Marvell International Ltd.
|
|
|
|
# Copyright(c) 2017 Semihalf.
|
|
|
|
# All rights reserved.
|
2017-10-09 17:00:30 +02:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
|
|
ifneq ($(MAKECMDGOALS),config)
|
|
|
|
ifeq ($(LIBMUSDK_PATH),)
|
|
|
|
$(error "Please define LIBMUSDK_PATH environment variable")
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# library name
|
|
|
|
LIB = librte_pmd_mrvl.a
|
|
|
|
|
|
|
|
# library version
|
|
|
|
LIBABIVER := 1
|
|
|
|
|
|
|
|
# versioning export map
|
|
|
|
EXPORT_MAP := rte_pmd_mrvl_version.map
|
|
|
|
|
|
|
|
# external library dependencies
|
|
|
|
CFLAGS += -I$(LIBMUSDK_PATH)/include
|
2017-12-05 10:39:16 +01:00
|
|
|
CFLAGS += -DMVCONF_TYPES_PUBLIC
|
|
|
|
CFLAGS += -DMVCONF_DMA_PHYS_ADDR_T_PUBLIC
|
2017-10-09 17:00:30 +02:00
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
|
|
|
CFLAGS += -O3
|
|
|
|
LDLIBS += -L$(LIBMUSDK_PATH)/lib
|
|
|
|
LDLIBS += -lmusdk
|
2017-10-12 18:04:21 +02:00
|
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
|
|
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_cfgfile
|
2017-11-07 06:54:21 +00:00
|
|
|
LDLIBS += -lrte_bus_vdev
|
2017-10-09 17:00:30 +02:00
|
|
|
|
|
|
|
# library source files
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MRVL_PMD) += mrvl_ethdev.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MRVL_PMD) += mrvl_qos.c
|
2018-03-15 08:52:01 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_MRVL_PMD) += mrvl_flow.c
|
2017-10-09 17:00:30 +02:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|