From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 10688A056B; Wed, 4 Mar 2020 06:47:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 384482C16; Wed, 4 Mar 2020 06:47:13 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id C0E242BB8; Wed, 4 Mar 2020 06:47:11 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0245eI8t003590; Tue, 3 Mar 2020 21:47:10 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0818; bh=t3Vnj5BLhlAhLfBjkOS+hsyPZObTq2zgmLVs7FGPIBQ=; b=mTMJLr3FeO3aLMVUSLCIfh3/n8qVISV55TKt0L4CxDqlWyEBp8EJ3KmCXh9sxUu5CCJ0 0zIf31q/4XiUq3RCCs1C8pI5f/7gJHAzy7Q0Vvl3JuPQz0jYbh6z3xoO+6zGwiYf0OX8 bRmjD/pWqGY8X15mJFr67Z+nGkWerGh/LTyic1tCmt2SlDboYisA1uGRjr9ld4wk0VeT e93YOFSvCemvPH1+OcKX0fbb5Okvddd0phrukUhf+qO68HlySWuaGDQJ7SuOWZsb2FsR V7IiOXT90CHuiTBvn5L3zAmK+bTjiURT5uvqS4xhR3OeNliXJa9obkJCYIYXoxRfeFya CA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2yhxw4acda-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 03 Mar 2020 21:47:10 -0800 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 3 Mar 2020 21:47:09 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 3 Mar 2020 21:47:09 -0800 Received: from dc7-eodlnx05.marvell.com (dc7-eodlnx05.marvell.com [10.28.113.55]) by maili.marvell.com (Postfix) with ESMTP id 2871D3F7043; Tue, 3 Mar 2020 21:47:07 -0800 (PST) From: To: Harman Kalra CC: , , Amit Gupta Date: Wed, 4 Mar 2020 11:17:04 +0530 Message-ID: <1583300824-23635-1-git-send-email-agupta3@marvell.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1583130716-28360-1-git-send-email-agupta3@marvell.com> References: <1583130716-28360-1-git-send-email-agupta3@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-03-03_08:2020-03-03, 2020-03-03 signatures=0 Subject: [dpdk-dev] [PATCH v3 1/1] net/octeontx: fix meson build for disabled octeontx drivers 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" From: Amit Gupta Add a condition to check if octeontx drivers are disabled. octeontx drivers are built only if dependent drivers i.e. ethdev, mempool and common/octeontx are enabled. Bugzilla ID: 387 Fixes: 7f615033d64f ("drivers/net: build Cavium NIC PMDs with meson") Signed-off-by: Amit Gupta --- drivers/net/octeontx/base/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/octeontx/base/meson.build b/drivers/net/octeontx/base/meson.build index a06a2c8..e1060fc 100644 --- a/drivers/net/octeontx/base/meson.build +++ b/drivers/net/octeontx/base/meson.build @@ -10,7 +10,10 @@ sources = [ depends = ['ethdev', 'mempool_octeontx'] static_objs = [] foreach d: depends - static_objs += [get_variable('static_rte_' + d)] + if not is_variable('shared_rte_' + d) + subdir_done() + endif + static_objs += get_variable('static_rte_' + d) endforeach c_args = cflags -- 1.8.3.1