From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0895EA00C4; Mon, 7 Nov 2022 17:37:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4F0640156; Mon, 7 Nov 2022 17:37:34 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 109E440041 for ; Mon, 7 Nov 2022 17:37:34 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 97B3C5C018B; Mon, 7 Nov 2022 11:37:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 07 Nov 2022 11:37:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1667839051; x=1667925451; bh=Oe j3Pmmc8euxJVoCbARQTgqbh7TLlubRV4GkalOfbfE=; b=XIQWG3c7JvXKEckcvh HPn2Np0W9/Y+tWeVdRGtS4jl7mPZg5bxu5fU4X6eJU8PEjaqDGwsQB1XVXv16OuE O0TfLS9wjuBL+/JoyAhHVK29EZMIiMSf392QznsKNVTz0ws9MMniIUcBi0v4Xu+d 4ZSdnWpwuW4hCjjWx8rsaXCbyWUKppgDI7SOAr6EMCRoiv4hcqv2GnTOiKWrtJa5 KDAH17zjbVwLGKkGVmNDYJ91BvkLWczKcsXBSsg5ET7Guyt+dR5AvA6FKZh+bZ2c neaG1kQ95oaEema93XPAb+eoM/kpY07RF4puFqlO5Ns6SfT4XakaYm5Jw+Kz/k4m AsOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1667839051; x=1667925451; bh=Oej3Pmmc8euxJ VoCbARQTgqbh7TLlubRV4GkalOfbfE=; b=oCtv+W4wfHH6+Lu2LKQkiRgfw7PfS THxCQiLgkpFg2WcCJNmQtHt1alwJEy9w21vKrvsbhrJ7iX60SQdEVehflzAqP/4C zy3j47ARxw7x5T3p1rJzqoJxsQl64sOz0EVS0nFriosMjS64s6Q8LhWSOWCBmPq7 4jgrcaKrVQn7+kFk+Ml2DH3NzAqNDZUErKpt7bs9BzRLD5N2KYnYB+l2vQ1hAQ8F X09WZs8pQ/BRZ7MMwTJ2zTdBpXGpBRPhhUnIwWXuMZFRk+nwWqJKm31zjq9zd4cl EuG4OmBnh46cyxY5ck73x6wazF1YCGoNPmm8ZdbIeeIL9t1e0aTzjheqw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdekgdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvdejhfdugeehvddtieejieegteeuudfgjeeukeeiledthfetveek hefhieelhfdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Nov 2022 11:37:30 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: Bruce Richardson , Matan Azrad , Fan Zhang , Ashish Gupta , Viacheslav Ovsiienko , Ori Kam , Alex Vesker , David Marchand Subject: [PATCH] common/mlx5: use build configuration dictionary Date: Mon, 7 Nov 2022 17:37:20 +0100 Message-Id: <20221107163720.4157535-1-thomas@monjalon.net> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org A recent commit added an explicit dependency check on common/mlx5. For consistency, query dpdk_conf instead of the list of common drivers. The lists *_drivers should be used only for printing. Fixes: 3df380f61797 ("common/mlx5: fix disabling build") Suggested-by: Bruce Richardson Signed-off-by: Thomas Monjalon --- drivers/compress/mlx5/meson.build | 2 +- drivers/crypto/mlx5/meson.build | 2 +- drivers/net/mlx5/meson.build | 2 +- drivers/regex/mlx5/meson.build | 2 +- drivers/vdpa/mlx5/meson.build | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/compress/mlx5/meson.build b/drivers/compress/mlx5/meson.build index 49ce3aff46..df4f79fa7e 100644 --- a/drivers/compress/mlx5/meson.build +++ b/drivers/compress/mlx5/meson.build @@ -9,7 +9,7 @@ endif fmt_name = 'mlx5_compress' deps += ['common_mlx5', 'eal', 'compressdev'] -if not ('mlx5' in common_drivers) +if not dpdk_conf.has('RTE_COMMON_MLX5') # avoid referencing undefined variables from common/mlx5 subdir_done() endif diff --git a/drivers/crypto/mlx5/meson.build b/drivers/crypto/mlx5/meson.build index 7521c4c671..7e32095695 100644 --- a/drivers/crypto/mlx5/meson.build +++ b/drivers/crypto/mlx5/meson.build @@ -9,7 +9,7 @@ endif fmt_name = 'mlx5_crypto' deps += ['common_mlx5', 'eal', 'cryptodev'] -if not ('mlx5' in common_drivers) +if not dpdk_conf.has('RTE_COMMON_MLX5') # avoid referencing undefined variables from common/mlx5 subdir_done() endif diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build index f1aab18f82..abd507bd88 100644 --- a/drivers/net/mlx5/meson.build +++ b/drivers/net/mlx5/meson.build @@ -9,7 +9,7 @@ if not (is_linux or is_windows) endif deps += ['hash', 'common_mlx5'] -if not ('mlx5' in common_drivers) +if not dpdk_conf.has('RTE_COMMON_MLX5') # avoid referencing undefined variables from common/mlx5 subdir_done() endif diff --git a/drivers/regex/mlx5/meson.build b/drivers/regex/mlx5/meson.build index 70edc5b6da..87404101b9 100644 --- a/drivers/regex/mlx5/meson.build +++ b/drivers/regex/mlx5/meson.build @@ -8,7 +8,7 @@ if not is_linux endif deps += ['common_mlx5', 'eal', 'regexdev'] -if not ('mlx5' in common_drivers) +if not dpdk_conf.has('RTE_COMMON_MLX5') # avoid referencing undefined variables from common/mlx5 subdir_done() endif diff --git a/drivers/vdpa/mlx5/meson.build b/drivers/vdpa/mlx5/meson.build index 54a4eac6f4..e224d1bcc9 100644 --- a/drivers/vdpa/mlx5/meson.build +++ b/drivers/vdpa/mlx5/meson.build @@ -8,7 +8,7 @@ if not is_linux endif deps += ['hash', 'common_mlx5', 'vhost', 'pci', 'eal', 'sched'] -if not ('mlx5' in common_drivers) +if not dpdk_conf.has('RTE_COMMON_MLX5') # avoid referencing undefined variables from common/mlx5 subdir_done() endif -- 2.36.1