[dpdk-dev] [PATCH 1/7] common/octeontx: enable build only on 64bit Linux
Jerin Jacob
jerinjacobk at gmail.com
Wed Mar 24 11:55:46 CET 2021
On Thu, Feb 25, 2021 at 10:33 PM <pbhagavatula at marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavatula at marvell.com>
>
> Due to Linux kernel dependency, only enable build for 64bit Linux.
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
Series Acked-by: Jerin Jacob <jerinj at marvell.com>
> ---
> drivers/common/octeontx/meson.build | 6 ++++++
> drivers/common/octeontx2/meson.build | 4 ++--
> 2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/common/octeontx/meson.build b/drivers/common/octeontx/meson.build
> index 203d1ef49..f29b58320 100644
> --- a/drivers/common/octeontx/meson.build
> +++ b/drivers/common/octeontx/meson.build
> @@ -2,4 +2,10 @@
> # Copyright(c) 2018 Cavium, Inc
> #
>
> +if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
> + build = false
> + reason = 'only supported on 64-bit Linux'
> + subdir_done()
> +endif
> +
> sources = files('octeontx_mbox.c')
> diff --git a/drivers/common/octeontx2/meson.build b/drivers/common/octeontx2/meson.build
> index 84fb11524..3ae106792 100644
> --- a/drivers/common/octeontx2/meson.build
> +++ b/drivers/common/octeontx2/meson.build
> @@ -2,9 +2,9 @@
> # Copyright(C) 2019 Marvell International Ltd.
> #
>
> -if not dpdk_conf.get('RTE_ARCH_64')
> +if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
> build = false
> - reason = 'only supported on 64-bit'
> + reason = 'only supported on 64-bit Linux'
> subdir_done()
> endif
>
> --
> 2.17.1
>
More information about the dev
mailing list