net/ice/base: print human-friendly PHY types
[dpdk.git] / drivers / net / ice / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018-2021 Intel Corporation
3
4 sources = [
5         'ice_controlq.c',
6         'ice_common.c',
7         'ice_sched.c',
8         'ice_switch.c',
9         'ice_nvm.c',
10         'ice_flex_pipe.c',
11         'ice_flow.c',
12         'ice_dcb.c',
13         'ice_fdir.c',
14         'ice_acl.c',
15         'ice_acl_ctrl.c',
16         'ice_vlan_mode.c',
17         'ice_ptp_hw.c',
18 ]
19
20 error_cflags = [
21         '-Wno-unused-value',
22         '-Wno-unused-but-set-variable',
23         '-Wno-unused-variable',
24         '-Wno-unused-parameter',
25 ]
26
27 # Bugzilla ID: 678
28 if (toolchain == 'gcc' and cc.version().version_compare('>=11.0.0'))
29     error_cflags += ['-Wno-array-bounds']
30 endif
31
32 if is_windows and cc.get_id() != 'clang'
33     cflags += ['-fno-asynchronous-unwind-tables']
34 endif
35
36 c_args = cflags
37
38 foreach flag: error_cflags
39     if cc.has_argument(flag)
40         c_args += flag
41     endif
42 endforeach
43
44 base_lib = static_library('ice_base', sources,
45         dependencies: static_rte_eal,
46         c_args: c_args)
47 base_objs = base_lib.extract_all_objects(recursive: true)