From: Pavan Nikhilesh <pbhagavat...@marvell.com> Due to Linux kernel dependency, only enable build for 64bit Linux.
Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com> --- drivers/raw/octeontx2_dma/meson.build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/raw/octeontx2_dma/meson.build b/drivers/raw/octeontx2_dma/meson.build index 11f74680a..191035125 100644 --- a/drivers/raw/octeontx2_dma/meson.build +++ b/drivers/raw/octeontx2_dma/meson.build @@ -2,14 +2,16 @@ # Copyright(C) 2019 Marvell International Ltd. # +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') + build = false + reason = 'only supported on 64-bit Linux' + subdir_done() +endif + deps += ['bus_pci', 'common_octeontx2', 'rawdev'] sources = files('otx2_dpi_rawdev.c', 'otx2_dpi_msg.c', 'otx2_dpi_test.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) -- 2.17.1