a5f1b1e515
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: 141d287067
("net/sfc: support aarch64 architecture")
Cc: stable@dpdk.org
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
47 lines
933 B
Meson
47 lines
933 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
# Copyright(c) 2019-2021 Xilinx, Inc.
|
|
#
|
|
# This software was jointly developed between OKTET Labs (under contract
|
|
# for Solarflare) and Solarflare Communications, Inc.
|
|
|
|
if is_windows
|
|
build = false
|
|
reason = 'not supported on Windows'
|
|
endif
|
|
|
|
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
|
|
|
|
extra_flags = []
|
|
|
|
# Enable more warnings
|
|
extra_flags += [
|
|
'-Wdisabled-optimization',
|
|
]
|
|
|
|
# Compiler and version dependent flags
|
|
extra_flags += [
|
|
'-Waggregate-return',
|
|
'-Wbad-function-cast',
|
|
]
|
|
|
|
foreach flag: extra_flags
|
|
if cc.has_argument(flag)
|
|
cflags += flag
|
|
endif
|
|
endforeach
|
|
|
|
subdir('base')
|
|
objs = [base_objs]
|
|
|
|
deps += ['bus_pci']
|
|
sources = files(
|
|
'sfc_efx.c',
|
|
'sfc_efx_mcdi.c',
|
|
)
|
|
|
|
includes += include_directories('base')
|