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 DB0C3A04B5; Thu, 10 Sep 2020 04:12:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2EB5C1B9B7; Thu, 10 Sep 2020 04:12:37 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4A5C12BA8 for ; Thu, 10 Sep 2020 04:12:35 +0200 (CEST) IronPort-SDR: soXHmXc5NBZ2O9R/R9yJWQWj0JToZCsyfIlVMAEiPdCnJ7+Sc8PDbrfB1Q+HLDRqPLX3/ImfNu ue5iWcsG9svA== X-IronPort-AV: E=McAfee;i="6000,8403,9739"; a="176519080" X-IronPort-AV: E=Sophos;i="5.76,411,1592895600"; d="scan'208";a="176519080" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2020 19:12:31 -0700 IronPort-SDR: UuYhuwgvj8ct1qkw/cHLZK7DfblXlTc50Pq+kd8EM2PuK5lG3oBXVsTrlvlM0WHfvz2gizH6lC PNZD9BvSP7YA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,411,1592895600"; d="scan'208";a="317738182" Received: from intel-npg-odc-srv01.cd.intel.com ([10.240.178.136]) by orsmga002.jf.intel.com with ESMTP; 09 Sep 2020 19:12:26 -0700 From: SteveX Yang To: dev@dpdk.org Cc: wenzhuo.lu@intel.com, beilei.xing@intel.com, qiming.yang@intel.com, SteveX Yang Date: Thu, 10 Sep 2020 01:55:25 +0000 Message-Id: <20200910015525.59124-1-stevex.yang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1] app/test-pmd: fix meson build failed when enabled pmd_bonded 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" meson build cannot find the header rte_eth_bond.h when build DPDK first time or never installed DPDK lib after build via meson/ninja. Because the corresponding header directory isn't included after enabled RTE_LIBRTE_PMD_BOND macro. Add the header file location and link library to meson.build of test-pmd Signed-off-by: SteveX Yang --- app/test-pmd/meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index ea56e547b..db0ff02eb 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -4,6 +4,11 @@ # override default name to drop the hyphen name = 'testpmd' cflags += '-Wno-deprecated-declarations' + +if dpdk_conf.has('RTE_LIBRTE_BOND_PMD') + cflags += '-I' + meson.source_root() + '/drivers/net/bonding' +endif + sources = files('5tswap.c', 'cmdline.c', 'cmdline_flow.c', @@ -25,6 +30,11 @@ sources = files('5tswap.c', 'util.c') deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci'] + +if dpdk_conf.has('RTE_LIBRTE_BOND_PMD') + deps += 'pmd_bond' +endif + if dpdk_conf.has('RTE_LIBRTE_PDUMP') deps += 'pdump' endif -- 2.17.1