[RFC,5/7] drivers/net: add meson build for igc
diff mbox series

Message ID 1578625225-110361-5-git-send-email-alvinx.zhang@intel.com
State Changes Requested, archived
Delegated to: Ferruh Yigit
Headers show
Series
  • [RFC,1/7] net/igc: base driver
Related show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Zhang, AlvinX Jan. 10, 2020, 3 a.m. UTC
From: Alvin Zhang <alvinx.zhang@intel.com>

Add meson build files to igc PMD.

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
---
 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

Patch
diff mbox series

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',