drivers: use SPDX tag for Cavium copyright files
[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 # library version
23 LIBABIVER := 1
24
25 # versioning export map
26 EXPORT_MAP := rte_pmd_armv8_version.map
27
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
35
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
39
40 include $(RTE_SDK)/mk/rte.lib.mk