crypto/octeontx2: move capabilities init into probe
[dpdk.git] / drivers / crypto / kasumi / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2016 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 # library name
7 LIB = librte_pmd_kasumi.a
8
9 # build flags
10 CFLAGS += -O3
11 CFLAGS += $(WERROR_FLAGS)
12
13 # versioning export map
14 EXPORT_MAP := rte_pmd_kasumi_version.map
15
16 # external library dependencies
17 LDLIBS += -lIPSec_MB
18 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
19 LDLIBS += -lrte_cryptodev
20 LDLIBS += -lrte_bus_vdev
21
22 H := \#
23 IMB_HDR = $(shell echo '$Hinclude <intel-ipsec-mb.h>' | \
24         $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \
25         head -n1 | cut -d'"' -f2)
26
27 # Detect library version
28 IMB_VERSION = $(shell grep -e "IMB_VERSION_STR" $(IMB_HDR) | cut -d'"' -f2)
29 IMB_VERSION_NUM = $(shell grep -e "IMB_VERSION_NUM" $(IMB_HDR) | cut -d' ' -f3)
30
31 ifeq ($(IMB_VERSION),)
32 $(error "IPSec_MB version >= 0.53 is required")
33 endif
34
35 ifeq ($(shell expr $(IMB_VERSION_NUM) \< 0x3400), 1)
36 $(error "IPSec_MB version >= 0.53 is required")
37 endif
38 # library source files
39 SRCS-$(CONFIG_RTE_LIBRTE_PMD_KASUMI) += rte_kasumi_pmd.c
40 SRCS-$(CONFIG_RTE_LIBRTE_PMD_KASUMI) += rte_kasumi_pmd_ops.c
41
42 include $(RTE_SDK)/mk/rte.lib.mk