1# SPDX-License-Identifier: BSD-3-Clause 2# 3# Copyright(c) 2019-2021 Xilinx, Inc. 4# 5# This software was jointly developed between OKTET Labs (under contract 6# for Solarflare) and Solarflare Communications, Inc. 7 8if is_windows 9 build = false 10 reason = 'not supported on Windows' 11endif 12 13if (arch_subdir != 'x86' and arch_subdir != 'arm') or (not dpdk_conf.get('RTE_ARCH_64')) 14 build = false 15 reason = 'only supported on x86_64 and aarch64' 16endif 17 18extra_flags = [] 19 20# Enable more warnings 21extra_flags += [ 22 '-Wdisabled-optimization', 23] 24 25# Compiler and version dependent flags 26extra_flags += [ 27 '-Waggregate-return', 28 '-Wbad-function-cast', 29] 30 31foreach flag: extra_flags 32 if cc.has_argument(flag) 33 cflags += flag 34 endif 35endforeach 36 37subdir('base') 38objs = [base_objs] 39 40deps += ['bus_pci'] 41sources = files( 42 'sfc_efx.c', 43 'sfc_efx_mcdi.c', 44) 45 46includes += include_directories('base') 47