Message ID | 9127451bf67ce08532a327cb66aefbcf7ed5b39f.1457687628.git.pmatilai@redhat.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id AB7622BDE; Fri, 11 Mar 2016 10:13:56 +0100 (CET) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 09FEA2956 for <dev@dpdk.org>; Fri, 11 Mar 2016 10:13:56 +0100 (CET) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 788A664D2F; Fri, 11 Mar 2016 09:13:55 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org.com (vpn1-5-162.ams2.redhat.com [10.36.5.162]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2B9DrWN007714; Fri, 11 Mar 2016 04:13:54 -0500 From: Panu Matilainen <pmatilai@redhat.com> To: dev@dpdk.org Date: Fri, 11 Mar 2016 11:13:48 +0200 Message-Id: <9127451bf67ce08532a327cb66aefbcf7ed5b39f.1457687628.git.pmatilai@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 11 Mar 2016 09:13:55 +0000 (UTC) Subject: [dpdk-dev] [PATCH] mk: crypto pmds can only be built if librte_cryptodev is enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Panu Matilainen
March 11, 2016, 9:13 a.m. UTC
If the experimental CONFIG_RTE_LIBRTE_CRYPTODEV is disabled,
build of any crypto pmds will fail because of the missing dependency.
This has been present for a while now but hidden until the addition
of null_crypto since all the other crypto pmds have been disabled
by default.
Conditionalize the entire drivers/crypto directory on
CONFIG_RTE_LIBRTE_CRYPTODEV to fix.
Fixes: 1703e94ac5ce ("qat: add driver for QuickAssist devices")
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
---
drivers/Makefile | 2 ++
1 file changed, 2 insertions(+)
Comments
2016-03-11 11:13, Panu Matilainen: > If the experimental CONFIG_RTE_LIBRTE_CRYPTODEV is disabled, > build of any crypto pmds will fail because of the missing dependency. > This has been present for a while now but hidden until the addition > of null_crypto since all the other crypto pmds have been disabled > by default. Good catch, thanks. > +ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y) > DIRS-y += crypto > +endif Why not DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += crypto ?
On 03/11/2016 11:28 AM, Thomas Monjalon wrote: > 2016-03-11 11:13, Panu Matilainen: >> If the experimental CONFIG_RTE_LIBRTE_CRYPTODEV is disabled, >> build of any crypto pmds will fail because of the missing dependency. >> This has been present for a while now but hidden until the addition >> of null_crypto since all the other crypto pmds have been disabled >> by default. > > Good catch, thanks. > >> +ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y) >> DIRS-y += crypto >> +endif > > Why not > DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += crypto ? Just because old habits ... and ... you know :) Should I send a new version or can you fix that up when committing? - Panu -
2016-03-11 11:13, Panu Matilainen: > If the experimental CONFIG_RTE_LIBRTE_CRYPTODEV is disabled, > build of any crypto pmds will fail because of the missing dependency. > This has been present for a while now but hidden until the addition > of null_crypto since all the other crypto pmds have been disabled > by default. > > Conditionalize the entire drivers/crypto directory on > CONFIG_RTE_LIBRTE_CRYPTODEV to fix. > > Fixes: 1703e94ac5ce ("qat: add driver for QuickAssist devices") > > Signed-off-by: Panu Matilainen <pmatilai@redhat.com> Applied with small rework, thanks. > +ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y) > DIRS-y += crypto > +endif DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += crypto
diff --git a/drivers/Makefile b/drivers/Makefile index 6ec67f6..c6758a1 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -32,6 +32,8 @@ include $(RTE_SDK)/mk/rte.vars.mk DIRS-y += net +ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y) DIRS-y += crypto +endif include $(RTE_SDK)/mk/rte.subdir.mk