1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2020-2021 Xilinx, Inc. 3 4if ((arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64')) and 5 (arch_subdir != 'arm' or not 6 host_machine.cpu_family().startswith('aarch64'))) 7 build = false 8 reason = 'only supported on x86_64 and aarch64' 9endif 10 11extra_flags = [] 12 13foreach flag: extra_flags 14 if cc.has_argument(flag) 15 cflags += flag 16 endif 17endforeach 18 19deps += ['common_sfc_efx', 'bus_pci'] 20sources = files( 21 'sfc_vdpa.c', 22 'sfc_vdpa_hw.c', 23 'sfc_vdpa_mcdi.c', 24 'sfc_vdpa_ops.c', 25 'sfc_vdpa_filter.c', 26) 27