From patchwork Sat Apr 14 09:34:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhoujian (jay)" X-Patchwork-Id: 38107 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 7ED591B826; Sat, 14 Apr 2018 11:35:43 +0200 (CEST) Received: from huawei.com (unknown [45.249.212.32]) by dpdk.org (Postfix) with ESMTP id 263D91B714 for ; Sat, 14 Apr 2018 11:35:18 +0200 (CEST) Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 80602A1F8BF69; Sat, 14 Apr 2018 17:35:15 +0800 (CST) Received: from localhost (10.177.19.14) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.361.1; Sat, 14 Apr 2018 17:35:11 +0800 From: Jay Zhou To: CC: , , , , , , , , Date: Sat, 14 Apr 2018 17:34:34 +0800 Message-ID: <0aac102737b12c2317e74c521f393d0b14f7ad4c.1523696750.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 v8 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'