Skip to content

Commit

Permalink
net/sfc: fix aarch32 build
Browse files Browse the repository at this point in the history
[ upstream commit a5f1b1e ]

The sfc PMD was enabled for aarch32 which is 32-bit mode but has
cpu_family set to aarch64.
As sfc support only 64-bit system, it should be disabled for aarch32.

Updated meson file to disable sfc for aarch32 build.

Fixes: 141d287 ("net/sfc: support aarch64 architecture")

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
  • Loading branch information
Ruifeng Wang authored and bluca committed Jul 12, 2021
1 parent c5b7b05 commit 4fccdef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/common/sfc_efx/meson.build
Expand Up @@ -5,7 +5,7 @@
# This software was jointly developed between OKTET Labs (under contract
# for Solarflare) and Solarflare Communications, Inc.

if (arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64')) and (arch_subdir != 'arm' or not host_machine.cpu_family().startswith('aarch64'))
if (arch_subdir != 'x86' and arch_subdir != 'arm') or (not dpdk_conf.get('RTE_ARCH_64'))
build = false
reason = 'only supported on x86_64 and aarch64'
endif
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/sfc/meson.build
Expand Up @@ -6,7 +6,7 @@
# This software was jointly developed between OKTET Labs (under contract
# for Solarflare) and Solarflare Communications, Inc.

if (arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64')) and (arch_subdir != 'arm' or not host_machine.cpu_family().startswith('aarch64'))
if (arch_subdir != 'x86' and arch_subdir != 'arm') or (not dpdk_conf.get('RTE_ARCH_64'))
build = false
reason = 'only supported on x86_64 and aarch64'
endif
Expand Down

0 comments on commit 4fccdef

Please sign in to comment.