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 D5174A04AD; Fri, 1 May 2020 17:11:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4CC601D9E1; Fri, 1 May 2020 17:11:06 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 024131D59E for ; Fri, 1 May 2020 17:11:03 +0200 (CEST) IronPort-SDR: Q8jnDYZ3mUprQxRvH1Dz8qucjto/bcxvZS7s6AUCY1Di1nxsepXKAUsLwfpMMPsF34csF6ymAy CV5uXbLM0jxw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 08:11:02 -0700 IronPort-SDR: 4b21JGcwYStiwFSJdmUGYakQ8TkVXvN4c7t3Eml0sfqXYamAsosJgeK/PUOlw/4gwG+ZZgJZxQ FyKWiDF/dQ0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,339,1583222400"; d="scan'208";a="247526265" Received: from silpixa00399126.ir.intel.com ([10.237.222.218]) by orsmga007.jf.intel.com with ESMTP; 01 May 2020 08:11:02 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Fri, 1 May 2020 16:05:49 +0100 Message-Id: <20200501150549.6959-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] app/test: allow building with bonding net driver disabled 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" The autotest application build was partially enabled for building with the net/bond driver disabled, but a number of items were missed, leading to build errors when the driver was disabled, e.g. by simply doing "-Ddisable_drivers=net/*" when calling meson. ../app/test/test_link_bonding.c:25:10: fatal error: rte_eth_bond.h: \ No such file or directory With this fix in place, it's possible to build DPDK with meson with all non-bus, non-mempool drivers disabled i.e. using meson option -Ddisable_drivers=baseband/*,compress/*,crypto/*,event/*,net/*,raw/*,vdpa/* Signed-off-by: Bruce Richardson --- app/test/meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/test/meson.build b/app/test/meson.build index fc60acbe7..03dd6c3de 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -63,8 +63,6 @@ test_sources = files('commands.c', 'test_ipsec_sad.c', 'test_kni.c', 'test_kvargs.c', - 'test_link_bonding.c', - 'test_link_bonding_rssconf.c', 'test_logs.c', 'test_lpm.c', 'test_lpm6.c', @@ -136,6 +134,8 @@ test_sources = files('commands.c', ) test_deps = ['acl', + 'bus_pci', + 'bus_vdev', 'bitratestats', 'bpf', 'cfgfile', @@ -306,8 +306,6 @@ driver_test_names = [ 'cryptodev_sw_zuc_autotest', 'eventdev_selftest_octeontx', 'eventdev_selftest_sw', - 'link_bonding_autotest', - 'link_bonding_rssconf_autotest', 'rawdev_autotest', ] @@ -340,6 +338,8 @@ endif # they are used via a driver-specific API. if dpdk_conf.has('RTE_LIBRTE_BOND_PMD') test_deps += 'pmd_bond' + test_sources += ['test_link_bonding.c', 'test_link_bonding_rssconf.c'] + driver_test_names += ['link_bonding_autotest', 'link_bonding_rssconf_autotest'] endif if dpdk_conf.has('RTE_LIBRTE_RING_PMD') test_deps += 'pmd_ring' -- 2.20.1