crypto/armv8: enable meson build

Add new meson.build file for crypto/armv8

Suggested-by: Thomas Monjalon <thomas@monjalon.net>
Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
Tested-by: Ruifeng Wang <ruifeng.wang@arm.com>
This commit is contained in:
Dharmik Thakkar 2020-01-23 11:45:54 +08:00 committed by Akhil Goyal
parent bde43e8a77
commit e3fec1f793
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2019 Arm Limited
path = get_option('armv8_crypto_dir')
if path == ''
build = false
reason = 'missing dependency, "armv8_crypto"'
subdir_done()
endif
inc_dir = path
lib = cc.find_library('libAArch64crypto', dirs: [path], required: false)
if not lib.found()
build = false
reason = 'missing dependency, "AArch64crypto"'
subdir_done()
else
ext_deps += lib
includes += include_directories(inc_dir)
endif
deps += ['bus_vdev']
sources = files('rte_armv8_pmd.c', 'rte_armv8_pmd_ops.c')
allow_experimental_apis = true

View File

@ -3,6 +3,7 @@
drivers = ['aesni_gcm',
'aesni_mb',
'armv8',
'caam_jr',
'ccp',
'dpaa_sec',

View File

@ -1,5 +1,7 @@
# Please keep these options sorted alphabetically.
option('armv8_crypto_dir', type: 'string', value: '',
description: 'path to the armv8_crypto library installation directory')
option('disable_drivers', type: 'string', value: '',
description: 'Comma-separated list of drivers to explicitly disable.')
option('drivers_install_subdir', type: 'string', value: 'dpdk/pmds-<VERSION>',