]> git.droids-corp.org - dpdk.git/commitdiff
net/sfc: fix aarch32 build
authorRuifeng Wang <ruifeng.wang@arm.com>
Wed, 7 Jul 2021 13:25:37 +0000 (15:25 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 9 Jul 2021 17:58:20 +0000 (19:58 +0200)
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: 141d2870675a ("net/sfc: support aarch64 architecture")
Cc: stable@dpdk.org
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
drivers/common/sfc_efx/meson.build
drivers/net/sfc/meson.build

index f42ccf609cb6fa00c93cee048f5179bcd2fdf9f6..0cf0a23bf8c71bb89b5ac8b1bd87e1ce0383df31 100644 (file)
@@ -10,7 +10,7 @@ if is_windows
     reason = 'not supported on Windows'
 endif
 
-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
index ccf5984d87fb8b7c2fc16166989d65acdc93c476..18e7edb56844f7f5f022043848fad7f3db045bb0 100644 (file)
@@ -12,7 +12,7 @@ if is_windows
     subdir_done()
 endif
 
-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