1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
6 include $(RTE_SDK)/mk/rte.vars.mk
10 LIB = librte_pmd_dpaa2_sec.a
13 CFLAGS += -DALLOW_EXPERIMENTAL_API
15 CFLAGS += $(WERROR_FLAGS)
17 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
18 ifeq ($(shell test $(GCC_VERSION) -gt 70 && echo 1), 1)
19 CFLAGS += -Wno-implicit-fallthrough
23 CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec/
24 CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec/mc
25 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/
26 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/qbman/include
27 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/mc
28 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/portal
29 CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa2/
31 # versioning export map
32 EXPORT_MAP := rte_pmd_dpaa2_sec_version.map
37 # library source files
38 SRCS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += dpaa2_sec_dpseci.c
39 SRCS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += mc/dpseci.c
41 LDLIBS += -lrte_bus_fslmc
42 LDLIBS += -lrte_mempool_dpaa2
43 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
44 LDLIBS += -lrte_cryptodev
45 LDLIBS += -lrte_common_dpaax
47 include $(RTE_SDK)/mk/rte.lib.mk