xref: /dpdk/drivers/common/sfc_efx/base/meson.build (revision 68a03efeed657e6e05f281479b33b51102797e15)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2019-2021 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
8sources = [
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_mae.c',
19	'efx_mcdi.c',
20	'efx_mon.c',
21	'efx_nic.c',
22	'efx_nvram.c',
23	'efx_pci.c',
24	'efx_phy.c',
25	'efx_port.c',
26	'efx_proxy.c',
27	'efx_rx.c',
28	'efx_sram.c',
29	'efx_tunnel.c',
30	'efx_tx.c',
31	'efx_vpd.c',
32	'efx_virtio.c',
33	'mcdi_mon.c',
34	'siena_mac.c',
35	'siena_mcdi.c',
36	'siena_nic.c',
37	'siena_nvram.c',
38	'siena_phy.c',
39	'siena_sram.c',
40	'siena_vpd.c',
41	'ef10_ev.c',
42	'ef10_evb.c',
43	'ef10_filter.c',
44	'ef10_image.c',
45	'ef10_intr.c',
46	'ef10_mac.c',
47	'ef10_mcdi.c',
48	'ef10_nic.c',
49	'ef10_nvram.c',
50	'ef10_phy.c',
51	'ef10_proxy.c',
52	'ef10_rx.c',
53	'ef10_tx.c',
54	'ef10_vpd.c',
55	'hunt_nic.c',
56	'medford_nic.c',
57	'medford2_nic.c',
58	'rhead_ev.c',
59	'rhead_intr.c',
60	'rhead_nic.c',
61	'rhead_pci.c',
62	'rhead_rx.c',
63	'rhead_tunnel.c',
64	'rhead_tx.c',
65	'rhead_virtio.c',
66]
67
68extra_flags = [
69	'-Wno-sign-compare',
70	'-Wno-unused-parameter',
71	'-Wno-unused-variable',
72	'-Wno-empty-body',
73	'-Wno-unused-but-set-variable'
74]
75
76c_args = cflags
77foreach flag: extra_flags
78	if cc.has_argument(flag)
79		c_args += flag
80	endif
81endforeach
82
83if build
84	base_lib = static_library('sfc_base', sources,
85		include_directories: includes,
86		dependencies: static_rte_eal,
87		c_args: c_args)
88
89	base_objs = base_lib.extract_all_objects()
90else
91	base_objs = []
92endif
93