1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright (C) 2019 Marvell International Ltd.
5 include $(RTE_SDK)/mk/rte.vars.mk
8 LIB = librte_pmd_octeontx2_crypto.a
14 CFLAGS += $(WERROR_FLAGS)
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
21 VPATH += $(RTE_SDK)/drivers/crypto/octeontx2
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
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
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
44 # export include files
47 # versioning export map
48 EXPORT_MAP := rte_pmd_octeontx2_crypto_version.map
50 include $(RTE_SDK)/mk/rte.lib.mk