The drivers for OCTEON TX2 are not supported in 32-bit mode.
Suggested-by: Jerin Jacob <jerinj@marvell.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Jerin Jacob <jerinj@marvell.com>
# Copyright(C) 2019 Marvell International Ltd.
#
# Copyright(C) 2019 Marvell International Ltd.
#
+if not dpdk_conf.get('RTE_ARCH_64')
+ build = false
+ reason = 'only supported on 64-bit'
+ subdir_done()
+endif
+
sources= files('otx2_dev.c',
'otx2_irq.c',
'otx2_mbox.c',
sources= files('otx2_dev.c',
'otx2_irq.c',
'otx2_mbox.c',
-extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
- extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
-
-foreach flag: extra_flags
- if cc.has_argument(flag)
- cflags += flag
- endif
-endforeach
-
deps = ['eal', 'pci', 'ethdev', 'kvargs']
includes += include_directories('../../common/octeontx2',
'../../mempool/octeontx2', '../../bus/pci')
deps = ['eal', 'pci', 'ethdev', 'kvargs']
includes += include_directories('../../common/octeontx2',
'../../mempool/octeontx2', '../../bus/pci')
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2019 Marvell International Ltd.
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2019 Marvell International Ltd.
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
- reason = 'only supported on Linux'
+ reason = 'only supported on 64-bit Linux'
+ subdir_done()
endif
deps += ['bus_pci']
endif
deps += ['bus_pci']
'otx2_cryptodev_ops.c',
'otx2_cryptodev_sec.c')
'otx2_cryptodev_ops.c',
'otx2_cryptodev_sec.c')
-extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
- extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
-
-foreach flag: extra_flags
- if cc.has_argument(flag)
- cflags += flag
- endif
-endforeach
-
includes += include_directories('../../common/cpt')
includes += include_directories('../../common/octeontx2')
includes += include_directories('../../crypto/octeontx2')
includes += include_directories('../../common/cpt')
includes += include_directories('../../common/octeontx2')
includes += include_directories('../../crypto/octeontx2')
# Copyright(C) 2019 Marvell International Ltd.
#
# Copyright(C) 2019 Marvell International Ltd.
#
+if not dpdk_conf.get('RTE_ARCH_64')
+ build = false
+ reason = 'only supported on 64-bit'
+ subdir_done()
+endif
+
sources = files('otx2_worker.c',
'otx2_worker_dual.c',
'otx2_evdev.c',
sources = files('otx2_worker.c',
'otx2_worker_dual.c',
'otx2_evdev.c',
-extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
- extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
-
-foreach flag: extra_flags
- if cc.has_argument(flag)
- cflags += flag
- endif
-endforeach
-
deps += ['bus_pci', 'common_octeontx2', 'crypto_octeontx2', 'mempool_octeontx2', 'net_octeontx2']
includes += include_directories('../../crypto/octeontx2')
deps += ['bus_pci', 'common_octeontx2', 'crypto_octeontx2', 'mempool_octeontx2', 'net_octeontx2']
includes += include_directories('../../crypto/octeontx2')
if is_windows
build = false
reason = 'not supported on Windows'
if is_windows
build = false
reason = 'not supported on Windows'
+ subdir_done()
+endif
+if not dpdk_conf.get('RTE_ARCH_64')
+ build = false
+ reason = 'only supported on 64-bit'
+ subdir_done()
endif
sources = files('otx2_mempool_ops.c',
endif
sources = files('otx2_mempool_ops.c',
-extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
- extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
-
-foreach flag: extra_flags
- if cc.has_argument(flag)
- cflags += flag
- endif
-endforeach
-
deps += ['eal', 'mbuf', 'kvargs', 'bus_pci', 'common_octeontx2', 'mempool']
deps += ['eal', 'mbuf', 'kvargs', 'bus_pci', 'common_octeontx2', 'mempool']
# Copyright(C) 2019 Marvell International Ltd.
#
# Copyright(C) 2019 Marvell International Ltd.
#
+if not dpdk_conf.get('RTE_ARCH_64')
+ build = false
+ reason = 'only supported on 64-bit'
+ subdir_done()
+endif
+
sources = files('otx2_rx.c',
'otx2_tx.c',
'otx2_tm.c',
sources = files('otx2_rx.c',
'otx2_tx.c',
'otx2_tm.c',
deps += ['common_octeontx2', 'mempool_octeontx2']
extra_flags = ['-flax-vector-conversions']
deps += ['common_octeontx2', 'mempool_octeontx2']
extra_flags = ['-flax-vector-conversions']
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
- extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
-
foreach flag: extra_flags
if cc.has_argument(flag)
cflags += flag
foreach flag: extra_flags
if cc.has_argument(flag)
cflags += flag
# Copyright(C) 2020 Marvell International Ltd.
#
# Copyright(C) 2020 Marvell International Ltd.
#
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
- reason = 'only supported on Linux'
+ reason = 'only supported on 64-bit Linux'
+ subdir_done()
endif
lib = cc.find_library('librxp_compiler', required: false)
endif
lib = cc.find_library('librxp_compiler', required: false)
'otx2_regexdev_compiler.c'
)
'otx2_regexdev_compiler.c'
)
-extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
- extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
-
-# for clang 32-bit compiles we need libatomic for 64-bit atomic ops
-if cc.get_id() == 'clang' and dpdk_conf.get('RTE_ARCH_64') == false
- ext_deps += cc.find_library('atomic')
-endif
-
-foreach flag: extra_flags
- if cc.has_argument(flag)
- cflags += flag
- endif
-endforeach
-
fmt_name = 'octeontx2_regex'
deps += ['bus_pci', 'common_octeontx2', 'regexdev']
fmt_name = 'octeontx2_regex'
deps += ['bus_pci', 'common_octeontx2', 'regexdev']