]> git.droids-corp.org - dpdk.git/commitdiff
drivers/crypto: move Windows build check
authorTal Shnaiderman <talshn@nvidia.com>
Mon, 25 Oct 2021 08:46:16 +0000 (11:46 +0300)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 4 Nov 2021 18:43:14 +0000 (19:43 +0100)
Remove the check and build failure from crypto/meson.build
in case building for Windows OS.

Add this check/failure in the meson.build file of each crypto PMD
that is not enforcing it to allow PMD support for Windows
per driver when applicable.

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
12 files changed:
drivers/crypto/armv8/meson.build
drivers/crypto/bcmfs/meson.build
drivers/crypto/ccp/meson.build
drivers/crypto/ipsec_mb/meson.build
drivers/crypto/meson.build
drivers/crypto/mvsam/meson.build
drivers/crypto/null/meson.build
drivers/crypto/octeontx/meson.build
drivers/crypto/openssl/meson.build
drivers/crypto/qat/meson.build
drivers/crypto/scheduler/meson.build
drivers/crypto/virtio/meson.build

index 40a4dbb7bb53d5a10612dad0648ec40bdf30fd34..5effba8bbc9ddbbb234c9358518e681b91fb9364 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2019 Arm Limited
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 dep = dependency('libAArch64crypto', required: false, method: 'pkg-config')
 if not dep.found()
     build = false
index d67e78d51bf08987384dbd83d8d47f8fedf79e1a..5842f83a3bb1da34477a00381675b1f7f6b2f5fd 100644 (file)
@@ -3,6 +3,12 @@
 # All rights reserved.
 #
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 deps += ['eal', 'bus_vdev']
 sources = files(
         'bcmfs_logs.c',
index 0f82b9b90b3514dcdcb51d47e3edc620849367d0..a4f340600922b733dd42061a4899bbcc6a0ebab5 100644 (file)
@@ -4,6 +4,7 @@
 if not is_linux
     build = false
     reason = 'only supported on Linux'
+    subdir_done()
 endif
 dep = dependency('libcrypto', required: false, method: 'pkg-config')
 if not dep.found()
index b4a81efa8eed4040025d826ea30f393163a31af8..a89b29d6c336840657dc4948792091db83f027a4 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2021 Intel Corporation
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 IMB_required_ver = '1.0.0'
 lib = cc.find_library('IPSec_MB', required: false)
 if not lib.found()
index 2585471e9305c338fbce29954a139b64a20a67d9..59f02ea47c2f76ac0bc118403a59a51594354981 100644 (file)
@@ -1,9 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-if is_windows
-    subdir_done()
-endif
 
 drivers = [
         'armv8',
index fec167bf291c08505ffd9b031d5812be87bffa7d..bf3c4323def49484183945f11b1cb71981ea08d3 100644 (file)
@@ -3,6 +3,12 @@
 # Copyright(c) 2018 Semihalf.
 # All rights reserved.
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 dep = dependency('libmusdk', required: false, method: 'pkg-config')
 if not dep.found()
     build = false
index 1f7d644de180e4ca230a14e8841a203c44cbeca6..acc16e7d81753b6473d8d77340783121cdfdb1f9 100644 (file)
@@ -1,5 +1,11 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 deps += 'bus_vdev'
 sources = files('null_crypto_pmd.c', 'null_crypto_pmd_ops.c')
index bc6187e1cf2850be4081bae34ccb1aeabbbaec78..387727c6ab584e4a598f3ef264361effb52a1f2c 100644 (file)
@@ -8,6 +8,12 @@ if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     subdir_done()
 endif
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 deps += ['bus_pci']
 deps += ['bus_vdev']
 deps += ['common_cpt']
index b21fca0be3e3610aa57b6d6513838b925791e358..cd962da1d6ab5812560fad67fdbc62a2e77bfb52 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 dep = dependency('libcrypto', required: false, method: 'pkg-config')
 if not dep.found()
     build = false
index 544f481067d7f5aad191425da68a092c350bf7f2..c7c7daf3ac304beb1432f51f005d434fcd32dec7 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017-2018 Intel Corporation
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 # this does not build the QAT driver, instead that is done in the compression
 # driver which comes later. Here we just add our sources files to the list
 build = false
index d510f49970f3f0af3ee2d03a7545a756742de283..cd18efc7915083056197e858b282198de17648bd 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 deps += ['bus_vdev', 'reorder']
 sources = files(
         'rte_cryptodev_scheduler.c',
index 1b6d77f66f12837874012de07ee8587afe1edaa1..45533c9b893004071388c0e517a699c6a2d53a57 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 HUAWEI TECHNOLOGIES CO., LTD.
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 includes += include_directories('../../../lib/vhost')
 deps += 'bus_pci'
 sources = files(