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
|
|
|
|
|
2017-04-11 13:49:19 +00:00
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_DPAA2_DEBUG_INIT),y)
|
|
|
|
CFLAGS += -O0 -g
|
|
|
|
CFLAGS += "-Wno-error"
|
|
|
|
else
|
2017-04-11 13:49:17 +00:00
|
|
|
CFLAGS += -O3
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
2017-04-11 13:49:19 +00:00
|
|
|
endif
|
2017-04-11 13:49:17 +00:00
|
|
|
|
|
|
|
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
|
|
|
CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal
|
|
|
|
|
|
|
|
# versioning export map
|
|
|
|
EXPORT_MAP := rte_pmd_dpaa2_version.map
|
|
|
|
|
|
|
|
# library version
|
|
|
|
LIBABIVER := 1
|
|
|
|
|
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
|
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
|
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
|
2017-04-11 13:49:17 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|