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
14 CFLAGS += $(WERROR_FLAGS)
16 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
17 ifeq ($(shell test $(GCC_VERSION) -gt 70 && echo 1), 1)
18 CFLAGS += -Wno-implicit-fallthrough
22 CFLAGS += -I$(RTE_SDK)/drivers/common/dpaax
23 CFLAGS += -I$(RTE_SDK)/drivers/common/dpaax/caamflib
24 CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec/
25 CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec/mc
26 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/
27 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/qbman/include
28 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/mc
29 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/portal
30 CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa2/
32 # versioning export map
33 EXPORT_MAP := rte_pmd_dpaa2_sec_version.map
35 # library source files
36 SRCS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += dpaa2_sec_dpseci.c
37 SRCS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += mc/dpseci.c
39 LDLIBS += -lrte_bus_fslmc
40 LDLIBS += -lrte_mempool_dpaa2
41 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
42 LDLIBS += -lrte_cryptodev
43 LDLIBS += -lrte_common_dpaax
45 include $(RTE_SDK)/mk/rte.lib.mk