From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5E1F7A2F63 for ; Fri, 4 Oct 2019 00:57:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 952571C191; Fri, 4 Oct 2019 00:57:42 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id D85CA1C123 for ; Fri, 4 Oct 2019 00:57:40 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 506DD15A1; Thu, 3 Oct 2019 15:57:40 -0700 (PDT) Received: from dp6132.austin.arm.com (dp6132.austin.arm.com [10.118.12.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 491733F534; Thu, 3 Oct 2019 15:57:40 -0700 (PDT) From: Dharmik Thakkar To: Jerin Jacob , Bruce Richardson Cc: dev@dpdk.org, honnappa.nagarahalli@arm.com, Dharmik Thakkar Date: Thu, 3 Oct 2019 22:57:32 +0000 Message-Id: <20191003225732.13463-1-dharmik.thakkar@arm.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] crypto/armv8: enable meson build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add new meson.build file for crypto/armv8 Signed-off-by: Dharmik Thakkar --- drivers/crypto/armv8/meson.build | 25 +++++++++++++++++++++++++ drivers/crypto/meson.build | 6 +++--- meson_options.txt | 2 ++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 drivers/crypto/armv8/meson.build diff --git a/drivers/crypto/armv8/meson.build b/drivers/crypto/armv8/meson.build new file mode 100644 index 000000000000..1ef78fa5d8c7 --- /dev/null +++ b/drivers/crypto/armv8/meson.build @@ -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 + '/asm/include' + +lib = cc.find_library('libarmv8_crypto', dirs: [path], required: false) +if not lib.found() + build = false + reason = 'missing dependency, "armv8_crypto"' + 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 diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index 83e78860ebee..605dcdd5f4d6 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -1,9 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['aesni_gcm', 'aesni_mb', 'caam_jr', 'ccp', 'dpaa_sec', 'dpaa2_sec', - 'kasumi', 'mvsam', 'null', 'octeontx', 'openssl', 'qat', 'scheduler', - 'snow3g', 'virtio', 'zuc'] +drivers = ['aesni_gcm', 'aesni_mb', 'armv8', 'caam_jr', 'ccp', 'dpaa_sec', + 'dpaa2_sec', 'kasumi', 'mvsam', 'null', 'octeontx', 'openssl', 'qat', + 'scheduler', 'snow3g', 'virtio', 'zuc'] std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps config_flag_fmt = 'RTE_LIBRTE_@0@_PMD' diff --git a/meson_options.txt b/meson_options.txt index 448f3e63dcf2..4c0413918a34 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,6 +2,8 @@ option('allow_invalid_socket_id', type: 'boolean', value: false, description: 'allow out-of-range NUMA socket id\'s for platforms that don\'t report the value correctly') +option('armv8_crypto_dir', type: 'string', value: '', + description: 'path to the armv8_crypto library installation directory') option('drivers_install_subdir', type: 'string', value: 'dpdk/pmds-', description: 'Subdirectory of libdir where to install PMDs. Defaults to using a versioned subdirectory.') option('enable_docs', type: 'boolean', value: false, -- 2.17.1