From patchwork Wed Jan 31 17:09:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 34786 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B38F81B7D1; Wed, 31 Jan 2018 18:09:19 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 7AAD41B760 for ; Wed, 31 Jan 2018 18:09:18 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2018 09:09:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,440,1511856000"; d="scan'208";a="26991397" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.223]) by fmsmga001.fm.intel.com with ESMTP; 31 Jan 2018 09:09:16 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Wed, 31 Jan 2018 17:09:05 +0000 Message-Id: <20180131170905.130702-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.14.3 Subject: [dpdk-dev] [PATCH] net/i40e: fix missing deps for avx2 code in meson 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 AVX2 code path includes files from the ethdev, hash and kvargs libs. These are not listed as dependencies in the case where AVX2 is not in the default instruction set for the build e.g. machine=nehalem. This leads to compiler errors as the header files needed cannot be found. Fixes: e940646b20fa ("drivers/net: build Intel NIC PMDs with meson") Signed-off-by: Bruce Richardson --- drivers/net/i40e/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index 504bfdd0c..8764b0e5b 100644 --- a/drivers/net/i40e/meson.build +++ b/drivers/net/i40e/meson.build @@ -34,7 +34,8 @@ if arch_subdir == 'x86' elif cc.has_argument('-mavx2') i40e_avx2_lib = static_library('i40e_avx2_lib', 'i40e_rxtx_vec_avx2.c', - dependencies: static_rte_eal, + dependencies: [static_rte_ethdev, + static_rte_kvargs, static_rte_hash], c_args: '-mavx2') objs += i40e_avx2_lib.extract_objects('i40e_rxtx_vec_avx2.c') endif