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