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
28 ifneq ($(CONFIG_RTE_ARCH_64),y)
29 CFLAGS += -Wno-int-to-pointer-cast
30 CFLAGS += -Wno-pointer-to-int-cast
31 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
32 CFLAGS += -diag-disable 2259
37 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO) += otx2_cryptodev.c
38 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO) += otx2_cryptodev_hw_access.c
39 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO) += otx2_cryptodev_mbox.c
40 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO) += otx2_cryptodev_ops.c
42 # export include files
45 # versioning export map
46 EXPORT_MAP := rte_pmd_octeontx2_crypto_version.map
48 include $(RTE_SDK)/mk/rte.lib.mk