1 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright(c) 2019-2021 Xilinx, Inc.
4 # Copyright(c) 2016-2019 Solarflare Communications Inc.
6 # This software was jointly developed between OKTET Labs (under contract
7 # for Solarflare) and Solarflare Communications, Inc.
11 reason = 'not supported on Windows'
15 if (arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64')) and (arch_subdir != 'arm' or not host_machine.cpu_family().startswith('aarch64'))
17 reason = 'only supported on x86_64 and aarch64'
22 # Strict-aliasing rules are violated by rte_eth_link to uint64_t casts
23 extra_flags += '-Wno-strict-aliasing'
25 # Enable more warnings
27 '-Wdisabled-optimization'
30 # Compiler and version dependent flags
36 foreach flag: extra_flags
37 if cc.has_argument(flag)
42 deps += ['common_sfc_efx', 'bus_pci']