build: disable experimental API check internally
[dpdk.git] / drivers / net / sfc / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright (c) 2016-2018 Solarflare Communications Inc.
3 # All rights reserved.
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 ]
56
57 extra_flags = [
58         '-Wno-sign-compare',
59         '-Wno-unused-parameter',
60         '-Wno-unused-variable',
61         '-Wno-empty-body',
62         '-Wno-unused-but-set-variable'
63 ]
64
65 c_args = cflags
66 foreach flag: extra_flags
67         if cc.has_argument(flag)
68                 c_args += flag
69         endif
70 endforeach
71
72 if build
73         base_lib = static_library('sfc_base', sources,
74                 include_directories: includes,
75                 dependencies: static_rte_eal,
76                 c_args: c_args)
77
78         base_objs = base_lib.extract_all_objects()
79 else
80         base_objs = []
81 endif