* [PATCH] net/zxdh: fix building check for arm64
@ 2025-09-04 14:10 luca.boccassi
2025-09-04 14:18 ` [PATCH v2] " luca.boccassi
0 siblings, 1 reply; 3+ messages in thread
From: luca.boccassi @ 2025-09-04 14:10 UTC (permalink / raw)
To: dev
From: Luca Boccassi <luca.boccassi@gmail.com>
The comment and docs say this should be built on x86_64 and aarch64,
but RTE_ARCH_64 is not aarch64, that's RTE_ARCH_ARM64, so fix it.
Also the check makes the build skip unless RTE_ARCH_X86_64 is true,
so switch it to an 'and' instead of an 'or', to build on both arm64
and x86_64, and skip elsewhere.
Fixes: 29e89288ff14 ("net/zxdh: add driver skeleton")
Cc: stable@dpdk.org
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
---
drivers/net/zxdh/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/zxdh/meson.build b/drivers/net/zxdh/meson.build
index a48a0d43c2..723697551c 100644
--- a/drivers/net/zxdh/meson.build
+++ b/drivers/net/zxdh/meson.build
@@ -7,7 +7,7 @@ if not is_linux
subdir_done()
endif
-if not dpdk_conf.has('RTE_ARCH_X86_64') or not dpdk_conf.get('RTE_ARCH_64')
+if not dpdk_conf.has('RTE_ARCH_X86_64') and not dpdk_conf.get('RTE_ARCH_ARM64')
build = false
reason = 'only supported on x86_64 and aarch64'
subdir_done()
--
2.47.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2] net/zxdh: fix building check for arm64
2025-09-04 14:10 [PATCH] net/zxdh: fix building check for arm64 luca.boccassi
@ 2025-09-04 14:18 ` luca.boccassi
2025-09-04 14:54 ` David Marchand
0 siblings, 1 reply; 3+ messages in thread
From: luca.boccassi @ 2025-09-04 14:18 UTC (permalink / raw)
To: dev
From: Luca Boccassi <luca.boccassi@gmail.com>
The comment and docs say this should be built on x86_64 and aarch64,
but RTE_ARCH_64 is not aarch64, that's RTE_ARCH_ARM64, so fix it.
Also the check makes the build skip unless RTE_ARCH_X86_64 is true,
so switch it to an 'and' instead of an 'or', to build on both arm64
and x86_64, and skip elsewhere.
Fixes: 29e89288ff14 ("net/zxdh: add driver skeleton")
Cc: stable@dpdk.org
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
---
v2: use dpdk_conf.has() instead of .get()
drivers/net/zxdh/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/zxdh/meson.build b/drivers/net/zxdh/meson.build
index a48a0d43c2..5e1bc42b28 100644
--- a/drivers/net/zxdh/meson.build
+++ b/drivers/net/zxdh/meson.build
@@ -7,7 +7,7 @@ if not is_linux
subdir_done()
endif
-if not dpdk_conf.has('RTE_ARCH_X86_64') or not dpdk_conf.get('RTE_ARCH_64')
+if not dpdk_conf.has('RTE_ARCH_X86_64') and not dpdk_conf.has('RTE_ARCH_ARM64')
build = false
reason = 'only supported on x86_64 and aarch64'
subdir_done()
--
2.47.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] net/zxdh: fix building check for arm64
2025-09-04 14:18 ` [PATCH v2] " luca.boccassi
@ 2025-09-04 14:54 ` David Marchand
0 siblings, 0 replies; 3+ messages in thread
From: David Marchand @ 2025-09-04 14:54 UTC (permalink / raw)
To: luca.boccassi; +Cc: dev, Bruce Richardson, Thomas Monjalon
On Thu, 4 Sept 2025 at 16:19, <luca.boccassi@gmail.com> wrote:
>
> From: Luca Boccassi <luca.boccassi@gmail.com>
>
> The comment and docs say this should be built on x86_64 and aarch64,
> but RTE_ARCH_64 is not aarch64, that's RTE_ARCH_ARM64, so fix it.
>
> Also the check makes the build skip unless RTE_ARCH_X86_64 is true,
> so switch it to an 'and' instead of an 'or', to build on both arm64
> and x86_64, and skip elsewhere.
>
> Fixes: 29e89288ff14 ("net/zxdh: add driver skeleton")
> Cc: stable@dpdk.org
>
> Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Good catch.
It seems we have similar construct in other drivers (and some of them
look buggy, like net/hns3 X and Y or Z without parens).
Could we align all on a single way of checking this combination?
$ git grep -B4 'only supported on x86_64 and aarch64'
drivers/common/sfc_efx/meson.build-endif
drivers/common/sfc_efx/meson.build-
drivers/common/sfc_efx/meson.build-if (arch_subdir != 'x86' and
arch_subdir != 'arm') or (not dpdk_conf.get('RTE_ARCH_64'))
drivers/common/sfc_efx/meson.build- build = false
drivers/common/sfc_efx/meson.build: reason = 'only supported on
x86_64 and aarch64'
--
drivers/dma/hisilicon/meson.build-endif
drivers/dma/hisilicon/meson.build-
drivers/dma/hisilicon/meson.build-if (arch_subdir != 'x86' and
arch_subdir != 'arm') or (not dpdk_conf.get('RTE_ARCH_64'))
drivers/dma/hisilicon/meson.build- build = false
drivers/dma/hisilicon/meson.build: reason = 'only supported on
x86_64 and aarch64'
--
drivers/net/hns3/meson.build-endif
drivers/net/hns3/meson.build-
drivers/net/hns3/meson.build-if arch_subdir != 'x86' and arch_subdir
!= 'arm' or not dpdk_conf.get('RTE_ARCH_64')
drivers/net/hns3/meson.build- build = false
drivers/net/hns3/meson.build: reason = 'only supported on x86_64 and aarch64'
--
drivers/net/sfc/meson.build-endif
drivers/net/sfc/meson.build-
drivers/net/sfc/meson.build-if (arch_subdir != 'x86' and arch_subdir
!= 'arm') or (not dpdk_conf.get('RTE_ARCH_64'))
drivers/net/sfc/meson.build- build = false
drivers/net/sfc/meson.build: reason = 'only supported on x86_64 and aarch64'
--
drivers/net/zxdh/meson.build-endif
drivers/net/zxdh/meson.build-
drivers/net/zxdh/meson.build-if not dpdk_conf.has('RTE_ARCH_X86_64')
or not dpdk_conf.get('RTE_ARCH_64')
drivers/net/zxdh/meson.build- build = false
drivers/net/zxdh/meson.build: reason = 'only supported on x86_64 and aarch64'
--
drivers/vdpa/sfc/meson.build-if ((arch_subdir != 'x86' or not
dpdk_conf.get('RTE_ARCH_64')) and
drivers/vdpa/sfc/meson.build- (arch_subdir != 'arm' or not
drivers/vdpa/sfc/meson.build-
host_machine.cpu_family().startswith('aarch64')))
drivers/vdpa/sfc/meson.build- build = false
drivers/vdpa/sfc/meson.build: reason = 'only supported on x86_64 and aarch64'
--
David Marchand
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-04 14:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-04 14:10 [PATCH] net/zxdh: fix building check for arm64 luca.boccassi
2025-09-04 14:18 ` [PATCH v2] " luca.boccassi
2025-09-04 14:54 ` David Marchand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).