1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Marvell International Ltd.
3 # Copyright(c) 2017 Semihalf.
6 include $(RTE_SDK)/mk/rte.vars.mk
8 ifneq ($(MAKECMDGOALS),clean)
9 ifneq ($(MAKECMDGOALS),config)
10 ifeq ($(LIBMUSDK_PATH),)
11 $(error "Please define LIBMUSDK_PATH environment variable")
17 LIB = librte_pmd_mvpp2.a
22 # versioning export map
23 EXPORT_MAP := rte_pmd_mvpp2_version.map
25 # external library dependencies
26 CFLAGS += -I$(RTE_SDK)/drivers/common/mvep
27 CFLAGS += -I$(LIBMUSDK_PATH)/include
28 CFLAGS += -DMVCONF_TYPES_PUBLIC
29 CFLAGS += -DMVCONF_DMA_PHYS_ADDR_T_PUBLIC
30 CFLAGS += $(WERROR_FLAGS)
32 LDLIBS += -L$(LIBMUSDK_PATH)/lib
34 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
35 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_cfgfile
36 LDLIBS += -lrte_bus_vdev -lrte_common_mvep
38 # library source files
39 SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_ethdev.c
40 SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_qos.c
41 SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_flow.c
42 SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_mtr.c
43 SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_tm.c
45 include $(RTE_SDK)/mk/rte.lib.mk