ce116b87bc8a019dc9ca6dd785d5471b84953c6f
[dpdk.git] / drivers / crypto / octeontx2 / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright (C) 2019 Marvell International Ltd.
3 #
4
5 include $(RTE_SDK)/mk/rte.vars.mk
6
7 # library name
8 LIB = librte_pmd_octeontx2_crypto.a
9
10 # library version
11 LIBABIVER := 1
12
13 # build flags
14 CFLAGS += $(WERROR_FLAGS)
15
16 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
17 LDLIBS += -lrte_cryptodev
18 LDLIBS += -lrte_pci -lrte_bus_pci
19 LDLIBS += -lrte_common_cpt -lrte_common_octeontx2
20
21 VPATH += $(RTE_SDK)/drivers/crypto/octeontx2
22
23 CFLAGS += -O3
24 CFLAGS += -I$(RTE_SDK)/drivers/common/cpt
25 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2
26 CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
27 CFLAGS += -DALLOW_EXPERIMENTAL_API
28
29 ifneq ($(CONFIG_RTE_ARCH_64),y)
30 CFLAGS += -Wno-int-to-pointer-cast
31 CFLAGS += -Wno-pointer-to-int-cast
32 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
33 CFLAGS += -diag-disable 2259
34 endif
35 endif
36
37 # PMD code
38 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO) += otx2_cryptodev.c
39 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO) += otx2_cryptodev_capabilities.c
40 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO) += otx2_cryptodev_hw_access.c
41 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO) += otx2_cryptodev_mbox.c
42 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO) += otx2_cryptodev_ops.c
43
44 # export include files
45 SYMLINK-y-include +=
46
47 # versioning export map
48 EXPORT_MAP := rte_pmd_octeontx2_crypto_version.map
49
50 include $(RTE_SDK)/mk/rte.lib.mk