crypto/octeontx2: move capabilities init into probe
[dpdk.git] / drivers / crypto / armv8 / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Cavium, Inc
3 #
4
5 include $(RTE_SDK)/mk/rte.vars.mk
6
7 ifneq ($(MAKECMDGOALS),clean)
8 ifneq ($(MAKECMDGOALS),config)
9 ifeq ($(ARMV8_CRYPTO_LIB_PATH),)
10 $(error "Please define ARMV8_CRYPTO_LIB_PATH environment variable")
11 endif
12 endif
13 endif
14
15 # library name
16 LIB = librte_pmd_armv8.a
17
18 # build flags
19 CFLAGS += -O3
20 CFLAGS += $(WERROR_FLAGS)
21
22 # versioning export map
23 EXPORT_MAP := rte_pmd_armv8_version.map
24
25 # external library dependencies
26 CFLAGS += -I$(ARMV8_CRYPTO_LIB_PATH)
27 LDLIBS += -L$(ARMV8_CRYPTO_LIB_PATH) -lAArch64crypto
28 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
29 LDLIBS += -lrte_cryptodev
30 LDLIBS += -lrte_bus_vdev
31
32 # library source files
33 SRCS-$(CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO) += rte_armv8_pmd.c
34 SRCS-$(CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO) += rte_armv8_pmd_ops.c
35
36 include $(RTE_SDK)/mk/rte.lib.mk