common/sfc_efx/base: handle MCDI events on Riverhead
[dpdk.git] / drivers / common / sfc_efx / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2019-2020 Xilinx, Inc.
3 # Copyright(c) 2016-2019 Solarflare Communications Inc.
4 #
5 # This software was jointly developed between OKTET Labs (under contract
6 # for Solarflare) and Solarflare Communications, Inc.
7
8 sources = [
9         'efx_bootcfg.c',
10         'efx_crc32.c',
11         'efx_ev.c',
12         'efx_evb.c',
13         'efx_filter.c',
14         'efx_hash.c',
15         'efx_intr.c',
16         'efx_lic.c',
17         'efx_mac.c',
18         'efx_mcdi.c',
19         'efx_mon.c',
20         'efx_nic.c',
21         'efx_nvram.c',
22         'efx_phy.c',
23         'efx_port.c',
24         'efx_proxy.c',
25         'efx_rx.c',
26         'efx_sram.c',
27         'efx_tunnel.c',
28         'efx_tx.c',
29         'efx_vpd.c',
30         'mcdi_mon.c',
31         'siena_mac.c',
32         'siena_mcdi.c',
33         'siena_nic.c',
34         'siena_nvram.c',
35         'siena_phy.c',
36         'siena_sram.c',
37         'siena_vpd.c',
38         'ef10_ev.c',
39         'ef10_evb.c',
40         'ef10_filter.c',
41         'ef10_image.c',
42         'ef10_intr.c',
43         'ef10_mac.c',
44         'ef10_mcdi.c',
45         'ef10_nic.c',
46         'ef10_nvram.c',
47         'ef10_phy.c',
48         'ef10_proxy.c',
49         'ef10_rx.c',
50         'ef10_tx.c',
51         'ef10_vpd.c',
52         'hunt_nic.c',
53         'medford_nic.c',
54         'medford2_nic.c',
55         'rhead_ev.c',
56         'rhead_intr.c',
57         'rhead_nic.c',
58 ]
59
60 extra_flags = [
61         '-Wno-sign-compare',
62         '-Wno-unused-parameter',
63         '-Wno-unused-variable',
64         '-Wno-empty-body',
65         '-Wno-unused-but-set-variable'
66 ]
67
68 c_args = cflags
69 foreach flag: extra_flags
70         if cc.has_argument(flag)
71                 c_args += flag
72         endif
73 endforeach
74
75 if build
76         base_lib = static_library('sfc_base', sources,
77                 include_directories: includes,
78                 dependencies: static_rte_eal,
79                 c_args: c_args)
80
81         base_objs = base_lib.extract_all_objects()
82 else
83         base_objs = []
84 endif