make
-* Build DPDK with meson option ``-Darmv8_crypto_dir=<path_to_AArch64cryptolib>``:
+* Add path to `libAArch64crypto.pc` in `PKG_CONFIG_PATH` environment variable:
.. code-block:: console
- meson -Darmv8_crypto_dir=<path_to_AArch64cryptolib> build
+ export PKG_CONFIG_PATH=<path_to_AArch64cryptolib>/pkgconfig/:$PKG_CONFIG_PATH
+
+* Build DPDK:
+
+.. code-block:: console
+
+ meson build
ninja -C build
The corresponding device can be created only if the following features
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2019 Arm Limited
-path = get_option('armv8_crypto_dir')
-if path == ''
+dep = dependency('libAArch64crypto', required: false)
+if not dep.found()
build = false
- reason = 'missing dependency, "armv8_crypto"'
+ reason = 'missing dependency, "libAArch64crypto"'
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
-
+ext_deps += dep
deps += ['bus_vdev']
sources = files('rte_armv8_pmd.c', 'rte_armv8_pmd_ops.c')
# 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>',