Skip to contentSkip to conversation

mempool/ring: build on Windows

PATCH Applied Tal Shnaiderman 3 participants 3 messages Sep 16, 2020 – Oct 5, 2020 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mempool/ring: build on Windows

Build the ring mempool handler for Windows OS.

---
 drivers/mempool/bucket/meson.build    | 5 +++++
 drivers/mempool/meson.build           | 4 ----
 drivers/mempool/octeontx/meson.build  | 5 +++++
 drivers/mempool/octeontx2/meson.build | 5 +++++
 drivers/mempool/stack/meson.build     | 5 +++++
 5 files changed, 20 insertions(+), 4 deletions(-)
drivers/mempool/bucket/meson.build +5 -0
index 618d791283..61de2dc9b9 100644
@@ -6,4 +6,9 @@
 # This software was jointly developed between OKTET Labs (under contract
 # for Solarflare) and Solarflare Communications, Inc.
 
+if is_windows
+	build = false
+	reason = 'not supported on Windows'
+endif
+
 sources = files('rte_mempool_bucket.c')
drivers/mempool/meson.build +0 -4
index c9609f1453..7520e489f4 100644
@@ -1,10 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-if is_windows
-	subdir_done()
-endif
-
 drivers = ['bucket', 'dpaa', 'dpaa2', 'octeontx', 'octeontx2', 'ring', 'stack']
 std_deps = ['mempool']
 config_flag_fmt = 'RTE_LIBRTE_@0@_MEMPOOL'
drivers/mempool/octeontx/meson.build +5 -0
index 3baaf7db25..b5695a9329 100644
@@ -1,6 +1,11 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
+if is_windows
+	build = false
+	reason = 'not supported on Windows'
+endif
+
 sources = files('octeontx_fpavf.c',
 		'rte_mempool_octeontx.c'
 )
drivers/mempool/octeontx2/meson.build +5 -0
index 9fde40f0e9..0226f76d4b 100644
@@ -2,6 +2,11 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
+if is_windows
+	build = false
+	reason = 'not supported on Windows'
+endif
+
 sources = files('otx2_mempool_ops.c',
 		'otx2_mempool.c',
 		'otx2_mempool_irq.c',
drivers/mempool/stack/meson.build +5 -0
index 580dde79eb..8425772a42 100644
@@ -1,6 +1,11 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017-2019 Intel Corporation
 
+if is_windows
+	build = false
+	reason = 'not supported on Windows'
+endif
+
 sources = files('rte_mempool_stack.c')
 
 deps += ['stack']
Signature · 1 line
2.16.1.windows.4
Acked-by on v1 1/1
#1 lore raw
Quoted 78 lines · Tal Shnaiderman

Build the ring mempool handler for Windows OS.

---
  drivers/mempool/bucket/meson.build    | 5 +++++
  drivers/mempool/meson.build           | 4 ----
  drivers/mempool/octeontx/meson.build  | 5 +++++
  drivers/mempool/octeontx2/meson.build | 5 +++++
  drivers/mempool/stack/meson.build     | 5 +++++
  5 files changed, 20 insertions(+), 4 deletions(-)
drivers/mempool/bucket/meson.build +5 -0
index 618d791283..61de2dc9b9 100644
@@ -6,4 +6,9 @@
  # This software was jointly developed between OKTET Labs (under contract
  # for Solarflare) and Solarflare Communications, Inc.
 
+if is_windows
+	build = false
+	reason = 'not supported on Windows'
+endif
+
  sources = files('rte_mempool_bucket.c')
drivers/mempool/meson.build +0 -4
index c9609f1453..7520e489f4 100644
@@ -1,10 +1,6 @@
  # SPDX-License-Identifier: BSD-3-Clause
  # Copyright(c) 2017 Intel Corporation
 
-if is_windows
-	subdir_done()
-endif
-
  drivers = ['bucket', 'dpaa', 'dpaa2', 'octeontx', 'octeontx2', 'ring', 'stack']
  std_deps = ['mempool']
  config_flag_fmt = 'RTE_LIBRTE_@0@_MEMPOOL'
drivers/mempool/octeontx/meson.build +5 -0
index 3baaf7db25..b5695a9329 100644
@@ -1,6 +1,11 @@
  # SPDX-License-Identifier: BSD-3-Clause
  # Copyright(c) 2017 Cavium, Inc
 
+if is_windows
+	build = false
+	reason = 'not supported on Windows'
+endif
+
  sources = files('octeontx_fpavf.c',
  		'rte_mempool_octeontx.c'
  )
drivers/mempool/octeontx2/meson.build +5 -0
index 9fde40f0e9..0226f76d4b 100644
@@ -2,6 +2,11 @@
  # Copyright(C) 2019 Marvell International Ltd.
  #
 
+if is_windows
+	build = false
+	reason = 'not supported on Windows'
+endif
+
  sources = files('otx2_mempool_ops.c',
  		'otx2_mempool.c',
  		'otx2_mempool_irq.c',
drivers/mempool/stack/meson.build +0 -0
index 580dde79eb..8425772a42 100644
@@ -1,6 +1,11 @@
  # SPDX-License-Identifier: BSD-3-Clause

drivers/mempool/stack/meson.build line 11

Quoted 10 lines
drivers/mempool/stack/meson.build +5 -0
  # Copyright(c) 2017-2019 Intel Corporation
 
+if is_windows
+	build = false
+	reason = 'not supported on Windows'
+endif
+
  sources = files('rte_mempool_stack.c')
 
  deps += ['stack']