From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 446D51B2B1 for ; Sun, 15 Apr 2018 14:09:06 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Apr 2018 05:09:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,454,1517904000"; d="scan'208";a="46308717" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by fmsmga004.fm.intel.com with ESMTP; 15 Apr 2018 05:09:03 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.155]) by IRSMSX103.ger.corp.intel.com ([169.254.3.61]) with mapi id 14.03.0319.002; Sun, 15 Apr 2018 13:09:02 +0100 From: "De Lara Guarch, Pablo" To: Jay Zhou , "dev@dpdk.org" CC: "Zhang, Roy Fan" , "thomas@monjalon.net" , "arei.gonglei@huawei.com" , "Zeng, Xin" , "weidong.huang@huawei.com" , "wangxinxin.wang@huawei.com" , "longpeng2@huawei.com" Thread-Topic: [PATCH v9 09/11] crypto/virtio: build with meson Thread-Index: AQHT1JcE6J0+ds6IukOlk793gsWs0KQBt31A Date: Sun, 15 Apr 2018 12:09:01 +0000 Message-ID: References: <2c8ec2aa5f0c2b8b707fe881238670396fbee988.1523781007.git.jianjay.zhou@huawei.com> In-Reply-To: <2c8ec2aa5f0c2b8b707fe881238670396fbee988.1523781007.git.jianjay.zhou@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTQxZGZlYzEtN2QyZC00OGI2LTk3NDEtZWE0NWQ4ODJjMzkxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlwvXC9ScUZXN3dWbnREVlNndTQ3ZnIra0h3QkNUdGtHcVhcL2REM1wvUk94N25zPSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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: , X-List-Received-Date: Sun, 15 Apr 2018 12:09:07 -0000 Hi Jay, > -----Original Message----- > From: Jay Zhou [mailto:jianjay.zhou@huawei.com] > Sent: Sunday, April 15, 2018 9:51 AM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo ; Zhang, Roy Fa= n > ; thomas@monjalon.net; > arei.gonglei@huawei.com; Zeng, Xin ; > weidong.huang@huawei.com; wangxinxin.wang@huawei.com; > longpeng2@huawei.com; jianjay.zhou@huawei.com > Subject: [PATCH v9 09/11] crypto/virtio: build with meson >=20 > 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 >=20 > diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build inde= x > 736c9f5..63649c9 100644 > --- a/drivers/crypto/meson.build > +++ b/drivers/crypto/meson.build > @@ -2,7 +2,7 @@ > # Copyright(c) 2017 Intel Corporation >=20 > drivers =3D ['dpaa_sec', 'dpaa2_sec', > - 'openssl', 'null', 'qat'] > + 'openssl', 'null', 'qat', 'virtio'] >=20 > std_deps =3D ['cryptodev'] # cryptodev pulls in all other needed deps > config_flag_fmt =3D 'RTE_LIBRTE_@0@_PMD' > diff --git a/drivers/crypto/virtio/meson.build b/drivers/crypto/virtio/me= son.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 =3D dependency('libcrypto', required: false) if not dep.found() > + build =3D false > +endif > +deps +=3D ['bus_pci'] > +sources =3D files('virtio_cryptodev.c', 'virtio_pci.c', > + 'virtio_rxtx.c', 'virtqueue.c') > +ext_deps +=3D dep > +pkgconfig_extra_libs +=3D '-lcrypto' > -- > 1.8.3.1 >=20 Could you add this build from the first patch? Basically, every time you ma= ke a change in the Makefile, you should do the same in meson.build. Thanks, Pablo