[v1,63/72] drivers/net: enable Windows net/mlx5 compilation

Message ID 20201027232335.31427-64-ophirmu@nvidia.com (mailing list archive)
State Superseded, archived
Delegated to: Raslan Darawsheh
Headers
Series mlx5 Windows support - part #5 |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Ophir Munk Oct. 27, 2020, 11:23 p.m. UTC
  Add mlx5 as the first driver to be compiled under Windows (file
drivers/net/meson.build).

Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
---
 drivers/net/meson.build | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
  

Comments

Thomas Monjalon Oct. 28, 2020, 7:31 a.m. UTC | #1
28/10/2020 00:23, Ophir Munk:
> Add mlx5 as the first driver to be compiled under Windows (file
> drivers/net/meson.build).

It would be more interesting to have this patch earlier,
probably merged with the addition of the exports file.

I think the series should start with fixes and stubs,
then compile the driver skeleton,
and terminates with adding the features.
  

Patch

diff --git a/drivers/net/meson.build b/drivers/net/meson.build
index 4e4c2c9..a341962 100644
--- a/drivers/net/meson.build
+++ b/drivers/net/meson.build
@@ -1,10 +1,6 @@ 
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-if is_windows
-	subdir_done()
-endif
-
 drivers = ['af_packet',
 	'af_xdp',
 	'ark',
@@ -55,6 +51,11 @@  drivers = ['af_packet',
 	'virtio',
 	'vmxnet3',
 ]
+
+if is_windows
+drivers = ['mlx5',]
+endif
+
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
 std_deps += ['bus_vdev']        # same with vdev bus