1 # SPDX-License-Identifier: BSD-3-Clause
5 include $(RTE_SDK)/mk/rte.vars.mk
6 RTE_SDK_DPAA=$(RTE_SDK)/drivers/net/dpaa
11 LIB = librte_pmd_dpaa.a
13 CFLAGS := -I$(SRCDIR) $(CFLAGS)
14 CFLAGS += -O3 $(WERROR_FLAGS)
15 CFLAGS += -Wno-pointer-arith
16 CFLAGS += -I$(RTE_SDK_DPAA)/
17 CFLAGS += -I$(RTE_SDK_DPAA)/include
18 CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa
19 CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/include/
20 CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/base/qbman
21 CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa
22 CFLAGS += -I$(RTE_SDK)/drivers/event/dpaa
23 CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common/include
24 CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal/include
26 EXPORT_MAP := rte_pmd_dpaa_version.map
30 # depends on dpaa bus which uses experimental API
31 CFLAGS += -DALLOW_EXPERIMENTAL_API
33 # Interfaces with DPDK
34 SRCS-$(CONFIG_RTE_LIBRTE_DPAA_PMD) += dpaa_ethdev.c
35 SRCS-$(CONFIG_RTE_LIBRTE_DPAA_PMD) += dpaa_rxtx.c
37 LDLIBS += -lrte_bus_dpaa
38 LDLIBS += -lrte_mempool_dpaa
39 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
40 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
41 LDLIBS += -lrte_common_dpaax
43 # install this header file
44 SYMLINK-$(CONFIG_RTE_LIBRTE_DPAA_PMD)-include := rte_pmd_dpaa.h
46 include $(RTE_SDK)/mk/rte.lib.mk