[dpdk-dev] [PATCH v1 1/9] raw/octeontx2_dma: add build infra and device probe

Luca Boccassi bluca at debian.org
Mon Jun 3 13:17:59 CEST 2019


On Sat, 2019-06-01 at 23:50 +0530, jerinj at marvell.com wrote:
> diff --git a/drivers/raw/octeontx2_dma/meson.build
> b/drivers/raw/octeontx2_dma/meson.build
> new file mode 100644
> index 000000000..1281268aa
> --- /dev/null
> +++ b/drivers/raw/octeontx2_dma/meson.build
> @@ -0,0 +1,18 @@
> +# SPDX-License-Identifier: BSD-3-Clause
> +# Copyright(C) 2019 Marvell International Ltd.
> +#
> +
> +deps += ['rawdev', 'ring', 'kvargs', 'bus_pci', 'common_octeontx2',
> 'mempool_octeontx2']
> +sources = files('otx2_dpi_rawdev.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

If it only works on 64bit, shouldn't the build be disabled for 32bit
targets?

-- 
Kind regards,
Luca Boccassi


More information about the dev mailing list