numam-dpdk/drivers/crypto/aesni_mb/meson.build
Fan Zhang c68d7aa354 crypto/aesni_mb: use architecture independent macros
This patch duplicates the original rte_aesni_mb_pmd*.c files and replaces
the function calls provided by intel-ipsec-mb library into
architecture-independent macros. The build systems are updated to choose
compiling either rte_aesni_mb_pmd*.c or rte_aesni_mb_pmd*_compat.c based
on the installed intel-ipsec-mb version. For the intel-ipsec-mb older
than 0.52.0 rte_aesni_mb_pmd*_compat.c will be compiled, otherwise
rte_aesni_mb_pmd*.c will be compiled.

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Signed-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com>
Acked-by: Damian Nowak <damianx.nowak@intel.com>
2019-01-10 16:57:22 +01:00

28 lines
736 B
Meson

# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
IPSec_MB_ver_0_52 = '0.52.0'
lib = cc.find_library('IPSec_MB', required: false)
if not lib.found()
build = false
else
ext_deps += lib
imb_arr = cc.get_define('IMB_VERSION_STR',
prefix : '#include<intel-ipsec-mb.h>').split('"')
imb_ver =''.join(imb_arr)
if imb_ver.version_compare('>=' + IPSec_MB_ver_0_52)
message('Build for a new version of library IPSec_MB[' + imb_ver + ']')
sources = files('rte_aesni_mb_pmd.c',
'rte_aesni_mb_pmd_ops.c')
else
sources = files('rte_aesni_mb_pmd_compat.c',
'rte_aesni_mb_pmd_ops_compat.c')
message('Build for older version of library IPSec_MB[' + imb_ver + ']')
endif
endif
deps += ['bus_vdev']