1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Cavium, Inc
5 include $(RTE_SDK)/mk/rte.vars.mk
7 ifneq ($(MAKECMDGOALS),clean)
8 ifneq ($(MAKECMDGOALS),config)
9 ifeq ($(ARMV8_CRYPTO_LIB_PATH),)
10 $(error "Please define ARMV8_CRYPTO_LIB_PATH environment variable")
16 LIB = librte_pmd_armv8.a
20 CFLAGS += $(WERROR_FLAGS)
25 # versioning export map
26 EXPORT_MAP := rte_pmd_armv8_version.map
28 # external library dependencies
29 CFLAGS += -I$(ARMV8_CRYPTO_LIB_PATH)
30 CFLAGS += -I$(ARMV8_CRYPTO_LIB_PATH)/asm/include
31 LDLIBS += -L$(ARMV8_CRYPTO_LIB_PATH) -larmv8_crypto
32 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
33 LDLIBS += -lrte_cryptodev
34 LDLIBS += -lrte_bus_vdev
36 # library source files
37 SRCS-$(CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO) += rte_armv8_pmd.c
38 SRCS-$(CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO) += rte_armv8_pmd_ops.c
40 include $(RTE_SDK)/mk/rte.lib.mk