2021-02-05 08:48:47 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#
|
2022-09-06 04:00:10 +00:00
|
|
|
# Copyright(c) 2019-2021 Xilinx, Inc.
|
2021-02-05 08:48:47 +00:00
|
|
|
#
|
|
|
|
# This software was jointly developed between OKTET Labs (under contract
|
|
|
|
# for Solarflare) and Solarflare Communications, Inc.
|
|
|
|
|
2022-09-06 04:00:10 +00:00
|
|
|
if is_windows
|
|
|
|
build = false
|
|
|
|
reason = 'not supported on Windows'
|
|
|
|
endif
|
|
|
|
|
2022-09-02 04:40:05 +00:00
|
|
|
if (arch_subdir != 'x86' and arch_subdir != 'arm') or (not dpdk_conf.get('RTE_ARCH_64'))
|
2022-09-06 04:00:10 +00:00
|
|
|
build = false
|
|
|
|
reason = 'only supported on x86_64 and aarch64'
|
2021-02-05 08:48:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
extra_flags = []
|
|
|
|
|
|
|
|
# Enable more warnings
|
|
|
|
extra_flags += [
|
2022-09-06 04:00:10 +00:00
|
|
|
'-Wdisabled-optimization',
|
2021-02-05 08:48:47 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
# Compiler and version dependent flags
|
|
|
|
extra_flags += [
|
2022-09-06 04:00:10 +00:00
|
|
|
'-Waggregate-return',
|
|
|
|
'-Wbad-function-cast',
|
2021-02-05 08:48:47 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
foreach flag: extra_flags
|
2022-09-06 04:00:10 +00:00
|
|
|
if cc.has_argument(flag)
|
|
|
|
cflags += flag
|
|
|
|
endif
|
2021-02-05 08:48:47 +00:00
|
|
|
endforeach
|
|
|
|
|
|
|
|
subdir('base')
|
|
|
|
objs = [base_objs]
|
|
|
|
|
2022-09-06 04:00:10 +00:00
|
|
|
deps += ['bus_pci']
|
2021-02-05 08:48:47 +00:00
|
|
|
sources = files(
|
2022-09-06 04:00:10 +00:00
|
|
|
'sfc_efx.c',
|
|
|
|
'sfc_efx_mcdi.c',
|
2021-02-05 08:48:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
includes += include_directories('base')
|