f-stack/dpdk/drivers/common/sfc_efx/base/meson.build

93 lines
2.1 KiB
Meson
Raw Normal View History

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
# Copyright(c) 2016-2019 Solarflare Communications Inc.
#
# This software was jointly developed between OKTET Labs (under contract
# for Solarflare) and Solarflare Communications, Inc.
sources = [
2022-09-06 04:00:10 +00:00
'efx_bootcfg.c',
'efx_crc32.c',
'efx_ev.c',
'efx_evb.c',
'efx_filter.c',
'efx_hash.c',
'efx_intr.c',
'efx_lic.c',
'efx_mac.c',
'efx_mae.c',
'efx_mcdi.c',
'efx_mon.c',
'efx_nic.c',
'efx_nvram.c',
'efx_pci.c',
'efx_phy.c',
'efx_port.c',
'efx_proxy.c',
'efx_rx.c',
'efx_sram.c',
'efx_tunnel.c',
'efx_tx.c',
'efx_vpd.c',
'efx_virtio.c',
'mcdi_mon.c',
'siena_mac.c',
'siena_mcdi.c',
'siena_nic.c',
'siena_nvram.c',
'siena_phy.c',
'siena_sram.c',
'siena_vpd.c',
'ef10_ev.c',
'ef10_evb.c',
'ef10_filter.c',
'ef10_image.c',
'ef10_intr.c',
'ef10_mac.c',
'ef10_mcdi.c',
'ef10_nic.c',
'ef10_nvram.c',
'ef10_phy.c',
'ef10_proxy.c',
'ef10_rx.c',
'ef10_tx.c',
'ef10_vpd.c',
'hunt_nic.c',
'medford_nic.c',
'medford2_nic.c',
'rhead_ev.c',
'rhead_intr.c',
'rhead_nic.c',
'rhead_pci.c',
'rhead_rx.c',
'rhead_tunnel.c',
'rhead_tx.c',
'rhead_virtio.c',
2021-02-05 08:48:47 +00:00
]
extra_flags = [
2022-09-06 04:00:10 +00:00
'-Wno-sign-compare',
'-Wno-unused-parameter',
'-Wno-unused-variable',
'-Wno-empty-body',
'-Wno-unused-but-set-variable',
2021-02-05 08:48:47 +00:00
]
c_args = cflags
foreach flag: extra_flags
2022-09-06 04:00:10 +00:00
if cc.has_argument(flag)
c_args += flag
endif
2021-02-05 08:48:47 +00:00
endforeach
if build
2022-09-06 04:00:10 +00:00
base_lib = static_library('sfc_base', sources,
include_directories: includes,
dependencies: static_rte_eal,
c_args: c_args)
2021-02-05 08:48:47 +00:00
2022-09-06 04:00:10 +00:00
base_objs = base_lib.extract_all_objects(recursive: true)
2021-02-05 08:48:47 +00:00
else
2022-09-06 04:00:10 +00:00
base_objs = []
2021-02-05 08:48:47 +00:00
endif