From patchwork Sun Apr 15 08:51:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhoujian (jay)" X-Patchwork-Id: 38115 X-Patchwork-Delegate: pablo.de.lara.guarch@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DBA151B661; Sun, 15 Apr 2018 10:52:03 +0200 (CEST) Received: from huawei.com (unknown [45.249.212.32]) by dpdk.org (Postfix) with ESMTP id D1AEC1B645 for ; Sun, 15 Apr 2018 10:51:54 +0200 (CEST) Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 262002ED987D5; Sun, 15 Apr 2018 16:51:52 +0800 (CST) Received: from localhost (10.177.19.14) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.361.1; Sun, 15 Apr 2018 16:51:44 +0800 From: Jay Zhou To: CC: , , , , , , , , Date: Sun, 15 Apr 2018 16:51:26 +0800 Message-ID: <2c8ec2aa5f0c2b8b707fe881238670396fbee988.1523781007.git.jianjay.zhou@huawei.com> X-Mailer: git-send-email 2.6.1.windows.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.177.19.14] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH v9 09/11] crypto/virtio: build with meson 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" Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/meson.build | 2 +- drivers/crypto/virtio/meson.build | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/virtio/meson.build diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index 736c9f5..63649c9 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -2,7 +2,7 @@ # Copyright(c) 2017 Intel Corporation drivers = ['dpaa_sec', 'dpaa2_sec', - 'openssl', 'null', 'qat'] + 'openssl', 'null', 'qat', 'virtio'] std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps config_flag_fmt = 'RTE_LIBRTE_@0@_PMD' diff --git a/drivers/crypto/virtio/meson.build b/drivers/crypto/virtio/meson.build new file mode 100644 index 0000000..cee77cc --- /dev/null +++ b/drivers/crypto/virtio/meson.build @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 HUAWEI TECHNOLOGIES CO., LTD. + +dep = dependency('libcrypto', required: false) +if not dep.found() + build = false +endif +deps += ['bus_pci'] +sources = files('virtio_cryptodev.c', 'virtio_pci.c', + 'virtio_rxtx.c', 'virtqueue.c') +ext_deps += dep +pkgconfig_extra_libs += '-lcrypto'