2017-12-19 10:14:41 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright 2017 NXP
|
2017-09-28 12:29:42 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
RTE_SDK_DPAA=$(RTE_SDK)/drivers/net/dpaa
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
|
|
|
LIB = librte_pmd_dpaa.a
|
|
|
|
|
|
|
|
CFLAGS := -I$(SRCDIR) $(CFLAGS)
|
|
|
|
CFLAGS += -O3 $(WERROR_FLAGS)
|
2017-09-28 12:29:44 +00:00
|
|
|
CFLAGS += -Wno-pointer-arith
|
2017-09-28 12:29:42 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK_DPAA)/
|
|
|
|
CFLAGS += -I$(RTE_SDK_DPAA)/include
|
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa
|
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/include/
|
2018-01-16 20:43:57 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/base/qbman
|
2017-09-28 12:29:44 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa
|
2019-10-10 06:32:21 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/common/dpaax
|
2018-01-16 20:43:57 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/event/dpaa
|
2017-09-28 12:29:42 +00:00
|
|
|
CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common/include
|
|
|
|
|
|
|
|
EXPORT_MAP := rte_pmd_dpaa_version.map
|
|
|
|
|
2018-04-11 12:30:12 +00:00
|
|
|
# depends on dpaa bus which uses experimental API
|
|
|
|
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
|
|
|
|
2017-09-28 12:29:42 +00:00
|
|
|
# Interfaces with DPDK
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_DPAA_PMD) += dpaa_ethdev.c
|
2017-09-28 12:29:44 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_DPAA_PMD) += dpaa_rxtx.c
|
2017-09-28 12:29:42 +00:00
|
|
|
|
|
|
|
LDLIBS += -lrte_bus_dpaa
|
2017-09-28 12:29:44 +00:00
|
|
|
LDLIBS += -lrte_mempool_dpaa
|
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:55 +00:00
|
|
|
LDLIBS += -lrte_common_dpaax
|
2017-09-28 12:29:42 +00:00
|
|
|
|
2018-01-10 10:46:37 +00:00
|
|
|
# install this header file
|
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_DPAA_PMD)-include := rte_pmd_dpaa.h
|
|
|
|
|
2017-09-28 12:29:42 +00:00
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|