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 5EADDA04F9; Fri, 10 Jan 2020 04:03:17 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8D61F1E895; Fri, 10 Jan 2020 04:02:50 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 51FAA1E87C for ; Fri, 10 Jan 2020 04:02:47 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2020 19:02:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,415,1571727600"; d="scan'208";a="236723925" Received: from unknown (HELO dpdk-zhangalvin-dev.sh.intel.com) ([10.240.179.50]) by orsmga002.jf.intel.com with ESMTP; 09 Jan 2020 19:02:45 -0800 From: alvinx.zhang@intel.com To: haiyue.wang@intel.com, qi.z.zhang@intel.com, beilei.xing@intel.com, xiaolong.ye@intel.com Cc: dev@dpdk.org, Alvin Zhang Date: Fri, 10 Jan 2020 11:00:23 +0800 Message-Id: <1578625225-110361-5-git-send-email-alvinx.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1578625225-110361-1-git-send-email-alvinx.zhang@intel.com> References: <1578625225-110361-1-git-send-email-alvinx.zhang@intel.com> Subject: [dpdk-dev] [RFC 5/7] drivers/net: add meson build for igc 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: Alvin Zhang Add meson build files to igc PMD. Signed-off-by: Alvin Zhang --- drivers/net/igc/base/meson.build | 43 +++++++++++++++++++++++++++++++++ drivers/net/igc/meson.build | 15 ++++++++++++ drivers/net/igc/rte_pmd_igc_version.map | 3 +++ drivers/net/meson.build | 1 + 4 files changed, 62 insertions(+) create mode 100644 drivers/net/igc/base/meson.build create mode 100644 drivers/net/igc/meson.build create mode 100644 drivers/net/igc/rte_pmd_igc_version.map diff --git a/drivers/net/igc/base/meson.build b/drivers/net/igc/base/meson.build new file mode 100644 index 0000000..82aec69 --- /dev/null +++ b/drivers/net/igc/base/meson.build @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2020 Intel Corporation + +sources = [ + 'e1000_80003es2lan.c', + 'e1000_82540.c', + 'e1000_82541.c', + 'e1000_82542.c', + 'e1000_82543.c', + 'e1000_82571.c', + 'e1000_82575.c', + 'e1000_api.c', + 'e1000_base.c', + 'e1000_i210.c', + 'e1000_i225.c', + 'e1000_ich8lan.c', + 'e1000_impl_guide.c', + 'e1000_mac.c', + 'e1000_manage.c', + 'e1000_mbx.c', + 'e1000_nvm.c', + 'e1000_osdep.c', + 'e1000_phy.c', + 'e1000_vf.c' +] + +error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter', + '-Wno-unused-variable', '-Wno-misleading-indentation', + '-Wno-implicit-fallthrough'] +c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif +foreach flag: error_cflags + if cc.has_argument(flag) + c_args += flag + endif +endforeach + +base_lib = static_library('igc_base', sources, + dependencies: static_rte_eal, + c_args: c_args) +base_objs = base_lib.extract_all_objects() diff --git a/drivers/net/igc/meson.build b/drivers/net/igc/meson.build new file mode 100644 index 0000000..81c0c85 --- /dev/null +++ b/drivers/net/igc/meson.build @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2020 Intel Corporation + +allow_experimental_apis = true + +subdir('base') +objs = [base_objs] + +sources = files( + 'igc_logs.c', + 'igc_ethdev.c', + 'igc_txrx.c' +) + +includes += include_directories('base') diff --git a/drivers/net/igc/rte_pmd_igc_version.map b/drivers/net/igc/rte_pmd_igc_version.map new file mode 100644 index 0000000..f9f17e4 --- /dev/null +++ b/drivers/net/igc/rte_pmd_igc_version.map @@ -0,0 +1,3 @@ +DPDK_20.0 { + local: *; +}; diff --git a/drivers/net/meson.build b/drivers/net/meson.build index c300afb..66c6eb5 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -12,6 +12,7 @@ drivers = ['af_packet', 'cxgbe', 'dpaa', 'dpaa2', 'e1000', + 'igc', 'ena', 'enetc', 'enic', -- 1.8.3.1