]> git.proxmox.com Git - ceph.git/blame - ceph/src/seastar/dpdk/drivers/crypto/aesni_gcm/Makefile
import 15.2.0 Octopus source
[ceph.git] / ceph / src / seastar / dpdk / drivers / crypto / aesni_gcm / Makefile
CommitLineData
9f95a23c
TL
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2016-2017 Intel Corporation
7c673cae
FG
3
4include $(RTE_SDK)/mk/rte.vars.mk
5
11fdf7f2
TL
6# library name
7LIB = librte_pmd_aesni_gcm.a
7c673cae
FG
8
9# build flags
10CFLAGS += -O3
9f95a23c 11CFLAGS += -DALLOW_EXPERIMENTAL_API
7c673cae
FG
12CFLAGS += $(WERROR_FLAGS)
13
11fdf7f2
TL
14# library version
15LIBABIVER := 1
16
17# versioning export map
18EXPORT_MAP := rte_pmd_aesni_gcm_version.map
19
20# external library dependencies
9f95a23c
TL
21LDLIBS += -lIPSec_MB
22LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
23LDLIBS += -lrte_cryptodev
24LDLIBS += -lrte_bus_vdev
25
26IMB_HDR = $(shell echo '\#include <intel-ipsec-mb.h>' | \
27 $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \
28 head -n1 | cut -d'"' -f2)
29
30# Detect library version
31IMB_VERSION = $(shell grep -e "IMB_VERSION_STR" $(IMB_HDR) | cut -d'"' -f2)
32IMB_VERSION_NUM = $(shell grep -e "IMB_VERSION_NUM" $(IMB_HDR) | cut -d' ' -f3)
33
34ifeq ($(IMB_VERSION),)
35$(error "IPSec_MB version >= 0.52 is required")
36endif
37
38ifeq ($(shell expr $(IMB_VERSION_NUM) \< 0x3400), 1)
39$(error "IPSec_MB version >= 0.52 is required")
40endif
11fdf7f2 41
7c673cae 42# library source files
11fdf7f2
TL
43SRCS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += aesni_gcm_pmd.c
44SRCS-$(CONFIG_RTE_LIBRTE_PMD_AESNI_GCM) += aesni_gcm_pmd_ops.c
7c673cae 45
7c673cae 46include $(RTE_SDK)/mk/rte.lib.mk