2017-12-19 10:14:40 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
|
|
|
|
# Copyright 2016 NXP
|
2017-04-11 13:49:17 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
|
|
|
LIB = librte_pmd_dpaa2.a
|
|
|
|
|
|
|
|
CFLAGS += -O3
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa2
|
2017-04-11 13:49:21 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa2/mc
|
2017-04-11 13:49:17 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc
|
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/qbman/include
|
2017-04-11 13:49:21 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/mc
|
2017-04-11 13:49:22 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/portal
|
2017-04-11 13:49:25 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa2
|
2017-04-11 13:49:17 +00:00
|
|
|
|
|
|
|
# versioning export map
|
|
|
|
EXPORT_MAP := rte_pmd_dpaa2_version.map
|
|
|
|
|
|
|
|
# library version
|
2018-10-12 10:04:14 +00:00
|
|
|
LIBABIVER := 2
|
2017-04-11 13:49:17 +00:00
|
|
|
|
2018-04-11 12:30:13 +00:00
|
|
|
# depends on fslmc bus which uses experimental API
|
|
|
|
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
|
|
|
|
2017-04-11 13:49:23 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += base/dpaa2_hw_dpni.c
|
2017-04-11 13:49:29 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += dpaa2_rxtx.c
|
2017-04-11 13:49:17 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += dpaa2_ethdev.c
|
2019-02-22 11:16:05 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += dpaa2_flow.c
|
2019-01-11 12:24:55 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += dpaa2_mux.c
|
2017-04-11 13:49:21 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += mc/dpni.c
|
2017-09-16 10:35:49 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += mc/dpkg.c
|
2019-01-11 12:24:49 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += mc/dpdmux.c
|
2017-04-11 13:49:17 +00:00
|
|
|
|
|
|
|
LDLIBS += -lrte_bus_fslmc
|
2017-04-11 13:49:25 +00:00
|
|
|
LDLIBS += -lrte_mempool_dpaa2
|
2017-10-12 16:04:21 +00:00
|
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
|
|
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
|
2018-10-15 12:01:56 +00:00
|
|
|
LDLIBS += -lrte_common_dpaax
|
2017-04-11 13:49:17 +00:00
|
|
|
|
2019-01-11 12:24:30 +00:00
|
|
|
# install this header file
|
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_DPAA2_PMD)-include := rte_pmd_dpaa2.h
|
2017-04-11 13:49:17 +00:00
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|