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