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 ECD29A0565; Mon, 2 Mar 2020 07:32:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 39B611BFF2; Mon, 2 Mar 2020 07:32:19 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 225D42E81; Mon, 2 Mar 2020 07:32:17 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0226VnV0002502; Sun, 1 Mar 2020 22:32:16 -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=2X6efms6HknCllHrB4S6zQH+rIbrKxi4GAuVrqSx5CA=; b=qLfUphioPnXqFJcdvoFlLzmKILFn9aH/AYB8JfgiH08CgvOLEqCOdGdDJYK6w8goV70c KXIVSTSYJj3wKSHv6RHNBioKQ31ESC/qG7GUfKS9V3wyDdtuInqHTg38miC6E92scYQ2 EdpTLnG4cdU876sWsuzNQDHPjT5BfODP67B74jZ5T+VWQ0Tkf0x608D6dMxbuDIEJ3lU N+OBPPGJM9ZW/D875ysq/BvQfRkQw4OYtEtvQv6U65eXD/v7VwDOiFaxvpQG2LcB2mj2 OLOPDhzUqQGlvHB/RVIfUK9W5LOY5qDnUYcToz6AzebjurTef97rPqx9AJm17gn584lP Aw== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2yfrbtwdge-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 01 Mar 2020 22:32:16 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 1 Mar 2020 22:32:14 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 1 Mar 2020 22:32:14 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 1 Mar 2020 22:32:13 -0800 Received: from dc7-eodlnx05.marvell.com (dc7-eodlnx05.marvell.com [10.28.113.55]) by maili.marvell.com (Postfix) with ESMTP id 66A5C3F7040; Sun, 1 Mar 2020 22:32:12 -0800 (PST) From: To: Harman Kalra CC: , , Amit Gupta Date: Mon, 2 Mar 2020 12:01:55 +0530 Message-ID: <1583130716-28360-1-git-send-email-agupta3@marvell.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1581925669-15294-1-git-send-email-agupta3@marvell.com> References: <1581925669-15294-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-02_01:2020-02-28, 2020-03-02 signatures=0 Subject: [dpdk-dev] [PATCH v2 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 additional condition to check if all required internal dependencies are met before building octeontx drivers using meson. Bugzilla ID: 387 Fixes: 7f615033d64f ("drivers/net: build Cavium NIC PMDs with meson") Signed-off-by: Amit Gupta --- v2: - rebased to v20.02 - upstream comments incorporated. drivers/net/octeontx/base/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/octeontx/base/meson.build b/drivers/net/octeontx/base/meson.build index a06a2c8..035aeda 100644 --- a/drivers/net/octeontx/base/meson.build +++ b/drivers/net/octeontx/base/meson.build @@ -10,7 +10,11 @@ sources = [ depends = ['ethdev', 'mempool_octeontx'] static_objs = [] foreach d: depends - static_objs += [get_variable('static_rte_' + d)] + test_dep_obj = '@0@'.format(get_variable('static_rte_' + d, '')) + if test_dep_obj == '' + subdir_done() + endif + static_objs += get_variable('static_rte_' + d) endforeach c_args = cflags -- 1.8.3.1