diff mbox series

[05/15] build: add Meson files for qede PMD

Message ID 20180910200415.8340-6-bluca@debian.org (mailing list archive)
State Superseded, archived
Headers show
Series rename PMDs map files to match library name and add Meson files | expand

Checks

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

Commit Message

Luca Boccassi Sept. 10, 2018, 8:04 p.m. UTC
Signed-off-by: Luca Boccassi <bluca@debian.org>
---
 config/rte_config.h               |  3 ++
 drivers/net/meson.build           |  2 +-
 drivers/net/qede/base/meson.build | 57 +++++++++++++++++++++++++++++++
 drivers/net/qede/meson.build      | 14 ++++++++
 4 files changed, 75 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/qede/base/meson.build
 create mode 100644 drivers/net/qede/meson.build

Comments

Shaikh, Shahed Sept. 11, 2018, 9:16 a.m. UTC | #1
> -----Original Message-----
> From: Luca Boccassi <bluca@debian.org>
> Sent: Tuesday, September 11, 2018 1:34 AM
> To: dev@dpdk.org
> Cc: keith.wiles@intel.com; roy.fan.zhang@intel.com; jingjing.wu@intel.com;
> wenzhuo.lu@intel.com; Mody, Rasesh <Rasesh.Mody@cavium.com>; Patil,
> Harish <Harish.Patil@cavium.com>; Shaikh, Shahed
> <Shahed.Shaikh@cavium.com>; amr.mokhtar@intel.com; Thotton, Shijith
> <Shijith.Thotton@cavium.com>; Srinivasan, Srisivasubramanian
> <Srisivasubramanian.Srinivasan@cavium.com>; liang.j.ma@intel.com;
> peter.mccarthy@intel.com; Jacob, Jerin
> <Jerin.JacobKollanukkaran@cavium.com>; Czekaj, Maciej
> <Maciej.Czekaj@cavium.com>; arybchenko@solarflare.com;
> antosh.shukla@caviumnetworks.com; Gupta, Ashish
> <Ashish.Gupta@cavium.com>; yongwang@vmware.com;
> bruce.richardson@intel.com; thomas@monjalon.net
> Subject: [PATCH 05/15] build: add Meson files for qede PMD

.
.
> +subdir('base')
> +objs = [base_objs]
> +
> +sources = files(
> +       'qede_ethdev.c',
> +       'qede_fdir.c',

Heads up -
We have submitted a patch series in which qede_fdir.c gets renamed to qede_filter.c.
Series has not be accepted yet, so you may have to change this if our patch series gets applied before this one.

> +       'qede_main.c',
> +       'qede_rxtx.c',
> +)
> +
> +#deps += ['ethdev']
> --
> 2.18.0

Acked-by: Shahed Shaikh <shahed.shaikh@cavium.com>
diff mbox series

Patch

diff --git a/config/rte_config.h b/config/rte_config.h
index 46775a8419..ee84f04977 100644
--- a/config/rte_config.h
+++ b/config/rte_config.h
@@ -116,4 +116,7 @@ 
 #define RTE_PMD_RING_MAX_RX_RINGS 16
 #define RTE_PMD_RING_MAX_TX_RINGS 16
 
+/* QEDE PMD defines */
+#define RTE_LIBRTE_QEDE_FW ""
+
 #endif /* _RTE_CONFIG_H_ */
diff --git a/drivers/net/meson.build b/drivers/net/meson.build
index 28efeda0b6..74f4109161 100644
--- a/drivers/net/meson.build
+++ b/drivers/net/meson.build
@@ -24,7 +24,7 @@  drivers = ['af_packet',
 	'mvpp2',
 	'netvsc',
 	'nfp',
-	'null', 'octeontx', 'pcap', 'ring',
+	'null', 'octeontx', 'pcap', 'qede', 'ring',
 	'sfc',
 	'softnic',
 	'szedata2',
diff --git a/drivers/net/qede/base/meson.build b/drivers/net/qede/base/meson.build
new file mode 100644
index 0000000000..59b41c895d
--- /dev/null
+++ b/drivers/net/qede/base/meson.build
@@ -0,0 +1,57 @@ 
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
+
+sources = [
+	'bcm_osal.c',
+	'ecore_cxt.c',
+	'ecore_dcbx.c',
+	'ecore_dev.c',
+	'ecore_hw.c',
+	'ecore_init_fw_funcs.c',
+	'ecore_init_ops.c',
+	'ecore_int.c',
+	'ecore_l2.c',
+	'ecore_mcp.c',
+	'ecore_sp_commands.c',
+	'ecore_spq.c',
+	'ecore_sriov.c',
+	'ecore_vf.c',
+]
+
+
+error_cflags = [
+	'-Wno-unused-parameter',
+	'-Wno-sign-compare',
+	'-Wno-missing-prototypes',
+	'-Wno-cast-qual',
+	'-Wno-unused-function',
+	'-Wno-unused-variable',
+	'-Wno-strict-aliasing',
+	'-Wno-missing-prototypes',
+	'-Wno-unused-value',
+	'-Wno-format-nonliteral',
+	'-Wno-shift-negative-value',
+	'-Wno-unused-but-set-variable',
+	'-Wno-missing-declarations',
+	'-Wno-maybe-uninitialized',
+	'-Wno-strict-prototypes',
+	'-Wno-shift-negative-value',
+	'-Wno-implicit-fallthrough',
+	'-Wno-format-extra-args',
+	'-Wno-visibility',
+	'-Wno-empty-body',
+	'-Wno-invalid-source-encoding',
+	'-Wno-sometimes-uninitialized',
+	'-Wno-pointer-bool-conversion',
+]
+c_args = cflags
+foreach flag: error_cflags
+        if cc.has_argument(flag)
+                c_args += flag
+        endif
+endforeach
+
+base_lib = static_library('qede_base', sources,
+	dependencies: static_rte_net,
+	c_args: c_args)
+base_objs = base_lib.extract_all_objects()
diff --git a/drivers/net/qede/meson.build b/drivers/net/qede/meson.build
new file mode 100644
index 0000000000..167c03bdf2
--- /dev/null
+++ b/drivers/net/qede/meson.build
@@ -0,0 +1,14 @@ 
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
+
+subdir('base')
+objs = [base_objs]
+
+sources = files(
+	'qede_ethdev.c',
+	'qede_fdir.c',
+	'qede_main.c',
+	'qede_rxtx.c',
+)
+
+#deps += ['ethdev']