crypto/octeontx2: move capabilities init into probe
[dpdk.git] / drivers / crypto / dpaa2_sec / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
3 # Copyright 2016 NXP
4 #
5
6 include $(RTE_SDK)/mk/rte.vars.mk
7 #
8 # library name
9 #
10 LIB = librte_pmd_dpaa2_sec.a
11
12 # build flags
13 CFLAGS += -O3
14 CFLAGS += $(WERROR_FLAGS)
15
16 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
17 ifeq ($(shell test $(GCC_VERSION) -gt 70 && echo 1), 1)
18 CFLAGS += -Wno-implicit-fallthrough
19 endif
20 endif
21
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/
31
32 # versioning export map
33 EXPORT_MAP := rte_pmd_dpaa2_sec_version.map
34
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
38
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
44
45 include $(RTE_SDK)/mk/rte.lib.mk